Skip to content

Commit 7cc47fe

Browse files
committed
cluster_status updates
1 parent 429b3ce commit 7cc47fe

File tree

2 files changed

+28
-19
lines changed

2 files changed

+28
-19
lines changed

docs/developers/operations-api/clustering.md

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -128,33 +128,36 @@ _Operation is restricted to super_user roles only_
128128
"type": "cluster-status",
129129
"connections": [
130130
{
131-
"url": "wss://server-two:9925",
132-
"subscriptions": [
133-
{
134-
"schema": "dev",
135-
"table": "my-table",
136-
"publish": true,
137-
"subscribe": true
138-
}
139-
],
140-
"name": "server-two",
131+
"replicateByDefault": true,
132+
"replicates": true,
133+
"url": "wss://server-2.domain.com:9933",
134+
"name": "server-2.domain.com",
135+
"subscriptions": null,
141136
"database_sockets": [
142137
{
143-
"database": "dev",
138+
"database": "data",
144139
"connected": true,
145-
"latency": 0.84197798371315,
146-
"threadId": 1,
140+
"latency": 0.70,
141+
"thread_id": 1,
147142
"nodes": [
148-
"server-two"
149-
]
150-
}
151-
]
143+
"server-2.domain.com"
144+
],
145+
"lastCommitConfirmed": "Wed, 12 Feb 2025 19:09:34 GMT",
146+
"lastReceivedRemoteTime": "Wed, 12 Feb 2025 16:49:29 GMT",
147+
"lastReceivedLocalTime": "Wed, 12 Feb 2025 16:50:59 GMT",
148+
"lastSendTime": "Wed, 12 Feb 2025 16:50:59 GMT"
149+
},
152150
}
153151
],
154-
"node_name": "server-one",
152+
"node_name": "server-1.domain.com",
155153
"is_enabled": true
156154
}
157155
```
156+
There is a separate socket for each database for each node. Each node is represented in the connections array, and each database connection to that node is represented in the `database_sockets` array. Additional timing statistics include:
157+
* `lastCommitConfirmed`: When a commit is sent out, it should receive a confirmation from the remote server; this is the last receipt of confirmation of an outgoing commit.
158+
* `lastReceivedRemoteTime`: This is the timestamp of the transaction that was last received. The timestamp is from when the original transaction occurred.
159+
* `lastReceivedLocalTime`: This is local time when the last transaction was received. If there is a different between this and `lastReceivedRemoteTime`, it means there is a delay from the original transaction to * receiving it and so it is probably catching-up/behind.
160+
* `sendingMessage`: The timestamp of transaction is actively being sent. This won't exist if the replicator is waiting for the next transaction to send.
158161

159162
---
160163

docs/technical-details/release-notes/4.tucker/4.5.0.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@
1616
4.5 includes numerous new analytics for resources and storage, including page faults, context switches, free space, disk usage, and other metrics.
1717

1818
#### Default Replication Port
19-
The default port for replication has been changed from 9925 to 9933.
19+
The default port for replication has been changed from 9925 to 9933.
20+
21+
### Property Forwarding
22+
Accessing record properties from resource instances should be accessible through standard property access syntax, regardless of whether the property was declared in a schema. Previously only properties declared in a schema were accessible through standard property access syntax. This change allows for more consistent and intuitive access to record properties, regardless of how they were defined. It is still recommended to declare properties in a schema for better performance and documentation.
23+
24+
### Cluster Status Information
25+
The `cluster_status` operation now includes new statistics for replication, including the timestamps of last received transactions, sent transactions, and committed transactions.

0 commit comments

Comments
 (0)