-
-
Notifications
You must be signed in to change notification settings - Fork 0
[Merged by Bors] - New Druid landing page #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
38 commits
Select commit
Hold shift + click to select a range
3dc8a3c
Added the diagram to the overview
9ed1469
Merge branch 'main' into idea/overview-diagram
790d0bf
more content
8718072
more text
1ecaeab
WIP: usage guide split
da72b9c
WIP: more changes
ca36808
WIP: more changes
fdefd4a
more stuff
34fe35c
text changes
25e95c1
Alternative anchor
5ed45aa
fixed some refs
0fb14a9
fixed some refs
94ee5a1
incorporated some feedback
e1c11b4
better text
cf52f61
fixed a todo
1e6f10e
Update docs/modules/druid/pages/getting_started/first_steps.adoc
fhennig 8e9cce3
Update docs/modules/druid/pages/index.adoc
fhennig bae9424
Update docs/modules/druid/pages/index.adoc
fhennig 0fdba9c
Update docs/modules/druid/pages/index.adoc
fhennig e864834
Update docs/modules/druid/pages/index.adoc
fhennig 995f06f
Update docs/modules/druid/pages/index.adoc
fhennig ec3bc3a
Update docs/modules/druid/pages/index.adoc
fhennig a9766af
minor fixes
f8c1cd8
Update docs/modules/druid/pages/index.adoc
fhennig 219cec1
Update docs/modules/druid/pages/usage-guide/configuration-and-environ…
fhennig 7ae6623
Update docs/modules/druid/pages/usage-guide/index.adoc
fhennig 9e1a6a3
Update docs/modules/druid/pages/usage-guide/ingestion.adoc
fhennig 19cf59b
minor fixes
c263fd9
Update docs/modules/druid/pages/usage-guide/security.adoc
fhennig aefe7f5
Update docs/modules/druid/pages/usage-guide/security.adoc
fhennig 5053178
Update docs/modules/druid/pages/usage-guide/security.adoc
fhennig 81f2e56
typo fix
93e34d6
Update docs/modules/druid/pages/usage-guide/ingestion.adoc
fhennig 5a9616c
Update docs/modules/druid/pages/usage-guide/resources-and-storage.adoc
fhennig 710f10f
Update docs/modules/druid/pages/usage-guide/configuration-and-environ…
fhennig 5ff4c08
Update docs/modules/druid/pages/usage-guide/security.adoc
fhennig 8390578
Update docs/modules/druid/pages/usage-guide/resources-and-storage.adoc
fhennig 33d8557
minor formatting changes
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 69 additions & 0 deletions
69
docs/modules/druid/pages/usage-guide/configuration-and-environment-overrides.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
= Configuration & Environment Overrides | ||
|
||
The cluster definition also supports overriding configuration properties and environment variables, either per role or per role group, where the more specific override (role group) has precedence over the less specific one (role). | ||
|
||
IMPORTANT: Overriding certain properties which are set by the operator (such as the HTTP port) can interfere with the operator and can lead to problems. | ||
|
||
== Configuration Properties | ||
|
||
For a role or role group, at the same level of `config`, you can specify: `configOverrides` for the `runtime.properties`. For example, if you want to set the `druid.server.http.numThreads` for the router to 100 adapt the `routers` section of the cluster resource like so: | ||
|
||
[source,yaml] | ||
---- | ||
routers: | ||
roleGroups: | ||
default: | ||
config: {} | ||
configOverrides: | ||
runtime.properties: | ||
druid.server.http.numThreads: "100" | ||
replicas: 1 | ||
---- | ||
|
||
Just as for the `config`, it is possible to specify this at role level as well: | ||
|
||
[source,yaml] | ||
---- | ||
routers: | ||
configOverrides: | ||
runtime.properties: | ||
druid.server.http.numThreads: "100" | ||
roleGroups: | ||
default: | ||
config: {} | ||
replicas: 1 | ||
---- | ||
|
||
All override property values must be strings. | ||
|
||
For a full list of configuration options please refer to the Druid https://druid.apache.org/docs/latest/configuration/index.html[Configuration Reference]. | ||
|
||
== Environment Variables | ||
|
||
In a similar fashion, environment variables can be (over)written. For example per role group: | ||
|
||
[source,yaml] | ||
---- | ||
routers: | ||
roleGroups: | ||
default: | ||
config: {} | ||
envOverrides: | ||
MY_ENV_VAR: "MY_VALUE" | ||
replicas: 1 | ||
---- | ||
|
||
or per role: | ||
|
||
[source,yaml] | ||
---- | ||
routers: | ||
envOverrides: | ||
MY_ENV_VAR: "MY_VALUE" | ||
roleGroups: | ||
default: | ||
config: {} | ||
replicas: 1 | ||
---- | ||
|
||
// cliOverrides don't make sense for this operator, so the feature is omitted for now |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
= Deep storage configuration | ||
|
||
== [[hdfs]]HDFS | ||
|
||
Druid can use HDFS as a backend for deep storage: | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
clusterConfig: | ||
deepStorage: | ||
hdfs: | ||
configMapName: simple-hdfs # <1> | ||
directory: /druid # <2> | ||
... | ||
---- | ||
<1> Name of the HDFS cluster discovery config map. Can be supplied manually for a cluster not provided by Stackable. Needs to contain the `core-site.xml` and `hdfs-site.xml`. | ||
<2> The directory where to store the druid data. | ||
|
||
== [[s3]]S3 | ||
|
||
Druid can use S3 as a backend for deep storage: | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
clusterConfig: | ||
deepStorage: | ||
s3: | ||
bucket: | ||
inline: | ||
bucketName: my-bucket # <1> | ||
connection: | ||
inline: | ||
host: test-minio # <2> | ||
port: 9000 # <3> | ||
credentials: # <4> | ||
... | ||
---- | ||
<1> Bucket name. | ||
<2> Bucket host. | ||
<3> Optional bucket port. | ||
<4> Credentials explained <<S3 Credentials, below>>. | ||
|
||
It is also possible to configure the bucket connection details as a separate Kubernetes resource and only refer to that object from the DruidCluster like this: | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
clusterConfig: | ||
deepStorage: | ||
s3: | ||
bucket: | ||
reference: my-bucket-resource # <1> | ||
---- | ||
<1> Name of the bucket resource with connection details. | ||
|
||
The resource named `my-bucket-resource` is then defined as shown below: | ||
|
||
[source,yaml] | ||
---- | ||
--- | ||
apiVersion: s3.stackable.tech/v1alpha1 | ||
kind: S3Bucket | ||
metadata: | ||
name: my-bucket-resource | ||
spec: | ||
bucketName: my-bucket-name | ||
connection: | ||
inline: | ||
host: test-minio | ||
port: 9000 | ||
credentials: | ||
... (explained below) | ||
---- | ||
|
||
This has the advantage that bucket configuration can be shared across DruidClusters (and other stackable CRDs) and reduces the cost of updating these details. | ||
|
||
include::partial$s3-note.adoc[] | ||
|
||
=== S3 Credentials | ||
|
||
include::partial$s3-credentials.adoc[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
= Usage guide | ||
:page-aliases: usage.doc | ||
|
||
The usage guide covers various aspects of configuring Druid and interconnection with other tools. | ||
|
||
xref:usage-guide/deep-storage.adoc[], xref:usage-guide/ingestion.adoc[] and xref:usage-guide/resources-and-storage.adoc[] are the relevant pages for configuring how your data is stored and ingested. | ||
|
||
The xref:usage-guide/security.adoc[] page explains how to configure TLS, authentication with LDAP and authorization using xref:opa:index.adoc[OPA]. | ||
|
||
Look into xref:usage-guide/logging.adoc[] and xref:usage-guide/monitoring.adoc[] to learn how to observe your Druid status. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
= Ingestion | ||
|
||
== [[s3]]From S3 | ||
|
||
To ingest data from s3 you need to specify a host to connect to, but there are also other settings that can be used: | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
clusterConfig: | ||
ingestion: | ||
s3connection: | ||
host: yourhost.com # <1> | ||
port: 80 # optional <2> | ||
credentials: # optional <3> | ||
... | ||
---- | ||
|
||
<1> The S3 host, not optional | ||
<2> Port, optional, defaults to 80 | ||
<3> Credentials to use. Since these might be bucket-dependent, they can instead be given in the ingestion job. Specifying the credentials here is explained <<S3 Credentials, below>>. | ||
|
||
include::partial$s3-note.adoc[] | ||
|
||
=== S3 credentials | ||
|
||
include::partial$s3-credentials.adoc[] | ||
|
||
== Adding external files, e.g. for ingestion | ||
|
||
Since Druid actively runs ingestion tasks there may be a need to make extra files available to the processes. | ||
|
||
These could for example be client certificates used to connect to a Kafka cluster or a keytab to obtain a Kerberos ticket. | ||
|
||
In order to make these files available the operator allows specifying extra volumes that will be added to all pods deployed for this cluster. | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
clusterConfig: | ||
extraVolumes: | ||
- name: google-service-account | ||
secret: | ||
secretName: google-service-account | ||
---- | ||
|
||
All `Volumes` specified in this section will be made available under `/stackable/userdata/\{volumename\}`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
= Log aggregation | ||
|
||
The logs can be forwarded to a Vector log aggregator by providing a discovery ConfigMap for the aggregator and by enabling the log agent: | ||
|
||
[source,yaml] | ||
---- | ||
spec: | ||
clusterConfig: | ||
vectorAggregatorConfigMapName: vector-aggregator-discovery | ||
brokers: | ||
config: | ||
logging: | ||
enableVectorAgent: true | ||
coordinators: | ||
config: | ||
logging: | ||
enableVectorAgent: true | ||
historicals: | ||
config: | ||
logging: | ||
enableVectorAgent: true | ||
middleManagers: | ||
config: | ||
logging: | ||
enableVectorAgent: true | ||
routers: | ||
config: | ||
logging: | ||
enableVectorAgent: true | ||
---- | ||
|
||
Further information on how to configure logging, can be found in xref:home:concepts:logging.adoc[]. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
= Monitoring | ||
|
||
The managed Druid instances are automatically configured to export Prometheus metrics. See | ||
xref:operators:monitoring.adoc[] for more details. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
= Pod placement | ||
|
||
You can configure the Pod placement of the Druid pods as described in xref:concepts:pod_placement.adoc[]. | ||
|
||
The default affinities created by the operator are: | ||
|
||
1. Distribute all Pods within the same role (brokers, coordinators, historicals, middle-managers, routers) (weight 70) | ||
|
||
Some of the Druid roles do frequently communicate with each other. | ||
To address this, some affinities will be created to attract these roles: | ||
|
||
*For brokers:* | ||
|
||
1. Co-locate with historicals (weight 60) | ||
2. Co-locate with middle-managers (weight 40) | ||
|
||
*For routers:* | ||
|
||
1. Co-locate with brokers (weight 40) | ||
|
||
*For historicals and middle-managers:* | ||
|
||
1. Co-locate the middle-managers and historicals with the hdfs datanodes if hdfs is used as deep storage (weight 50) | ||
|
||
*For coordinators:* | ||
|
||
- No affinities |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.