Elasticsearch cluster across docker -


how deploy es (elasticsearch) cluster?

i use docker swarm + compose deploy systems , try deploy es cluster .yml:

version: '3.3'   services:     elasticsearch:     image: elasticsearch:alpine     ports:       - '9200:9200'       - '9300:9300'     command: [ elasticsearch, -e, network.host=0.0.0.0, -e, discovery.zen.ping.unicast.hosts=elasticsearch, -e, discovery.zen.minimum_master_nodes=1, -e, cluster.name=mycluster ]     networks:       - esnet1     environment:         es_java_opts: "-xmx512m -xms512m"     deploy:       mode: replicated       replicas: 2       #endpoint_mode: dnsrr       resources:         limits:           cpus: '2'           memory: 1024m         reservations:           cpus: '0.50'           memory: 512m  networks:   esnet1: 

call request <ip>:9200/_cat/nodes?v see single instance. issue https://github.com/elastic/elasticsearch-docker/issues/91 bug in docker , fix. ok, es without cluster not es! in internet saw guys deploy different service master , slave clumsy solution, because es determines master , not, competently. , interesting question: how deploy es cluster?


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -