-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some adjustments to config examples. (#6973)
* Some adjustments to config examples. - Add ExitOnOutOfMemoryError to jvm.config examples. It was added a pretty long time ago (8u92) and is helpful since it prevents zombie processes from hanging around. (OOMEs tend to bork things) - Disable Broker caching and enable it on Historicals in example configs. This config tends to scale better since it enables the Historicals to merge results rather than sending everything by-segment to the Broker. Also switch to "caffeine" cache from "local". - Increase concurrency a bit for Broker example config. - Enable SQL in the example config, a baby step towards making SQL more of a thing. (It's still off by default in the code.) - Reduce memory use a bit for the quickstart configs. - Add example Router configs, in case someone wants to use that. One reason might be to get the fancy new console (#6923). * Add example Router configs. * Fix up router example properties. * Add router to quickstart supervise conf.
- Loading branch information
Showing
24 changed files
with
250 additions
and
33 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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 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 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 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 @@ | ||
-server | ||
-Xms512m | ||
-Xmx512m | ||
-XX:+UseG1GC | ||
-XX:MaxDirectMemorySize=512m | ||
-XX:+ExitOnOutOfMemoryError | ||
-Duser.timezone=UTC | ||
-Dfile.encoding=UTF-8 | ||
-Djava.io.tmpdir=var/tmp | ||
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager |
This file contains 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,34 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
druid.service=druid/router | ||
druid.plaintextPort=8888 | ||
|
||
# HTTP proxy | ||
druid.router.http.numConnections=50 | ||
druid.router.http.readTimeout=PT5M | ||
druid.router.http.numMaxThreads=100 | ||
druid.server.http.numThreads=100 | ||
|
||
# Service discovery | ||
druid.router.defaultBrokerServiceName=druid/broker | ||
druid.router.coordinatorServiceName=druid/coordinator | ||
|
||
# Management proxy to coordinator / overlord: required for unified web console. | ||
druid.router.managementProxy.enabled=true |
This file contains 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
42 changes: 32 additions & 10 deletions
42
examples/quickstart/tutorial/conf/druid/broker/runtime.properties
This file contains 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 |
---|---|---|
@@ -1,16 +1,38 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
druid.service=druid/broker | ||
druid.plaintextPort=8082 | ||
|
||
# HTTP server threads | ||
druid.broker.http.numConnections=5 | ||
druid.server.http.numThreads=9 | ||
# HTTP server settings | ||
druid.server.http.numThreads=12 | ||
|
||
# HTTP client settings | ||
druid.broker.http.numConnections=10 | ||
druid.broker.http.maxQueuedBytes=5000000 | ||
|
||
# Processing threads and buffers | ||
druid.processing.buffer.sizeBytes=256000000 | ||
druid.processing.numThreads=2 | ||
druid.processing.buffer.sizeBytes=100000000 | ||
druid.processing.numMergeBuffers=2 | ||
druid.processing.numThreads=1 | ||
druid.processing.tmpDir=var/druid/processing | ||
|
||
# Query cache (we use a small local cache) | ||
druid.broker.cache.useCache=true | ||
druid.broker.cache.populateCache=true | ||
druid.cache.type=local | ||
druid.cache.sizeInBytes=10000000 | ||
# Query cache disabled -- push down caching and merging instead | ||
druid.broker.cache.useCache=false | ||
druid.broker.cache.populateCache=false |
5 changes: 3 additions & 2 deletions
5
examples/quickstart/tutorial/conf/druid/coordinator/jvm.config
This file contains 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
19 changes: 19 additions & 0 deletions
19
examples/quickstart/tutorial/conf/druid/coordinator/runtime.properties
This file contains 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
7 changes: 4 additions & 3 deletions
7
examples/quickstart/tutorial/conf/druid/historical/jvm.config
This file contains 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
31 changes: 29 additions & 2 deletions
31
examples/quickstart/tutorial/conf/druid/historical/runtime.properties
This file contains 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 |
---|---|---|
@@ -1,13 +1,40 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
druid.service=druid/historical | ||
druid.plaintextPort=8083 | ||
|
||
# HTTP server threads | ||
druid.server.http.numThreads=9 | ||
druid.server.http.numThreads=12 | ||
|
||
# Processing threads and buffers | ||
druid.processing.buffer.sizeBytes=256000000 | ||
druid.processing.buffer.sizeBytes=100000000 | ||
druid.processing.numMergeBuffers=1 | ||
druid.processing.numThreads=2 | ||
druid.processing.tmpDir=var/druid/processing | ||
|
||
# Segment storage | ||
druid.segmentCache.locations=[{"path":"var/druid/segment-cache","maxSize":300000000000}] | ||
druid.server.maxSize=300000000000 | ||
|
||
# Query cache | ||
druid.historical.cache.useCache=true | ||
druid.historical.cache.populateCache=true | ||
druid.cache.type=caffeine | ||
druid.cache.sizeInBytes=10000000 |
1 change: 1 addition & 0 deletions
1
examples/quickstart/tutorial/conf/druid/middleManager/jvm.config
This file contains 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
21 changes: 20 additions & 1 deletion
21
examples/quickstart/tutorial/conf/druid/middleManager/runtime.properties
This file contains 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 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
19 changes: 19 additions & 0 deletions
19
examples/quickstart/tutorial/conf/druid/overlord/runtime.properties
This file contains 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 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 @@ | ||
-server | ||
-Xms128m | ||
-Xmx128m | ||
-XX:+UseG1GC | ||
-XX:MaxDirectMemorySize=128m | ||
-XX:+ExitOnOutOfMemoryError | ||
-Duser.timezone=UTC | ||
-Dfile.encoding=UTF-8 | ||
-Djava.io.tmpdir=var/tmp | ||
-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager |
Oops, something went wrong.