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
The following Activating Adaptive Repair examples are for the organisation `test` and the cluster `thingscluster` on AxonOps Cloud.
45
-
For self-hosted authentication, refer to the authentication section of the main project.
46
-
47
-
Authenticate to the cluster:
48
-
```shell
49
-
export AXONOPS_ORG='test'
50
-
export AXONOPS_CLUSTER="thingscluster"
51
-
export AXONOPS_TOKEN='aaaaabbbbccccddddeeee'
52
-
```
59
+
#### Examples:
53
60
54
61
Print the list of options for the repair command:
62
+
55
63
```shell
56
64
$ pipenv run python axonops.py repair -h
57
65
```
66
+
58
67
Enable the AxonOps Adaptive Repair:
68
+
59
69
```shell
60
70
pipenv run python axonops.py repair --enabled
61
71
```
72
+
62
73
Disable the repair:
74
+
63
75
```shell
64
76
$ pipenv run python axonops.py repair --disable
65
77
```
66
-
Enable the repair and set the GC Grace Threshold to 86,400 seconds (AxonOps will ignore tables that have a gc_grace_seconds value lower than the specified threshold):
78
+
79
+
Enable the repair and set the GC Grace Threshold to 86,400 seconds (AxonOps will ignore tables that have a
80
+
gc_grace_seconds value lower than the specified threshold):
81
+
67
82
```shell
68
83
$ pipenv run python axonops.py repair --enable --gcgrace 86400
69
84
```
85
+
70
86
Enable the repair and set the table parallelism to 100 (number of tables processed in parallel):
87
+
71
88
```shell
72
89
$ pipenv run python axonops.py repair --enable --tableparallelism 100
73
90
```
74
-
Enable the repair and set the segment retry limit to 10 (number of times a segment can fail before raising an alert and stopping repairs for that cycle):
91
+
92
+
Enable the repair and set the segment retry limit to 10 (number of times a segment can fail before raising an alert and
93
+
stopping repairs for that cycle):
94
+
75
95
```shell
76
96
$ pipenv run python axonops.py repair --enable --segmentretries 10
77
97
```
98
+
78
99
Enable the repair and set the segment chunk size to 250 MB (amount of data repaired at a time):
100
+
79
101
```shell
80
102
$ pipenv run python axonops.py repair --enable --segmenttargetsizemb 250
81
103
```
104
+
82
105
Exclude specific tables from repair (comma separated list of `keyspace.table`):
106
+
83
107
```shell
84
-
pipenv run python axonops.py repair --enable --excludedtables system_auth.roles,system_auth.role_permissions
108
+
$ pipenv run python axonops.py repair --enable --excludedtables system_auth.roles,system_auth.role_permissions
85
109
```
110
+
86
111
Set the Maximum Segments Per Table to 131,072:
112
+
87
113
```shell
88
-
pipenv run python axonops.py repair --enable --maxsegmentspertable 131072
114
+
$ pipenv run python axonops.py repair --enable --maxsegmentspertable 131072
89
115
```
90
116
91
117
Set the timeout per Segment to 3 hours:
118
+
92
119
```shell
93
120
pipenv run python axonops.py repair --enable --segmenttimeout 3h
121
+
```
122
+
123
+
### `scheduledrepair` Subcommand
124
+
125
+
Manages **Scheduled Repair** in AxonOps.
126
+
127
+
#### Options:
128
+
129
+
*`--keyspace` Keyspace to repair. If not set, all keyspaces will be repaired.
130
+
*`--tables` Comma-separated list of tables to repair within the specified keyspace. If not set, all tables in the
131
+
keyspace will be repaired.
132
+
*`--excludedtables` Excluded Tables. This parameter accepts a comma-separated list in the format
133
+
`keyspace.table1,keyspace.table2`.
134
+
*`--nodes` Comma-separated list of node IP addresses to run the repair on. If not set, all nodes in the cluster will be
135
+
included.
136
+
*`--scheduleexpr` Cron Expression for Scheduled Repair. If not set, Scheduled Repair will run immediately.
137
+
*`--segmented` Enables Segmented Repair.
138
+
*`--segmentspernode` Number of Segments Per Token Range (only applicable if `--segmented` is set).
139
+
*`--incremental` Enables Incremental Repair. If not set, a full repair will be performed.
140
+
*`--jobthreads` Number of Job Threads to use for the repair process. If not set, the default value of 1 will be used.
141
+
*`--partitionerrange` Repair Partitioner Range Only.
142
+
*`--parallelism` Repair Parallelism. Accepted values are `sequential`, `parallel`, and `dc_parallel`. If not set, the
143
+
default value of `sequential` will be used.
144
+
*`--optimisestreams` Optimize Streams during repair (require Cassandra 4.1+).
145
+
*`--datacenters` Comma-separated list of datacenters to include in the repair. If not set, all datacenters will be
146
+
included.
147
+
*`--tags` Tags to associate with the scheduled repair job. Tags are used to identify repair jobs in AxonOps.
148
+
This parameter accepts a string value.
149
+
*`--paxosonly` Run paxos repair only. Default is false.
150
+
*`--skippaxos` Skip paxos repair. Default is false.
151
+
*`--delete` Delete Scheduled Repair. This option needs to be paired with a tags value to identify which scheduled
152
+
repair job to delete.
153
+
*`--deleteall` Delete all Scheduled Repairs. This removes all scheduled repair jobs from the cluster.
154
+
155
+
#### Examples:
156
+
157
+
Print the list of options for the scheduled repair command:
158
+
159
+
```shell
160
+
$ pipenv run python axonops.py scheduledrepair -h
161
+
```
162
+
163
+
Run a scheduled repair immediately:
164
+
165
+
```shell
166
+
$ pipenv run python axonops.py scheduledrepair
167
+
```
168
+
169
+
Run a scheduled repair with a cron expression (this example runs the repair every Sunday at midnight):
0 commit comments