Skip to content

Commit 0414566

Browse files
[DOCS] Remote cluster troubleshooting guide (#99128) (#99199)
* [DOCS] Remote cluster troubleshooting guide * Fix test failures * Apply suggestions from code review * Review feedback * Group issues under 'common' and 'API key' * Apply suggestions from code review --------- Co-authored-by: Yang Wang <[email protected]>
1 parent 7bb4583 commit 0414566

7 files changed

+439
-5
lines changed

docs/reference/modules/cluster/remote-clusters-api-key.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ To add a remote cluster using API key authentication:
4848
. <<remote-clusters-connect-api-key>>
4949
. <<remote-clusters-privileges-api-key>>
5050

51+
If you run into any issues, refer to <<remote-clusters-troubleshooting>>.
52+
5153
[[remote-clusters-prerequisites-api-key]]
5254
==== Prerequisites
5355

docs/reference/modules/cluster/remote-clusters-cert.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ To add a remote cluster using TLS certificate authentication:
88
. <<remote-clusters-connect-cert>>
99
. <<remote-clusters-privileges-cert>>
1010

11+
If you run into any issues, refer to <<remote-clusters-troubleshooting>>.
12+
1113
[[remote-clusters-prerequisites-cert]]
1214
==== Prerequisites
1315

docs/reference/modules/cluster/remote-clusters-migration.asciidoc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ following these steps:
3232
. <<remote-clusters-migration-resume>>
3333
. <<remote-clusters-migration-disable-cert>>
3434

35+
If you run into any issues, refer to <<remote-clusters-troubleshooting>>.
36+
3537
[[remote-clusters-migration-prerequisites]]
3638
==== Prerequisites
3739

@@ -208,11 +210,10 @@ existing indices that were created from the auto-follow pattern.
208210
[[remote-clusters-migration-disable-cert]]
209211
==== Disable certificate based authentication and authorization
210212

211-
//TODO: Add link to troubleshooting docs when they're published
212213
NOTE: Only proceed with this step if the migration has been proved successful on
213-
the local cluster. If the migration is unsuccessful, either find out what the
214-
problem is and attempt to fix it or <<remote-clusters-migration-rollback,roll
215-
back>>.
214+
the local cluster. If the migration is unsuccessful, either
215+
<<remote-clusters-troubleshooting,find out what the problem is and attempt to
216+
fix it>> or <<remote-clusters-migration-rollback,roll back>>.
216217

217218
Next, disable the certification based connection. Optionally, you can also
218219
revoke the authorization.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
[source,console]
2+
----
3+
GET /_remote/info
4+
----
5+
// TEST[skip:TODO]
6+
7+
The API should return `"connected" : true`. When using
8+
<<remote-clusters-api-key,API key authentication>>, it should also return
9+
`"cluster_credentials": "::es_redacted::"`.
10+
11+
[source,console-result,subs=attributes+]
12+
----
13+
{
14+
"cluster_one" : {
15+
"seeds" : [
16+
"127.0.0.1:9443"
17+
],
18+
"connected" : true, <1>
19+
"num_nodes_connected" : 1,
20+
"max_connections_per_cluster" : 3,
21+
"initial_connect_timeout" : "30s",
22+
"skip_unavailable" : false,
23+
"cluster_credentials": "::es_redacted::", <2>
24+
"mode" : "sniff"
25+
}
26+
}
27+
----
28+
// TEST[skip:TODO]
29+
<1> The remote cluster has connected successfully.
30+
<2> If present, indicates the remote cluster has connected using
31+
<<remote-clusters-api-key,API key authentication>> instead of
32+
<<remote-clusters-cert,certificate based authentication>>.

docs/reference/modules/cluster/remote-clusters-troubleshooting.asciidoc

Lines changed: 394 additions & 0 deletions
Large diffs are not rendered by default.

docs/reference/modules/remote-clusters.asciidoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,5 @@ include::cluster/remote-clusters-cert.asciidoc[]
9797
include::cluster/remote-clusters-migration.asciidoc[]
9898

9999
include::cluster/remote-clusters-settings.asciidoc[]
100+
101+
include::cluster/remote-clusters-troubleshooting.asciidoc[]

docs/reference/troubleshooting.asciidoc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ fix problems that an {es} deployment might encounter.
5555
* <<transform-troubleshooting,Troubleshooting transforms>>
5656
* <<watcher-troubleshooting,Troubleshooting Watcher>>
5757
* <<troubleshooting-searches,Troubleshooting searches>>
58-
* <<troubleshooting-shards-capacity-issues, Troubleshoot shards capacity>>
58+
* <<troubleshooting-shards-capacity-issues,Troubleshooting shards capacity>>
59+
* <<remote-clusters-troubleshooting,Troubleshooting remote clusters>>
5960

6061
If none of these solutions relate to your issue, you can still get help:
6162

0 commit comments

Comments
 (0)