mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
minor documentation improvements (#19500)
* minor documentation improvements * remove unnecessary commas
This commit is contained in:
parent
8c721b10af
commit
96b0b1091f
@ -59,18 +59,18 @@ TransportClient client = new PreBuiltTransportClient(settings);
|
|||||||
|
|
||||||
The Transport client comes with a cluster sniffing feature which
|
The Transport client comes with a cluster sniffing feature which
|
||||||
allows it to dynamically add new hosts and remove old ones.
|
allows it to dynamically add new hosts and remove old ones.
|
||||||
When sniffing is enabled the the transport client will connect to the nodes in its
|
When sniffing is enabled, the transport client will connect to the nodes in its
|
||||||
internal node list, which is built via calls to addTransportAddress.
|
internal node list, which is built via calls to `addTransportAddress`.
|
||||||
After this, the client will call the internal cluster state API on those nodes
|
After this, the client will call the internal cluster state API on those nodes
|
||||||
to discover available data nodes. The internal node list of the client will
|
to discover available data nodes. The internal node list of the client will
|
||||||
be replaced with those data nodes only. This list is refreshed every five seconds by default.
|
be replaced with those data nodes only. This list is refreshed every five seconds by default.
|
||||||
Note that the IP addresses the sniffer connects to are the ones declared as the 'publish'
|
Note that the IP addresses the sniffer connects to are the ones declared as the 'publish'
|
||||||
address in those node's elasticsearch config.
|
address in those node's elasticsearch config.
|
||||||
|
|
||||||
Keep in mind that list might possibly not include the original node it connected to
|
Keep in mind that the list might possibly not include the original node it connected to
|
||||||
if that node is not a data node. If, for instance, you initially connect to a
|
if that node is not a data node. If, for instance, you initially connect to a
|
||||||
master node, after sniffing no further requests will go to that master node,
|
master node, after sniffing, no further requests will go to that master node,
|
||||||
but rather to any data nodes instead. The reason the transport excludes non-data
|
but rather to any data nodes instead. The reason the transport client excludes non-data
|
||||||
nodes is to avoid sending search traffic to master only nodes.
|
nodes is to avoid sending search traffic to master only nodes.
|
||||||
|
|
||||||
In order to enable sniffing, set `client.transport.sniff` to `true`:
|
In order to enable sniffing, set `client.transport.sniff` to `true`:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user