@@ -16,6 +16,8 @@ Managing replica sets
16
16
* :ref: `status <tt-replicaset-status >`
17
17
* :ref: `promote <tt-replicaset-promote >`
18
18
* :ref: `demote <tt-replicaset-demote >`
19
+ * :ref: `expel <tt-replicaset-expel >`
20
+ * :ref: `vshard <tt-replicaset-vshard >`
19
21
20
22
21
23
.. _tt-replicaset-status :
@@ -219,6 +221,90 @@ The ``--timeout`` option can be used to specify the election completion timeout:
219
221
220
222
$ tt replicaset demote my-app:storage-001-a --timeout=10
221
223
224
+ .. _tt-replicaset-expel :
225
+
226
+ expel
227
+ -----
228
+
229
+ .. code-block :: console
230
+
231
+ $ tt replicaset expel APPLICATION:APP_INSTANCE [OPTIONS ...]
232
+ # or
233
+ $ tt rs expel APPLICATION[:APP_INSTANCE] [OPTIONS ...]
234
+
235
+ ``tt replicaset expel `` (``tt rs expel ``) expels an instance from the cluster.
236
+
237
+ .. code-block :: console
238
+
239
+ $ tt replicaset expel myapp:storage-001-b
240
+
241
+ The command supports the ``--config ``, ``--cartridge ``, and ``--custom `` :ref: `options <tt-replicaset-options >`
242
+ that force the use of a specific orchestrator.
243
+
244
+ To expel an instance from a Cartridge cluster:
245
+
246
+ .. code-block :: console
247
+
248
+ $ tt replicaset expel my-cartridge-app:storage-001-b --cartridge
249
+
250
+
251
+ .. _tt-replicaset-vshard :
252
+
253
+ vshard
254
+ -----
255
+
256
+ .. code-block :: console
257
+
258
+ $ tt replicaset vshard COMMAND {APPLICATION[:APP_INSTANCE] | URI} [OPTIONS ...]
259
+ # or
260
+ $ tt rs vshard COMMAND {APPLICATION[:APP_INSTANCE] | URI} [OPTIONS ...]
261
+ # or
262
+ $ tt rs vs COMMAND {APPLICATION[:APP_INSTANCE] | URI} [OPTIONS ...]
263
+
264
+ ``tt replicaset vshard `` (``tt rs vs ``) manages :ref: `vshard <vshard >` in the cluster.
265
+
266
+ It has the following subcommands:
267
+
268
+ - :ref: `bootstrap <tt-replicaset-vshard-bootstrap >`
269
+
270
+ .. _tt-replicaset-vshard-bootstrap :
271
+
272
+ vshard bootstrap
273
+ ~~~~~~~~~~~~~~~~
274
+
275
+ .. code-block :: console
276
+
277
+ $ tt replicaset vshard bootstrap {APPLICATION[:APP_INSTANCE] | URI} [OPTIONS ...]
278
+ # or
279
+ $ tt rs vshard bootstrap {APPLICATION[:APP_INSTANCE] | URI} [OPTIONS ...]
280
+ # or
281
+ $ tt rs vs bootstrap {APPLICATION[:APP_INSTANCE] | URI} [OPTIONS ...]
282
+
283
+ ``tt replicaset vshard bootstrap `` (``tt rs vs bootstrap ``) bootstraps ``vshard ``
284
+ in the cluster.
285
+
286
+ .. code-block :: console
287
+
288
+ $ tt replicaset vshard bootstrap myapp
289
+
290
+ With a URI and credentials:
291
+
292
+ .. code-block :: console
293
+
294
+ $ tt replicaset vshard bootstrap 192.168.10.10:3301 -u myuser -p p4$$w0rD
295
+
296
+ You can specify the application name or the name of any cluster instance. The command
297
+ automatically finds a ``vshard `` router in the cluster and calls :ref: `vshard.router.bootstrap() <router_api-bootstrap >` on it.
298
+
299
+ The command supports the ``--config ``, ``--cartridge ``, and ``--custom `` :ref: `options <tt-replicaset-options >`
300
+ that force the use of a specific orchestrator.
301
+
302
+ To bootstrap ``vshard `` in a Cartridge cluster:
303
+
304
+ .. code-block :: console
305
+
306
+ $ tt replicaset vshard bootstrap my-cartridge-app --cartridge
307
+
222
308
.. _tt-replicaset-orchestrator :
223
309
224
310
Selecting the application orchestrator manually
@@ -292,30 +378,33 @@ Options
292
378
293
379
.. option :: -u USERNAME , --username USERNAME
294
380
295
- A Tarantool user for connecting to the instance.
381
+ A Tarantool user for connecting to the instance using a URI .
296
382
297
383
.. option :: -p PASSWORD , --password PASSWORD
298
384
299
385
The user's password.
300
386
301
387
.. option :: --sslcertfile FILEPATH
302
388
303
- The path to an SSL certificate file for encrypted connections.
389
+ The path to an SSL certificate file for encrypted connections for the URI case .
304
390
305
391
.. option :: --sslkeyfile FILEPATH
306
392
307
- The path to a private SSL key file for encrypted connections.
393
+ The path to a private SSL key file for encrypted connections for the URI case .
308
394
309
395
.. option :: --sslcafile FILEPATH
310
396
311
- The path to a trusted certificate authorities (CA) file for encrypted connections.
397
+ The path to a trusted certificate authorities (CA) file for encrypted connections for the URI case .
312
398
313
399
.. option :: --sslciphers STRING
314
400
315
- The list of SSL cipher suites used for encrypted connections, separated by colons (``: ``).
401
+ The list of SSL cipher suites used for encrypted connections for the URI case , separated by colons (``: ``).
316
402
317
403
.. option :: --timeout
318
404
319
- **Applicable to: ** ``promote ``, ``demote ``
405
+ **Applicable to: ** ``promote ``, ``demote ``, ``expel ``, ``vshard ``
406
+
407
+ The timeout for completing the operation, in seconds. Default:
320
408
321
- The timeout for completing the promotion or demotion, in seconds. Default: ``3 ``.
409
+ - ``3 `` for ``promote ``, ``demote ``, ``expel ``
410
+ - ``10 `` for ``vshard ``
0 commit comments