Skip to content

Different docker-compose examples and configurations for different distribution of search engines based on Elastic, such as: OpenSearch and ElasticSearch OSS or licensed version

License

Notifications You must be signed in to change notification settings

MysterionRise/flavours-of-elastic

Repository files navigation

Repo with collection of different Elastic flavours and their usage

What's supported:

Versions (.env file)

  • OpenSearch: 2.9.0
  • Elastic OSS (legacy): 7.10.2
  • Elastic Stack 8.9.1

How To Run Those Examples

You would need to install Docker and Docker Compose

Start cluster

# fill in .env file with ELASTIC_PASSWORD and KIBANA_PASSWORD
# Elastic Stack
docker-compose -f docker/elk/docker-compose.yml --env-file .env up
curl --insecure https://localhost:9200 -u elastic:ELASTIC_PASSWORD

# OPENSEARCH
docker-compose -f docker/opensearch/docker-compose.yml --env-file .env up
curl --insecure https://localhost:9200 -u admin:admin

# Elasticsearch OSS (do not update OSS version)
docker-compose -f docker/elk-oss/docker-compose.yml --env-file .env up
curl http://localhost:9200

After some time you will have Kibana/OpenSearch Dashboards available at this URL

Licence Changes

After recent changes announced for Elastic to move its product to SSPL licence, I would strongly recommend to keep using truly open source version of it. Not only it has security features available for free, but also it doesn't have any strings attached to it via SSPL licence.

Read more on this here

Benchmarking

One of the possibility to compare those are to use ESRally and run some experiments with it

Install ESRally

Elastic Stack

Install ESRally

pip3 install esrally

and then benchmark

esrally race --track=geonames --target-hosts=localhost:9200 --pipeline=benchmark-only --client-options="use_ssl:true,verify_certs:false,basic_auth_user:'admin',basic_auth_password:'admin'"

OpenSearch

Install Opensearch Benchmark

pip install opensearch-benchmark

and then benchmark

opensearch-benchmark execute-test --workload=geonames --target-hosts=localhost:9200 --pipeline=benchmark-only --client-options="use_ssl:true,verify_certs:false,basic_auth_user:'admin',basic_auth_password:'admin'"

Enjoy the results or create your own test experiments.

About

Different docker-compose examples and configurations for different distribution of search engines based on Elastic, such as: OpenSearch and ElasticSearch OSS or licensed version

Topics

Resources

License

Stars

Watchers

Forks