Skip to content

Commit

Permalink
Update README.md for an easier CCR local testing setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yuliacech committed Oct 30, 2020
1 parent 109b763 commit 1494f05
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions x-pack/plugins/cross_cluster_replication/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@
You can run a local cluster and simulate a remote cluster within a single Kibana directory.

1. Start your "local" cluster by running `yarn es snapshot --license=trial` and `yarn start` to start Kibana.
2. Download Elasticsearch repository, preferably to a folder adjacent to Kibana.
3. Start your "remote" cluster by running `yarn es source --source-path={PATH/TO/ELASTICSEARCH/REPOSITORY} --license=trial -E cluster.name=europe -E transport.port=9400`.
- Parameter `--source-path` defaults to `../elasticsearch` and can be omitted if Elasticsearch repository is at the same level as Kibana:
`yarn es source --license=trial -E cluster.name=europe -E transport.port=9400`.
4. 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"`.
2. Start your "remote" cluster by running `yarn es source --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`
Expand Down

0 comments on commit 1494f05

Please sign in to comment.