Skip to content

Commit

Permalink
Change shard allocation filter property and api (elastic#42602)
Browse files Browse the repository at this point in the history
The current example is not working and a bit confused. This change tries
to match it with the sample of the watcher blog.
  • Loading branch information
insukcho authored and dnhatn committed Jun 4, 2019
1 parent c8988d5 commit 4808f48
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/docs/en/watcher/how-watcher-works.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ primary and all replicas of this particular shard will reload.
Because the watches are executed on the node, where the watch shards are, you can create
dedicated watcher nodes by using shard allocation filtering.

You could configure nodes with a dedicated `node.attr.watcher: true` property and
You could configure nodes with a dedicated `node.attr.role: watcher` property and
then configure the `.watches` index like this:

[source,js]
------------------------
PUT .watches/_settings
{
"index.routing.allocation.include": "watcher"
"index.routing.allocation.include.role": "watcher"
}
------------------------
// CONSOLE
Expand Down Expand Up @@ -442,4 +442,4 @@ references the `email_notification_subject` template:
}
}
----------------------------------------------------------------------
// NOTCONSOLE
// NOTCONSOLE

0 comments on commit 4808f48

Please sign in to comment.