Comments (4)
After some try and error y managed to make it works with some caveats i still need to figure it out.
- Had to run it on docker 16.04 since more recent version dont support ulimits on docker-compose.yml files and run this:
echo -e "[Service]\nLimitMEMLOCK=infinity" | SYSTEMD_EDITOR=tee systemctl edit docker.service
systemctl daemon-reload
systemctl restart docker
(cant find the source, i ll link it later)
- I have to test how it scales without split brain situations and if it causes downtime.
Here are some usefull links and the docker-compose.yml:
https://docs.docker.com/engine/swarm/swarm-tutorial/create-swarm/
https://docs.docker.com/engine/swarm/swarm-tutorial/deploy-service/
https://docs.docker.com/engine/reference/commandline/service_scale/
version: '3'
services:
elastic-node1:
image: amazon/opendistro-for-elasticsearch:0.7.0
environment:
- cluster.name=elastic-cluster
- node.name=elastic-node1
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms16g -Xmx16g"
- opendistro_security.ssl.http.enabled=false
- discovery.zen.minimum_master_nodes=2
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic-data1:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9600:9600
networks:
- elastic-net
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
elastic-node2:
image: amazon/opendistro-for-elasticsearch:0.7.0
environment:
- cluster.name=elastic-cluster
- node.name=elastic-node2
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms16g -Xmx16g"
- opendistro_security.ssl.http.enabled=false
- "discovery.zen.ping.unicast.hosts=elastic-node1"
- discovery.zen.minimum_master_nodes=2
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- elastic-data2:/usr/share/elasticsearch/data
networks:
- elastic-net
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role != manager
kibana:
image: amazon/opendistro-for-elasticsearch-kibana:0.7.0
ports:
- 5601:5601
expose:
- "5601"
environment:
ELASTICSEARCH_URL: http://elastic-node1:9200
networks:
- elastic-net
deploy:
mode: replicated
replicas: 1
placement:
constraints:
- node.role == manager
volumes:
elastic-data1:
elastic-data2:
networks:
elastic-net:
After the initial start i managed to grow it with:
docker service scale stackdemo_elastic-node2=2
And thats how far i got with the testing for now.
Hope it helps!
from for-elasticsearch-docs.
Hi there, technical writer here. I am new to open source and Elastic, but interested in helping with documentation.
from for-elasticsearch-docs.
Hi @oddlittlebird, I went ahead and created some "good first issue" issues here: https://github.com/opendistro/for-elasticsearch-docs/issues
If those are too daunting, another good way to get started is to pick a page and test it: does the sample code work, are there typos or other inaccuracies, is it missing useful content, etc.
from for-elasticsearch-docs.
Awesome, thank you!
from for-elasticsearch-docs.
Related Issues (20)
- 403 - Acess denied error while installing elasticsearch alerting plugin
- Should be POST request when searching with body?
- ODBC Driver 1.9.00
- Forward to OpenSearch? HOT 1
- Access rights to management page HOT 1
- PPL Command Doc Type
- Opensearch crashing on Macbook Pro M1 Max (Docker) HOT 3
- No handler for type [knn_vector]
- Update docs to reflect 1.13.3 HOT 4
- opendistro-for-elasticsearch-kibana version 1.13.3 HOT 1
- opendistroforelasticsearch yum repo not updated with 1.13.3 HOT 1
- mitigate vulnerability log4j
- Failing to use fetch_size parameter with query
- openid not working with opendistro kibana. As per steps which are provided by openditsro. kindly help us
- [Urgent] I can't make notebooks with recently created visualizations.
- mapped users option is missing
- alerting index permission
- Unable to use window functions in version 1.13.0
- OpenDistro Index Management
- opendistro-alerting-alert-history alerts disable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from for-elasticsearch-docs.