Back to Zipkin

If docker is running on your host machine, adjust the kernel setting directly

docker/test-images/zipkin-elasticsearch8/README.md

3.6.11.4 KB
Original Source

zipkin-elasticsearch8 Docker image

The zipkin-elasticsearch8 testing image runs Elasticsearch 8.x for Elasticsearch storage integration.

To build openzipkin/zipkin-elasticsearch8:test, from the top-level of the repository, run:

bash
$ DOCKER_FILE=docker/test-images/zipkin-elasticsearch8/Dockerfile build-bin/docker/docker_build openzipkin/zipkin-elasticsearch8:test

You can use the env variable ES_JAVA_OPTS to change settings such as heap size for Elasticsearch.

Host setup

Elasticsearch is strict about virtual memory. You will need to adjust accordingly (especially if you notice Elasticsearch crash!)

bash
# If docker is running on your host machine, adjust the kernel setting directly
$ sudo sysctl -w vm.max_map_count=262144

# If using docker-machine/Docker Toolbox/Boot2Docker, remotely adjust the same
$ docker-machine ssh default "sudo sysctl -w vm.max_map_count=262144"

# If using colima, it is similar as well
$ colima ssh "sudo sysctl -w vm.max_map_count=262144"

License

This Elasticsearch image is only made for testing features supported by Zipkin, and is subject to Elastic-License-2.0. For more details, inspect the LICENSE.txt and NOTICE.txt in the /elasticsearch directory of this image.