You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Admin/XMover: Add problematic translog detection and cancellation
The new command can find and cancel replica shards with large
uncommitted translog sizes. It provides options to set size thresholds
and optionally execute cancel commands after user confirmation.
-**DISK**: Rebuilding shard from local data (after restart/disk issues)
246
246
247
247
248
+
### `problematic-translogs`
249
+
Find and optionally cancel replica shards with problematic translog sizes.
250
+
251
+
**Options:**
252
+
-`--size-mb INTEGER`: Minimum translog uncommitted size in MB (default: 300)
253
+
-`--cancel`: Execute the cancel commands after confirmation
254
+
255
+
**Description:**
256
+
This command identifies replica shards with large uncommitted translog sizes that may indicate replication issues. By default, it shows the ALTER commands that would cancel these shards. With `--cancel`, it executes them after confirmation.
257
+
258
+
**Examples:**
259
+
```bash
260
+
# Show problematic shards with translog > 300MB (default)
261
+
xmover problematic-translogs
262
+
263
+
# Show shards with translog > 500MB
264
+
xmover problematic-translogs --size-mb 500
265
+
266
+
# Execute cancel commands for shards > 1GB after confirmation
ALTER TABLE "TURVO"."shipmentFormFieldData" REROUTE CANCEL SHARD 14 on 'data-hot-6' WITH (allow_primary=False);
283
+
ALTER TABLE "TURVO"."shipmentFormFieldData_events" partition ("sync_day"=1757376000000) REROUTE CANCEL SHARD 3 on 'data-hot-2' WITH (allow_primary=False);
284
+
ALTER TABLE "TURVO"."orderFormFieldData" REROUTE CANCEL SHARD 5 on 'data-hot-1' WITH (allow_primary=False);
285
+
Total: 3 ALTER commands generated
286
+
```
287
+
288
+
248
289
### `active-shards`
249
290
Monitor the most active shards by tracking checkpoint progression over time.
250
291
This command helps identify which shards are receiving the most write activity
0 commit comments