Is it necessary to copy synonym.txt to all nodes?

I have a cluster of 3 nodes. My index is located on node-2 (primary shard) and node-3 (replica shard) and node-1 is currently master...Anyway, I have my own synonym.txt and I need to know that, should I have to copy my config (synonym.txt) to all the masters , and all of the data nodes?
Or only data nodes?

Another question: if synonym.txt is being to be used just during mapping the index (I mean creating documents ) and is not required when searching/query the index, so again I ask, should I have to copy the synonym.txt to all master, replica and primary nodes or only on the node which primary-shard is located on is sufficient?

I can get my answer using try/error, but I need to know the global rule.

It needs to be on any node that holds an index.

That is true, but since indices might be relocated to other nodes it needs to be on every node that can contain data (so every data node)

Yep true, that's what I was implying.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.