From ed2b5e80ebec290d8da7fdaa9d3420e64cb1b3c7 Mon Sep 17 00:00:00 2001 From: Andrei Stefan Date: Fri, 11 Jan 2019 11:24:31 +0200 Subject: [PATCH] Update discovery-ec2.asciidoc (#28925) * Be more clear about the need to defining tags in EC2 to be able to filter ES instances. --- docs/plugins/discovery-ec2.asciidoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/plugins/discovery-ec2.asciidoc b/docs/plugins/discovery-ec2.asciidoc index 2710cf46bff..57b5b8468fa 100644 --- a/docs/plugins/discovery-ec2.asciidoc +++ b/docs/plugins/discovery-ec2.asciidoc @@ -185,9 +185,9 @@ Management Console. It should look similar to this. ===== Filtering by Tags The ec2 discovery can also filter machines to include in the cluster based on tags (and not just groups). The settings -to use include the `discovery.ec2.tag.` prefix. For example, setting `discovery.ec2.tag.stage` to `dev` will only -filter instances with a tag key set to `stage`, and a value of `dev`. Several tags set will require all of those tags -to be set for the instance to be included. +to use include the `discovery.ec2.tag.` prefix. For example, if you defined a tag `stage` in EC2 and set it to `dev`, +setting `discovery.ec2.tag.stage` to `dev` will only filter instances with a tag key set to `stage`, and a value +of `dev`. Adding multiple `discovery.ec2.tag` settings will require all of those tags to be set for the instance to be included. One practical use for tag filtering is when an ec2 cluster contains many nodes that are not running Elasticsearch. In this case (particularly with high `discovery.zen.ping_timeout` values) there is a risk that a new node's discovery phase