Docker Setup

166 views
Skip to first unread message

Jason G

unread,
Jul 8, 2021, 12:31:13 AM7/8/21
to Druid User
I am using the docker compose file in the repo: https://github.com/apache/druid/blob/master/distribution/docker/docker-compose.yml

First issue, the manifest is missing for apache/druid:0.22.0.  I had to change this to 0.21.1 to get the docker install working.  What happened to 0.22.0?

Second issue, I am running this on my laptop and had to increase the docker ram usage to 8GB just to run the druid container.  How can I specify docker to use the "micro-quickstart" version of Druid?  Is this possible?

Thanks

vonha...@gmail.com

unread,
Jul 8, 2021, 9:17:04 AM7/8/21
to Druid User
You can tweak the memory configuration of each service by changing the values in these environment variables:

DRUID_XMX=16g
DRUID_XMS=1g
DRUID_MAXDIRECTMEMORYSIZE=39000m

Where DRUID_XMX and XMS pertain to max and min heap size.

You can also tweak the default configuration values by referring in the Reference configuration of the docs and setting an environment variable with the same value but with the periods changed to underscores instead.

For example, if I want to change my MiddleManager service’s druid.worker.capacity to 11. I will create an environment variable druid_worker_capacity with a value of 11 for that service in the docker-compose.yml file.
Reply all
Reply to author
Forward
0 new messages