From b29312b7c51a3753795e04f0ef9b920b07cc5bdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yulia=20=C4=8Cech?= <6585477+yuliacech@users.noreply.github.com> Date: Mon, 2 Nov 2020 14:30:19 +0100 Subject: [PATCH] [CCR] Update README.md on how to start 2 clusters for testing (#81487) * Update Cross cluster replication README.md on how to start 2 Elasticsearch clusters for local testing. * Update README.md for an easier CCR local testing setup * Fix the command for a remote cluster Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- x-pack/plugins/cross_cluster_replication/README.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/cross_cluster_replication/README.md b/x-pack/plugins/cross_cluster_replication/README.md index 8baccf4f7333e..9c500950c20df 100644 --- a/x-pack/plugins/cross_cluster_replication/README.md +++ b/x-pack/plugins/cross_cluster_replication/README.md @@ -4,11 +4,9 @@ You can run a local cluster and simulate a remote cluster within a single Kibana directory. -1. Run `yarn es snapshot --license=trial` and kill the process once the snapshot has been installed. -2. Duplicate the ES installation by running `cp -aR .es/8.0.0 .es/8.0.0-2`. -3. Start your "local" cluster by running `.es/8.0.0/bin/elasticsearch` and starting Kibana. -4. Start your "remote" cluster by running `.es/8.0.0-2/bin/elasticsearch -E cluster.name=europe -E transport.port=9400`. -5. Index a document into your remote cluster by running `curl -X PUT http://elastic:changeme@localhost:9201/my-leader-index --data '{"settings":{"number_of_shards":1,"soft_deletes.enabled":true}}' --header "Content-Type: application/json"`. +1. Start your "local" cluster by running `yarn es snapshot --license=trial` and `yarn start` to start Kibana. +2. Start your "remote" cluster by running `yarn es snapshot --license=trial -E cluster.name=europe -E transport.port=9400` in a separate terminal tab. +3. Index a document into your remote cluster by running `curl -X PUT http://elastic:changeme@localhost:9201/my-leader-index --data '{"settings":{"number_of_shards":1,"soft_deletes.enabled":true}}' --header "Content-Type: application/json"`. Note that these settings are required for testing auto-follow pattern conflicts errors (see below). Now you can create follower indices and auto-follow patterns to replicate the `my-leader-index`