Я могу успешно запустить один экземпляр Elasticsearch с помощью плагина ingest-attachment.Тем не менее, когда я добавляю второй экземпляр (es02), я не выкидываю никаких ошибок, и кажется, что все работает, но второй экземпляр никогда не обновляется с какой-либо информацией.
version: '2.2'
services:
es01:
image: ingest_elasticstack:latest
container_name: es01
environment:
- node.name=es01
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2256m -Xmx2256m"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata01:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9300:9300
networks:
- esnet
es02:
image: docker.elastic.co/elasticsearch/elasticsearch:6.3.1
container_name: es02
environment:
- cluster.name=docker-cluster
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms2256m -Xmx2256m"
- "discovery.zen.ping.unicast.hosts=10.1.23.158"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- esdata02:/usr/share/elasticsearch/data
networks:
- esnet
volumes:
esdata01:
driver: local
esdata02:
driver: local
networks:
esnet:
Я могу проверить работоспособностьмой стек.
curl http://localhost:9200/_cat/health
1558351321 11:22:01 docker-cluster yellow 1 1 5 5 0 0 5 0 - 50.0%
Я могу подтвердить, что и es01, и es02 работают как контейнеры.
Что я сделал не так, что мешает es01 и es02 взаимодействовать / работать вместе?
es02 log:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
[2019-05-20T11:03:51,733][INFO ][o.e.n.Node ] [] initializing ...
[2019-05-20T11:03:51,811][INFO ][o.e.e.NodeEnvironment ] [J_As-FR] using [1] data paths, mounts [[/usr/share/elasticsearch/data (/dev/sda1)]], net usable_space [104.4gb], net total_space [146.5gb], types [ext4]
[2019-05-20T11:03:51,811][INFO ][o.e.e.NodeEnvironment ] [J_As-FR] heap size [2.1gb], compressed ordinary object pointers [true]
[2019-05-20T11:03:51,813][INFO ][o.e.n.Node ] [J_As-FR] node name derived from node ID [J_As-FRGQpGhPMNH3Kdspg]; set [node.name] to override
[2019-05-20T11:03:51,813][INFO ][o.e.n.Node ] [J_As-FR] version[6.3.1], pid[1], build[default/tar/eb782d0/2018-06-29T21:59:26.107521Z], OS[Linux/4.15.0-50-generic/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/10.0.1/10.0.1+10]
[2019-05-20T11:03:51,814][INFO ][o.e.n.Node ] [J_As-FR] JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.RFd1V9H6, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Des.cgroups.hierarchy.override=/, -Xms2256m, -Xmx2256m, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]
[2019-05-20T11:03:54,428][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [aggs-matrix-stats]
[2019-05-20T11:03:54,428][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [analysis-common]
[2019-05-20T11:03:54,428][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [ingest-common]
[2019-05-20T11:03:54,428][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [lang-expression]
[2019-05-20T11:03:54,429][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [lang-mustache]
[2019-05-20T11:03:54,429][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [lang-painless]
[2019-05-20T11:03:54,429][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [mapper-extras]
[2019-05-20T11:03:54,429][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [parent-join]
[2019-05-20T11:03:54,429][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [percolator]
[2019-05-20T11:03:54,429][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [rank-eval]
[2019-05-20T11:03:54,430][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [reindex]
[2019-05-20T11:03:54,430][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [repository-url]
[2019-05-20T11:03:54,430][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [transport-netty4]
[2019-05-20T11:03:54,430][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [tribe]
[2019-05-20T11:03:54,430][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-core]
[2019-05-20T11:03:54,430][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-deprecation]
[2019-05-20T11:03:54,431][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-graph]
[2019-05-20T11:03:54,431][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-logstash]
[2019-05-20T11:03:54,431][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-ml]
[2019-05-20T11:03:54,431][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-monitoring]
[2019-05-20T11:03:54,432][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-rollup]
[2019-05-20T11:03:54,432][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-security]
[2019-05-20T11:03:54,432][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-sql]
[2019-05-20T11:03:54,432][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-upgrade]
[2019-05-20T11:03:54,432][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded module [x-pack-watcher]
[2019-05-20T11:03:54,433][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded plugin [ingest-geoip]
[2019-05-20T11:03:54,433][INFO ][o.e.p.PluginsService ] [J_As-FR] loaded plugin [ingest-user-agent]
[2019-05-20T11:03:58,985][INFO ][o.e.x.s.a.s.FileRolesStore] [J_As-FR] parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]
[2019-05-20T11:03:59,652][INFO ][o.e.x.m.j.p.l.CppLogMessageHandler] [controller/77] [Main.cc@109] controller (64 bit): Version 6.3.1 (Build 4d0b8f0a0ef401) Copyright (c) 2018 Elasticsearch BV
[2019-05-20T11:04:00,417][INFO ][o.e.d.DiscoveryModule ] [J_As-FR] using discovery type [zen]
[2019-05-20T11:04:01,399][INFO ][o.e.n.Node ] [J_As-FR] initialized
[2019-05-20T11:04:01,400][INFO ][o.e.n.Node ] [J_As-FR] starting ...
[2019-05-20T11:04:01,544][INFO ][o.e.t.TransportService ] [J_As-FR] publish_address {172.19.0.3:9300}, bound_addresses {0.0.0.0:9300}
[2019-05-20T11:04:01,581][INFO ][o.e.b.BootstrapChecks ] [J_As-FR] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2019-05-20T11:04:04,695][INFO ][o.e.c.s.MasterService ] [J_As-FR] zen-disco-elected-as-master ([0] nodes joined)[, ], reason: new_master {J_As-FR}{J_As-FRGQpGhPMNH3Kdspg}{5LUqL1sGQSGBJGlw5RBI6g}{172.19.0.3}{172.19.0.3:9300}{ml.machine_memory=12592705536, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}
[2019-05-20T11:04:04,700][INFO ][o.e.c.s.ClusterApplierService] [J_As-FR] new_master {J_As-FR}{J_As-FRGQpGhPMNH3Kdspg}{5LUqL1sGQSGBJGlw5RBI6g}{172.19.0.3}{172.19.0.3:9300}{ml.machine_memory=12592705536, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, reason: apply cluster state (from master [master {J_As-FR}{J_As-FRGQpGhPMNH3Kdspg}{5LUqL1sGQSGBJGlw5RBI6g}{172.19.0.3}{172.19.0.3:9300}{ml.machine_memory=12592705536, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true} committed version [1] source [zen-disco-elected-as-master ([0] nodes joined)[, ]]])
[2019-05-20T11:04:04,768][INFO ][o.e.x.s.t.n.SecurityNetty4HttpServerTransport] [J_As-FR] publish_address {172.19.0.3:9200}, bound_addresses {0.0.0.0:9200}
[2019-05-20T11:04:04,769][INFO ][o.e.n.Node ] [J_As-FR] started
[2019-05-20T11:04:05,018][WARN ][o.e.x.s.a.s.m.NativeRoleMappingStore] [J_As-FR] Failed to clear cache for realms [[]]
[2019-05-20T11:04:05,053][INFO ][o.e.l.LicenseService ] [J_As-FR] license [d0a2a423-1ae2-4699-b8a6-db10bab45eff] mode [basic] - valid
[2019-05-20T11:04:05,072][INFO ][o.e.g.GatewayService ] [J_As-FR] recovered [0] indices into cluster_state