Skip to content

Commit

Permalink
Merge pull request #2 from wiremind/speed-up-coordinator
Browse files Browse the repository at this point in the history
Speed up coordinator service
  • Loading branch information
enguerranchevalier authored Jul 28, 2020
2 parents 1af039a + 685fee8 commit 491e69a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
8 changes: 5 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
FROM openjdk:8-jre
ARG DRUID_VERSION=0.19.0

ARG DRUID_COORDINATOR_CONF_FILE=apache-druid-${DRUID_VERSION}/conf/druid/single-server/micro-quickstart/coordinator-overlord/runtime.properties

RUN wget http://apache.crihan.fr/dist/druid/${DRUID_VERSION}/apache-druid-${DRUID_VERSION}-bin.tar.gz \
&& tar -xzf apache-druid-${DRUID_VERSION}-bin.tar.gz \
&& rm apache-druid-${DRUID_VERSION}-bin.tar.gz \
&& apt-get update \
&& apt-get install -y bash perl \
&& rm -rf /var/lib/apt/lists/*

&& rm -rf /var/lib/apt/lists/* \
&& echo druid.manager.segments.pollDuration=PT5S >> ${DRUID_COORDINATOR_CONF_FILE} \
&& echo druid.manager.config.pollDuration=PT5S >> ${DRUID_COORDINATOR_CONF_FILE} \
&& echo druid.manager.rules.pollDuration=PT5S >> ${DRUID_COORDINATOR_CONF_FILE}

ENV DRUID_VERSION=$DRUID_VERSION

Expand Down
7 changes: 5 additions & 2 deletions Dockerfile.nano
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
FROM openjdk:8-jre
ARG DRUID_VERSION=0.19.0

ARG DRUID_COORDINATOR_CONF_FILE=apache-druid-${DRUID_VERSION}/conf/druid/single-server/nano-quickstart/coordinator-overlord/runtime.properties

RUN wget http://apache.crihan.fr/dist/druid/${DRUID_VERSION}/apache-druid-${DRUID_VERSION}-bin.tar.gz \
&& tar -xzf apache-druid-${DRUID_VERSION}-bin.tar.gz \
&& rm apache-druid-${DRUID_VERSION}-bin.tar.gz \
&& apt-get update \
&& apt-get install -y bash perl \
&& rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/* \
&& echo druid.manager.segments.pollDuration=PT5S >> ${DRUID_COORDINATOR_CONF_FILE} \
&& echo druid.manager.config.pollDuration=PT5S >> ${DRUID_COORDINATOR_CONF_FILE} \
&& echo druid.manager.rules.pollDuration=PT5S >> ${DRUID_COORDINATOR_CONF_FILE}

ENV DRUID_VERSION=$DRUID_VERSION

Expand Down
32 changes: 29 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# micro-druid
Dockerfiles to run [nano/micro](https://github.com/apache/druid/blob/94298f780927923b84f3127ec07c84cb5b115145/docs/operations/single-server.md#nano-quickstart-1-cpu-4gb-ram) setups of [druid](https://github.com/apache/druid) for e2e tests.
Micro & Nano druid, for E2E tests
=======================================

Dockerfiles to run nano and micro setups of [druid](https://github.com/apache/druid) for e2e tests. Some configurations are applied to maximize the response time of the Druid docker but should in no way refer to a production cluster.

Arguments
-------------

Arguments that can be set while building:
- `DRUID_VERSION` (0.18.0 by default)
- `DRUID_VERSION`: 0.19.0 by default
- `DRUID_COORDINATOR_CONF_FILE`: path to the runtime.properties of the coordinator service.

Required hardware
------------------

Nano
*********

* 1 CPU
* 4GB RAM
* Launch command: `bin/start-nano-quickstart`
* Configuration directory: `conf/druid/single-server/nano-quickstart`


Micro
*********

* 4 CPU
* 16GB RAM
* Launch command: `bin/start-micro-quickstart`
* Configuration directory: `conf/druid/single-server/micro-quickstart`

0 comments on commit 491e69a

Please sign in to comment.