Public Repository

Last pushed: a month ago
Short Description
Scalingo Elasticsearch Image
Full Description

Running the image

This image contains elasticsearch. To start the image, you can run the following snippet:

docker run -it -p 8000:8000 \
           -v <DATA_DIRECTORY>:/var/lib/elasticsearch \
           scalingo/elasticsearch /elasticsearch

You database is now up and running on the port 8000 of your host.

Parameters

  • <DATA_DIRECTORY>: directory used to store database data.

Environment

  • DB_USER (Optional, default: elasticsearch): username used for database authentication.
  • DB_PASSWORD (Optional, default: secret): password used for database authentication.

  • ES_HEAP_SIZE (Optional, default: 256m): minimum ram allocated by the JVM (Xms/Xmx flag)

  • ES_MEMORY_LOCK (in developement, set it to false, it is true by default)
  • DB_UID (Optional, default: 1503): user UID that elasticsearch should use to store data and run itself. You can set it to your own UID to have a simpler dev environment. Just add -e DB_UID=`id -u` before the -v flag.

System configuration

According to the distribution you're using or the configuration you're having you might need to set

sysctl -w vm.max_map_count=262144

Write it down in /etc/sysctl.conf to make it persistent across reboots.

Startup logs

Normal startup logs are :

```
[2017-08-29T09:23:02,131][INFO ][o.e.n.Node ] [172.17.0.1] initializing ...
[2017-08-29T09:23:02,210][INFO ][o.e.e.NodeEnvironment ] [172.17.0.1] using [1] data paths, mounts [[/var/lib/elasticsearch (tmpfs)]], net usable_space [7.7gb], net total_space [7.7gb], spins? [no], types [tmpfs]
[2017-08-29T09:23:02,211][INFO ][o.e.e.NodeEnvironment ] [172.17.0.1] heap size [247.5mb], compressed ordinary object pointers [true]
[2017-08-29T09:23:02,212][INFO ][o.e.n.Node ] [172.17.0.1] node name [172.17.0.1], node ID [OvcFq0xfQhiIAAQxnxMizg]
[2017-08-29T09:23:02,212][INFO ][o.e.n.Node ] [172.17.0.1] version[5.5.2], pid[31], build[b2f0c09/2017-08-14T12:33:14.154Z], OS[Linux/4.11.6-3-ARCH/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-08-29T09:23:02,213][INFO ][o.e.n.Node ] [172.17.0.1] JVM arguments [-Xms2g, -Xmx2g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Xms256m, -Xmx256m, -Des.path.home=/usr/share/elasticsearch]
[2017-08-29T09:23:02,989][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [aggs-matrix-stats]
[2017-08-29T09:23:02,989][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [ingest-common]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [lang-expression]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [lang-groovy]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [lang-mustache]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [lang-painless]
[2017-08-29T09:23:02,990][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [parent-join]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [percolator]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [reindex]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [transport-netty3]
[2017-08-29T09:23:02,991][INFO ][o.e.p.PluginsService ] [172.17.0.1] loaded module [transport-netty4]
[2017-08-29T09:23:02,992][INFO ][o.e.p.PluginsService ] [172.17.0.1] no plugins loaded
[2017-08-29T09:23:04,327][INFO ][o.e.d.DiscoveryModule ] [172.17.0.1] using discovery type [zen]
[2017-08-29T09:23:04,803][INFO ][o.e.n.Node ] [172.17.0.1] initialized
[2017-08-29T09:23:04,803][INFO ][o.e.n.Node ] [172.17.0.1] starting ...
[2017-08-29T09:23:04,936][INFO ][o.e.t.TransportService ] [172.17.0.1] publish_address {172.17.0.1:9300}, bound_addresses {0.0.0.0:9300}
[2017-08-29T09:23:04,948][INFO ][o.e.b.BootstrapChecks ] [172.17.0.1] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks

[2017-08-29T09:23:08,034][INFO ][o.e.c.s.ClusterService ] [172.17.0.1] new_master {172.17.0.1}{OvcFq0xfQhiIAAQxnxMizg}{J6BEch8XSxuBAhKDHCuSYQ}{172.17.0.1}{172.17.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-08-29T09:23:08,059][INFO ][o.e.g.GatewayService ] [172.17.0.1] recovered [0] indices into cluster_state
[2017-08-29T09:23:08,072][INFO ][o.e.h.n.Netty4HttpServerTransport] [172.17.0.1]

Docker Pull Command
Owner
scalingo

Comments (0)