From ba154c3cc90c519e9b1a7c319fe8dd158394feab Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Thu, 31 Jan 2019 12:10:26 -0800 Subject: [PATCH 1/4] 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). --- .../druid/_common/common.runtime.properties | 5 +++ examples/conf/druid/broker/jvm.config | 1 + examples/conf/druid/broker/runtime.properties | 19 +++++---- examples/conf/druid/coordinator/jvm.config | 1 + examples/conf/druid/historical/jvm.config | 1 + .../conf/druid/historical/runtime.properties | 6 +++ examples/conf/druid/middleManager/jvm.config | 1 + .../druid/middleManager/runtime.properties | 2 +- examples/conf/druid/overlord/jvm.config | 1 + .../tutorial/conf/druid/broker/jvm.config | 7 ++-- .../conf/druid/broker/runtime.properties | 42 ++++++++++++++----- .../conf/druid/coordinator/jvm.config | 5 ++- .../conf/druid/coordinator/runtime.properties | 19 +++++++++ .../tutorial/conf/druid/historical/jvm.config | 7 ++-- .../conf/druid/historical/runtime.properties | 31 +++++++++++++- .../conf/druid/middleManager/jvm.config | 1 + .../druid/middleManager/runtime.properties | 21 +++++++++- .../tutorial/conf/druid/overlord/jvm.config | 5 ++- .../conf/druid/overlord/runtime.properties | 19 +++++++++ .../tutorial/conf/druid/router/jvm.config | 10 +++++ .../conf/druid/router/runtime.properties | 34 +++++++++++++++ 21 files changed, 205 insertions(+), 33 deletions(-) create mode 100644 examples/quickstart/tutorial/conf/druid/router/jvm.config create mode 100644 examples/quickstart/tutorial/conf/druid/router/runtime.properties diff --git a/examples/conf/druid/_common/common.runtime.properties b/examples/conf/druid/_common/common.runtime.properties index b7d1870e367b..9db606026d89 100644 --- a/examples/conf/druid/_common/common.runtime.properties +++ b/examples/conf/druid/_common/common.runtime.properties @@ -120,3 +120,8 @@ druid.emitter.logging.logLevel=info # ommiting this will lead to index double as float at the storage layer druid.indexing.doubleStorage=double + +# +# SQL +# +druid.sql.enable=true diff --git a/examples/conf/druid/broker/jvm.config b/examples/conf/druid/broker/jvm.config index a6a9982d44c3..cf67f93796d9 100644 --- a/examples/conf/druid/broker/jvm.config +++ b/examples/conf/druid/broker/jvm.config @@ -2,6 +2,7 @@ -Xms24g -Xmx24g -XX:MaxDirectMemorySize=4096m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/conf/druid/broker/runtime.properties b/examples/conf/druid/broker/runtime.properties index 75a3ccdd0113..9421053d09d3 100644 --- a/examples/conf/druid/broker/runtime.properties +++ b/examples/conf/druid/broker/runtime.properties @@ -20,16 +20,17 @@ druid.service=druid/broker druid.plaintextPort=8082 -# HTTP server threads -druid.broker.http.numConnections=5 -druid.server.http.numThreads=25 +# HTTP server settings +druid.server.http.numThreads=60 + +# HTTP client settings +druid.broker.http.numConnections=10 # Processing threads and buffers druid.processing.buffer.sizeBytes=536870912 -druid.processing.numThreads=7 +druid.processing.numMergeBuffers=2 +druid.processing.numThreads=1 -# Query cache -druid.broker.cache.useCache=true -druid.broker.cache.populateCache=true -druid.cache.type=local -druid.cache.sizeInBytes=2000000000 +# Query cache disabled -- push down caching and merging instead +druid.broker.cache.useCache=false +druid.broker.cache.populateCache=false diff --git a/examples/conf/druid/coordinator/jvm.config b/examples/conf/druid/coordinator/jvm.config index 99f6d1d646f0..a57248dcfdec 100644 --- a/examples/conf/druid/coordinator/jvm.config +++ b/examples/conf/druid/coordinator/jvm.config @@ -1,6 +1,7 @@ -server -Xms3g -Xmx3g +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/conf/druid/historical/jvm.config b/examples/conf/druid/historical/jvm.config index 7fdbb1c51ce0..94685fef5b3b 100644 --- a/examples/conf/druid/historical/jvm.config +++ b/examples/conf/druid/historical/jvm.config @@ -2,6 +2,7 @@ -Xms8g -Xmx8g -XX:MaxDirectMemorySize=4096m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/conf/druid/historical/runtime.properties b/examples/conf/druid/historical/runtime.properties index b5562a73e47c..e61e51c932d5 100644 --- a/examples/conf/druid/historical/runtime.properties +++ b/examples/conf/druid/historical/runtime.properties @@ -30,3 +30,9 @@ druid.processing.numThreads=7 # Segment storage druid.segmentCache.locations=[{"path":"var/druid/segment-cache","maxSize":130000000000}] druid.server.maxSize=130000000000 + +# Query cache +druid.historical.cache.useCache=true +druid.historical.cache.populateCache=true +druid.cache.type=caffeine +druid.cache.sizeInBytes=2000000000 diff --git a/examples/conf/druid/middleManager/jvm.config b/examples/conf/druid/middleManager/jvm.config index 7b9f1a47b55d..8a650fb358c9 100644 --- a/examples/conf/druid/middleManager/jvm.config +++ b/examples/conf/druid/middleManager/jvm.config @@ -1,6 +1,7 @@ -server -Xms64m -Xmx64m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/conf/druid/middleManager/runtime.properties b/examples/conf/druid/middleManager/runtime.properties index 8fb56821ecd3..8f9e8cb621fa 100644 --- a/examples/conf/druid/middleManager/runtime.properties +++ b/examples/conf/druid/middleManager/runtime.properties @@ -24,7 +24,7 @@ druid.plaintextPort=8091 druid.worker.capacity=3 # Task launch parameters -druid.indexer.runner.javaOpts=-server -Xmx2g -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager +druid.indexer.runner.javaOpts=-server -Xmx2g -Duser.timezone=UTC -Dfile.encoding=UTF-8 -XX:+ExitOnOutOfMemoryError -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager druid.indexer.task.baseTaskDir=var/druid/task # HTTP server threads diff --git a/examples/conf/druid/overlord/jvm.config b/examples/conf/druid/overlord/jvm.config index 2df9a1c2d53e..59e2eaa3c551 100644 --- a/examples/conf/druid/overlord/jvm.config +++ b/examples/conf/druid/overlord/jvm.config @@ -1,6 +1,7 @@ -server -Xms3g -Xmx3g +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/quickstart/tutorial/conf/druid/broker/jvm.config b/examples/quickstart/tutorial/conf/druid/broker/jvm.config index 608aa35f84f7..076a22261850 100644 --- a/examples/quickstart/tutorial/conf/druid/broker/jvm.config +++ b/examples/quickstart/tutorial/conf/druid/broker/jvm.config @@ -1,7 +1,8 @@ -server --Xms1g --Xmx1g --XX:MaxDirectMemorySize=1792m +-Xms256m +-Xmx256m +-XX:MaxDirectMemorySize=768m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/quickstart/tutorial/conf/druid/broker/runtime.properties b/examples/quickstart/tutorial/conf/druid/broker/runtime.properties index 65c3cd9e6b11..cad33738e914 100644 --- a/examples/quickstart/tutorial/conf/druid/broker/runtime.properties +++ b/examples/quickstart/tutorial/conf/druid/broker/runtime.properties @@ -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 diff --git a/examples/quickstart/tutorial/conf/druid/coordinator/jvm.config b/examples/quickstart/tutorial/conf/druid/coordinator/jvm.config index 66aa951e81ca..162faa0a2f08 100644 --- a/examples/quickstart/tutorial/conf/druid/coordinator/jvm.config +++ b/examples/quickstart/tutorial/conf/druid/coordinator/jvm.config @@ -1,6 +1,7 @@ -server --Xms256m --Xmx256m +-Xms128m +-Xmx128m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/quickstart/tutorial/conf/druid/coordinator/runtime.properties b/examples/quickstart/tutorial/conf/druid/coordinator/runtime.properties index 8fb650df8f4f..52dd09a0e64c 100644 --- a/examples/quickstart/tutorial/conf/druid/coordinator/runtime.properties +++ b/examples/quickstart/tutorial/conf/druid/coordinator/runtime.properties @@ -1,3 +1,22 @@ +# +# 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/coordinator druid.plaintextPort=8081 diff --git a/examples/quickstart/tutorial/conf/druid/historical/jvm.config b/examples/quickstart/tutorial/conf/druid/historical/jvm.config index 430209ec98ec..076a22261850 100644 --- a/examples/quickstart/tutorial/conf/druid/historical/jvm.config +++ b/examples/quickstart/tutorial/conf/druid/historical/jvm.config @@ -1,7 +1,8 @@ -server --Xms1g --Xmx1g --XX:MaxDirectMemorySize=1280m +-Xms256m +-Xmx256m +-XX:MaxDirectMemorySize=768m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/quickstart/tutorial/conf/druid/historical/runtime.properties b/examples/quickstart/tutorial/conf/druid/historical/runtime.properties index 10a763f08acd..dc78b0f762a8 100644 --- a/examples/quickstart/tutorial/conf/druid/historical/runtime.properties +++ b/examples/quickstart/tutorial/conf/druid/historical/runtime.properties @@ -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 diff --git a/examples/quickstart/tutorial/conf/druid/middleManager/jvm.config b/examples/quickstart/tutorial/conf/druid/middleManager/jvm.config index 7b9f1a47b55d..8a650fb358c9 100644 --- a/examples/quickstart/tutorial/conf/druid/middleManager/jvm.config +++ b/examples/quickstart/tutorial/conf/druid/middleManager/jvm.config @@ -1,6 +1,7 @@ -server -Xms64m -Xmx64m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/quickstart/tutorial/conf/druid/middleManager/runtime.properties b/examples/quickstart/tutorial/conf/druid/middleManager/runtime.properties index ad12d7e2f192..d1660aa4deb9 100644 --- a/examples/quickstart/tutorial/conf/druid/middleManager/runtime.properties +++ b/examples/quickstart/tutorial/conf/druid/middleManager/runtime.properties @@ -1,3 +1,22 @@ +# +# 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/middleManager druid.plaintextPort=8091 @@ -5,7 +24,7 @@ druid.plaintextPort=8091 druid.worker.capacity=3 # Task launch parameters -druid.indexer.runner.javaOpts=-server -Xmx2g -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager +druid.indexer.runner.javaOpts=-server -Xms512m -Xmx512m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -XX:+ExitOnOutOfMemoryError -Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager druid.indexer.task.baseTaskDir=var/druid/task # HTTP server threads diff --git a/examples/quickstart/tutorial/conf/druid/overlord/jvm.config b/examples/quickstart/tutorial/conf/druid/overlord/jvm.config index 90526a53804b..c145532ba1ed 100644 --- a/examples/quickstart/tutorial/conf/druid/overlord/jvm.config +++ b/examples/quickstart/tutorial/conf/druid/overlord/jvm.config @@ -1,6 +1,7 @@ -server --Xms256m --Xmx256m +-Xms128m +-Xmx128m +-XX:+ExitOnOutOfMemoryError -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Djava.io.tmpdir=var/tmp diff --git a/examples/quickstart/tutorial/conf/druid/overlord/runtime.properties b/examples/quickstart/tutorial/conf/druid/overlord/runtime.properties index df1e0692bb49..093758c22972 100644 --- a/examples/quickstart/tutorial/conf/druid/overlord/runtime.properties +++ b/examples/quickstart/tutorial/conf/druid/overlord/runtime.properties @@ -1,3 +1,22 @@ +# +# 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/overlord druid.plaintextPort=8090 diff --git a/examples/quickstart/tutorial/conf/druid/router/jvm.config b/examples/quickstart/tutorial/conf/druid/router/jvm.config new file mode 100644 index 000000000000..e74d6b1375f4 --- /dev/null +++ b/examples/quickstart/tutorial/conf/druid/router/jvm.config @@ -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 diff --git a/examples/quickstart/tutorial/conf/druid/router/runtime.properties b/examples/quickstart/tutorial/conf/druid/router/runtime.properties new file mode 100644 index 000000000000..497d3b4d3aa1 --- /dev/null +++ b/examples/quickstart/tutorial/conf/druid/router/runtime.properties @@ -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 From fc0e06e60c42067547027d7619a9af16d2ae165a Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Thu, 31 Jan 2019 12:25:50 -0800 Subject: [PATCH 2/4] Add example Router configs. --- examples/conf/druid/router/jvm.config | 10 ++++++++++ examples/conf/druid/router/runtime.properties | 15 +++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 examples/conf/druid/router/jvm.config create mode 100644 examples/conf/druid/router/runtime.properties diff --git a/examples/conf/druid/router/jvm.config b/examples/conf/druid/router/jvm.config new file mode 100644 index 000000000000..37b200e628fd --- /dev/null +++ b/examples/conf/druid/router/jvm.config @@ -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 diff --git a/examples/conf/druid/router/runtime.properties b/examples/conf/druid/router/runtime.properties new file mode 100644 index 000000000000..11e9e4d34ef3 --- /dev/null +++ b/examples/conf/druid/router/runtime.properties @@ -0,0 +1,15 @@ +druid.service=druid/router +druid.port=8888 + +druid.processing.numThreads=1 +druid.processing.buffer.sizeBytes=1000000 + +druid.router.defaultBrokerServiceName=druid/broker +druid.router.coordinatorServiceName=druid/coordinator +druid.router.http.numConnections=50 +druid.router.http.readTimeout=PT5M +druid.router.http.numMaxThreads=100 + +druid.server.http.numThreads=100 + +druid.router.managementProxy.enabled=true From 05a6b5d6c740ac36498f6aced002eb365b64af1f Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Thu, 31 Jan 2019 14:26:44 -0800 Subject: [PATCH 3/4] Fix up router example properties. --- examples/conf/druid/router/runtime.properties | 33 +++++++++++++++---- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/examples/conf/druid/router/runtime.properties b/examples/conf/druid/router/runtime.properties index 11e9e4d34ef3..497d3b4d3aa1 100644 --- a/examples/conf/druid/router/runtime.properties +++ b/examples/conf/druid/router/runtime.properties @@ -1,15 +1,34 @@ -druid.service=druid/router -druid.port=8888 +# +# 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.processing.numThreads=1 -druid.processing.buffer.sizeBytes=1000000 +druid.service=druid/router +druid.plaintextPort=8888 -druid.router.defaultBrokerServiceName=druid/broker -druid.router.coordinatorServiceName=druid/coordinator +# 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 From 8609b6bfe9919b8bab496fd9852832267c6c20fa Mon Sep 17 00:00:00 2001 From: Gian Merlino Date: Thu, 31 Jan 2019 15:45:17 -0800 Subject: [PATCH 4/4] Add router to quickstart supervise conf. --- examples/quickstart/tutorial/conf/tutorial-cluster.conf | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/quickstart/tutorial/conf/tutorial-cluster.conf b/examples/quickstart/tutorial/conf/tutorial-cluster.conf index c1316cc5ba53..4c2c70de77ec 100644 --- a/examples/quickstart/tutorial/conf/tutorial-cluster.conf +++ b/examples/quickstart/tutorial/conf/tutorial-cluster.conf @@ -5,6 +5,7 @@ !p10 zk bin/run-zk quickstart/tutorial/conf coordinator bin/run-druid coordinator quickstart/tutorial/conf broker bin/run-druid broker quickstart/tutorial/conf +router bin/run-druid router quickstart/tutorial/conf historical bin/run-druid historical quickstart/tutorial/conf !p80 overlord bin/run-druid overlord quickstart/tutorial/conf !p90 middleManager bin/run-druid middleManager quickstart/tutorial/conf