Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust Elasticsearch cluster setup #3

Merged
merged 6 commits into from
Jan 18, 2021

Conversation

justahero
Copy link
Member

This adjusts the Elasticsearch cluster to only have a single master-eligible node (for now). The main reason is most examples / exercises only require a single node running, a few require all three nodes. If all nodes are master-eligible the minimum master nodes setting is increased from 1 to 2. Starting a single node cluster again does not boot correctly afterwards, because the cluster assumes then a minimum of 2 nodes. To avoid this issue for now and allow both setups to run both containers elasticsearch02 and elasticsearch03 are not master-eligible.

Another way to solve this would to delete all mounted data folders from these containers in order to remove this information, but this seems a bit more destructive then necessary for any presentation.

  • update Elasticsearch Dockerfile settings to assign roles, master nodes and seeds correctly
  • re-enable elasticsearch02 and elasticsearch03 in docker-compose.yml
  • add links to Elasticsearch documentation regarding cluster setup to Readme
  • add a few useful Docker Compose commands to Readme
  • fix curator Dockerfile to build correctly
  • add a few Curator action files as examples to curator container
  • add path.repo setting to all Elasticsearch containers, it's a shared mounted folder for backups

This adds a number of configuration settings to all Elasticsearch
containers, for example rack awareness and a few node properties useful
in a hot / warm architecture.

* re-enable elasticsearch02 and elasticsearch03 containers
* set `path.repo` to a shared volume for snapshots
* add rack awareness properties
This is not supported by the used Elasticsearch versions yet.
These Curation action files can be used to demonstrate a number of index
management tasks, e.g. delete indices, take snapshots, index rollover
etc.

* change Dockerfile to install config files
This moves some of the configuration settings into the
`elasticsearch.yml` file.

* set node attributes for rack awareness
* disable nodes 02 and 03 not to be master
* set `discovery.seed_hosts` in containers `elasticsearch02` and
  `elasticsearch03`
@justahero justahero merged commit ffaeb92 into main Jan 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant