Advertisement
Guest User

cluster compose

a guest
Apr 20th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. version: '3'
  2. services:
  3. nyx-node1:
  4. image: amazon/opendistro-for-elasticsearch:1.6.0
  5. container_name: nyx-node3-data
  6. environment:
  7. - cluster.name=nyx-cluster
  8. - node.name=nyx-node3-data
  9. - discovery.seed_hosts=192.168.1.32
  10. - bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
  11. - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
  12. - network.host=0.0.0.0
  13. ulimits:
  14. memlock:
  15. soft: -1
  16. hard: -1
  17. nofile:
  18. soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
  19. hard: 65536
  20. volumes:
  21. - nyx-data3:/usr/share/elasticsearch/data
  22. ports:
  23. - 9200:9200
  24. - 9300:9300
  25. network_mode: "host"
  26. nyx-node4-data:
  27. image: amazon/opendistro-for-elasticsearch:1.6.0
  28. container_name: nyx-node4-data
  29. environment:
  30. - cluster.name=nyx-cluster
  31. - node.name=nyx-node4-data
  32. - discovery.seed_hosts=192.168.1.32
  33. - bootstrap.memory_lock=true
  34. - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
  35. ulimits:
  36. memlock:
  37. soft: -1
  38. hard: -1
  39. nofile:
  40. soft: 65536
  41. hard: 65536
  42. volumes:
  43. - nyx-data4:/usr/share/elasticsearch/data
  44. nyx-node5-data:
  45. image: amazon/opendistro-for-elasticsearch:1.6.0
  46. container_name: nyx-node5-data
  47. environment:
  48. - cluster.name=nyx-cluster
  49. - node.name=nyx-node5-data
  50. - discovery.seed_hosts=192.168.1.32
  51. - bootstrap.memory_lock=true
  52. - "ES_JAVA_OPTS=-Xms4096m -Xmx4096m"
  53. ulimits:
  54. memlock:
  55. soft: -1
  56. hard: -1
  57. nofile:
  58. soft: 65536
  59. hard: 65536
  60. volumes:
  61. - nyx-data5:/usr/share/elasticsearch/data
  62.  
  63. volumes:
  64. nyx-data3:
  65. nyx-data4:
  66. nyx-data5:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement