Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ Operates on online DDL (schema migrations).
* [vtctldclient OnlineDDL launch](./vtctldclient_onlineddl_launch/) - Launch one or all migrations executed with `--postpone-launch`.
* [vtctldclient OnlineDDL retry](./vtctldclient_onlineddl_retry/) - Mark a given schema migration for retry.
* [vtctldclient OnlineDDL show](./vtctldclient_onlineddl_show/) - Display information about online DDL operations.
* [vtctldclient OnlineDDL throttle](./vtctldclient_onlineddl_throttle/) - Throttle one or all migrations.
* [vtctldclient OnlineDDL unthrottle](./vtctldclient_onlineddl_unthrottle/) - Unthrottle one or all migrations.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: OnlineDDL throttle
series: vtctldclient
---
## vtctldclient OnlineDDL throttle

Throttle one or all migrations.

```
vtctldclient OnlineDDL throttle <keyspace> <uuid|all>
```

When using `all`, throttling applies not only for existing migrations but also for any other future migration. It is the equivalent of running `UpdateThrottlerConfig --throttled-app=online-ddl`.

Note that this command runs successfully whether the throttler is enabled or not. If the throttler is disabled, then migrations are not throttled, but the rule is still there. If the throttler is then enabled, the rule will apply.

### Examples

```
OnlineDDL throttle test_keyspace 82fa54ac_e83e_11ea_96b7_f875a4d24e90
OnlineDDL throttle test_keyspace all
```

### Options

```
-h, --help help for throttle
```

### Options inherited from parent commands

```
--action_timeout duration timeout for the total command (default 1h0m0s)
--server string server to use for connection (required)
```

### SEE ALSO

* [vtctldclient OnlineDDL](../) - Operates on online DDL (schema migrations).

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: OnlineDDL unthrottle
series: vtctldclient
---
## vtctldclient OnlineDDL unthrottle

Unthrottle one or all migrations.

```
vtctldclient OnlineDDL unthrottle <keyspace> <uuid|all>
```

Note that if you issue a `vtctldclient OnlineDDL throttle my_keyspace all`, then throttling applies to all migrations, current and future. It is then impossible to exclude a specific migration via `vtctldclient OnlineDDL unthrottle my_keyspace 82fa54ac_e83e_11ea_96b7_f875a4d24e90`.

This command is the equivalent of `UpdateThrottlerConfig --unthrottled-app=online-ddl`.

### Examples

```
OnlineDDL unthrottle test_keyspace 82fa54ac_e83e_11ea_96b7_f875a4d24e90
OnlineDDL unthrottle test_keyspace all
```

### Options

```
-h, --help help for unthrottle
```

### Options inherited from parent commands

```
--action_timeout duration timeout for the total command (default 1h0m0s)
--server string server to use for connection (required)
```

### SEE ALSO

* [vtctldclient OnlineDDL](../) - Operates on online DDL (schema migrations).