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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -