Skip to content

Commit 04ba5d0

Browse files
committed
add molt-replicator flags reference
1 parent f0a8cae commit 04ba5d0

File tree

1 file changed

+67
-0
lines changed
  • skills/onboarding-and-migrations/molt-replicator/references

1 file changed

+67
-0
lines changed
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# molt replicator: Full Flag Reference
2+
3+
## Common Flags (all subcommands)
4+
5+
| Flag | Default | Description |
6+
|------|---------|-------------|
7+
| `--stagingConn` | - | Staging CockroachDB connection string |
8+
| `--stagingSchema` | `_replicator.public` | Schema for replicator metadata tables |
9+
| `--stagingCreateSchema` | false | Auto-create staging schema |
10+
| `--stagingMaxPoolSize` | 128 | Max staging connection pool size |
11+
| `--stagingIdleTime` | `1m` | Idle connection timeout |
12+
| `--stagingMaxLifetime` | `5m` | Max connection lifetime |
13+
| `--targetConn` | - | Target CockroachDB connection string |
14+
| `--targetSchema` | - | Target schema to replicate into |
15+
| `--targetMaxPoolSize` | 128 | Max target connection pool size |
16+
| `--targetStatementCacheSize` | 128 | Prepared statement cache size |
17+
| `--parallelism` | 16 | Concurrent DB transactions |
18+
| `--flushSize` | 1000 | Rows per batch |
19+
| `--flushPeriod` | `1s` | Flush interval |
20+
| `--scanSize` | 10000 | Rows read from staging per pass |
21+
| `--targetApplyQueueSize` | 1000000 | Mutation buffer size |
22+
| `--maxRetries` | 10 | Retry attempts on failure |
23+
| `--retryInitialBackoff` | `25ms` | Initial retry delay |
24+
| `--retryMaxBackoff` | `2s` | Max retry delay |
25+
| `--retryMultiplier` | 2 | Exponential backoff multiplier |
26+
| `--applyTimeout` | `30s` | Max time per update |
27+
| `--taskGracePeriod` | `1m` | Cleanup time on error |
28+
| `--schemaRefresh` | `1m` | Schema cache refresh interval (`0` = disabled) |
29+
| `--metricsAddr` | - | `host:port` for Prometheus metrics |
30+
| `--stageSanityCheckPeriod` | `10m` | Validate staging apply ordering |
31+
| `--stageUnappliedPeriod` | `1m` | Report unapplied mutations |
32+
| `--dlqTableName` | - | Table for failed/unprocessable rows |
33+
| `--gracePeriod` | `30s` | Graceful shutdown time |
34+
| `--logFormat` | `text` | `text` or `fluent` |
35+
| `--logDestination` | stdout | Log file path |
36+
| `-v` | - | Debug logging |
37+
| `-vv` | - | Trace logging |
38+
39+
## pglogical-specific
40+
41+
| Flag | Default | Description |
42+
|------|---------|-------------|
43+
| `--sourceConn` | - | Source PostgreSQL connection |
44+
| `--publicationName` | - | Publication name on source (must match molt fetch) |
45+
| `--slotName` | `replicator` | Replication slot on source |
46+
47+
## mylogical-specific
48+
49+
| Flag | Default | Description |
50+
|------|---------|-------------|
51+
| `--sourceConn` | - | Source MySQL connection |
52+
53+
## oraclelogminer-specific
54+
55+
| Flag | Default | Description |
56+
|------|---------|-------------|
57+
| `--sourceConn` | - | Source Oracle connection |
58+
59+
## Utility Subcommands
60+
61+
| Command | Description |
62+
|---------|-------------|
63+
| `replicator preflight` | Test source/target connectivity |
64+
| `replicator version` | Show version and build info |
65+
| `replicator make-jwt` | Generate JWT for auth |
66+
| `replicator workload` | Run test workload against target |
67+
| `replicator fakeworkload` | Generate synthetic test data |

0 commit comments

Comments
 (0)