|
2 | 2 |
|
3 | 3 | :page-role: enterprise-edition new-5.24 |
4 | 4 | [[monitoring-replication]] |
5 | | -= Monitor replication for status information |
| 5 | += Monitor replication status |
6 | 6 |
|
7 | 7 | Neo4j 5.24 introduces the xref:reference/procedures.adoc#procedure_dbms_cluster_statusCheck[`dbms.cluster.statusCheck()`] procedure, which can be used to monitor the ability to replicate in clustered databases. |
8 | 8 | In most cases this means a clustered database is write available. |
@@ -70,6 +70,7 @@ A failed replication can either mean a real issue in the cluster (e.g., no leade |
70 | 70 | * `APPLYING` means that the member can replicate and is actively applying transactions. |
71 | 71 | * `REPLICATING` means that the member can participate in replicating, but can't apply. |
72 | 72 | This state is uncommon, but may happen while waiting for the database to start and accept transactions. |
| 73 | +* `UNAVAILABLE` means that the member is either too far behind or unreachable. |
73 | 74 |
|
74 | 75 | === Possible values of `requester` |
75 | 76 | * `TRUE` -- for the server on which the procedure is run |
@@ -97,12 +98,17 @@ When running the cluster status check against a server, expect similar output to |
97 | 98 |
|
98 | 99 | [source,queryresults,role=noplay] |
99 | 100 | ---- |
100 | | -+------------------------------------------------------------------------------------------------------+ |
101 | | -| name | address | state | health | hosting | |
102 | | -+------------------------------------------------------------------------------------------------------+ |
103 | | -|"f4ae1895-26f1-4b93-bd31-6f482be80d3d"|"localhost:7681"|"Enabled"|"Available"|["system","foo","neo4j"]| |
104 | | -|"ffa55a5b-2aca-45fc-be09-2a894067025c"|"localhost:7682"|"Enabled"|"Available"|["system","foo","neo4j"]| |
105 | | -|"server3" |"localhost:7683"|"Enabled"|"Available"|["system","neo4j"] | |
106 | | -+------------------------------------------------------------------------------------------------------+ |
| 101 | ++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
| 102 | +| database | serverId | serverName | address | replicationSuccessful | memberStatus | recognisedLeader | recognisedLeaderTerm | requester | error | |
| 103 | ++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
| 104 | +| "neo4j" | "d3fe2e6a-494d-4ab8-81b1-7de2ce31ce11" | "d3fe2e6a-494d-4ab8-81b1-7de2ce31ce11" | "localhost:7682" | TRUE | "APPLYING" | "565130e8-b8f0-41ad-8f9d-c660bd8d5519" | 4 | FALSE | NULL | |
| 105 | +| "neo4j" | "565130e8-b8f0-41ad-8f9d-c660bd8d5519" | "565130e8-b8f0-41ad-8f9d-c660bd8d5519" | "localhost:7681" | TRUE | "APPLYING" | "565130e8-b8f0-41ad-8f9d-c660bd8d5519" | 4 | TRUE | NULL | |
| 106 | +| "neo4j" | "58c70f4b-910d-4d0e-b0f2-3084554079ec" | "58c70f4b-910d-4d0e-b0f2-3084554079ec" | "localhost:7683" | TRUE | "APPLYING" | "565130e8-b8f0-41ad-8f9d-c660bd8d5519" | 4 | FALSE | NULL | |
| 107 | +| "system" | "565130e8-b8f0-41ad-8f9d-c660bd8d5519" | "565130e8-b8f0-41ad-8f9d-c660bd8d5519" | "localhost:7681" | TRUE | "APPLYING" | "d3fe2e6a-494d-4ab8-81b1-7de2ce31ce11" | 1 | TRUE | NULL | |
| 108 | +| "system" | "58c70f4b-910d-4d0e-b0f2-3084554079ec" | "58c70f4b-910d-4d0e-b0f2-3084554079ec" | "localhost:7683" | TRUE | "APPLYING" | "d3fe2e6a-494d-4ab8-81b1-7de2ce31ce11" | 1 | FALSE | NULL | |
| 109 | +| "system" | "d3fe2e6a-494d-4ab8-81b1-7de2ce31ce11" | "d3fe2e6a-494d-4ab8-81b1-7de2ce31ce11" | "localhost:7682" | TRUE | "APPLYING" | "d3fe2e6a-494d-4ab8-81b1-7de2ce31ce11" | 1 | FALSE | NULL | |
| 110 | ++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ |
107 | 111 | ---- |
108 | 112 | ==== |
| 113 | + |
| 114 | + |
0 commit comments