Skip to content

Commit 8cf9ebe

Browse files
committed
Remove docs for proxy mode (#46677)
We added docs for proxy mode in #40281 but on reflection we should not be documenting this setting since it does not play well with all proxies and we can't recommend its use. This commit removes those docs and expands its Javadoc instead.
1 parent a432a6a commit 8cf9ebe

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

docs/reference/modules/remote-clusters.asciidoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -247,14 +247,6 @@ PUT _cluster/settings
247247
Elasticsearch compresses the response. If unset, the global
248248
`transport.compress` is used as the fallback setting.
249249

250-
`cluster.remote.${cluster_alias}.proxy`::
251-
252-
Sets a proxy address for the specified remote cluster. By default this is not
253-
set, meaning that Elasticsearch will connect directly to the nodes in the
254-
remote cluster using their <<advanced-network-settings,publish addresses>>.
255-
If this setting is set to an IP address or hostname then Elasticsearch will
256-
connect to the nodes in the remote cluster using this address instead.
257-
258250
[float]
259251
[[retrieve-remote-clusters-info]]
260252
=== Retrieving remote clusters info

server/src/main/java/org/elasticsearch/transport/RemoteClusterAware.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,10 @@ public String getKey(final String key) {
143143
};
144144

145145
/**
146-
* A proxy address for the remote cluster.
146+
* A proxy address for the remote cluster. By default this is not set, meaning that Elasticsearch will connect directly to the nodes in
147+
* the remote cluster using their publish addresses. If this setting is set to an IP address or hostname then Elasticsearch will connect
148+
* to the nodes in the remote cluster using this address instead. Use of this setting is not recommended and it is deliberately
149+
* undocumented as it does not work well with all proxies.
147150
*/
148151
public static final Setting.AffixSetting<String> REMOTE_CLUSTERS_PROXY = Setting.affixKeySetting(
149152
"cluster.remote.",

0 commit comments

Comments
 (0)