Skip to content

Commit

Permalink
Document Experimental Custom Sidecar Support
Browse files Browse the repository at this point in the history
This documents the work done in:
  vitessio/vitess#12240

Signed-off-by: Matt Lord <mattalord@gmail.com>
  • Loading branch information
mattlord committed Mar 15, 2023
1 parent c94dd8b commit 8753c5f
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
5 changes: 4 additions & 1 deletion content/en/docs/17.0/get-started/local-brew.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ add zone1 CellInfo
Created cell: zone1
etcd start done...
Starting vtctld...
vtctld is running!
Starting MySQL for tablet zone1-0000000100...
Starting vttablet for zone1-0000000100...
HTTP/1.1 200 OK
Expand All @@ -81,7 +82,9 @@ Content-Type: text/html; charset=utf-8
"keyspace_type": 0,
"base_keyspace": "",
"snapshot_time": null,
"durability_policy": "semi_sync"
"durability_policy": "semi_sync",
"throttler_config": null,
"sidecar_db_name": "_vt"
}
}
vtorc is running!
Expand Down
7 changes: 5 additions & 2 deletions content/en/docs/17.0/get-started/local-mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ $ source env.sh

You should see an output similar to the following:

```text
```bash
~/my-vitess-example> ./101_initial_cluster.sh
$ ./101_initial_cluster.sh
add /vitess/global
Expand All @@ -125,6 +125,7 @@ add zone1 CellInfo
Created cell: zone1
etcd start done...
Starting vtctld...
vtctld is running!
Starting MySQL for tablet zone1-0000000100...
Starting vttablet for zone1-0000000100...
HTTP/1.1 200 OK
Expand All @@ -149,7 +150,9 @@ Content-Type: text/html; charset=utf-8
"keyspace_type": 0,
"base_keyspace": "",
"snapshot_time": null,
"durability_policy": "semi_sync"
"durability_policy": "semi_sync",
"throttler_config": null,
"sidecar_db_name": "_vt"
}
}
vtorc is running!
Expand Down
7 changes: 5 additions & 2 deletions content/en/docs/17.0/get-started/local.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ cd ~/my-vitess-example/examples/local

You should see an output similar to the following:

```text
```bash
~/my-vitess-example> ./101_initial_cluster.sh
$ ./101_initial_cluster.sh
add /vitess/global
Expand All @@ -107,6 +107,7 @@ add zone1 CellInfo
Created cell: zone1
etcd start done...
Starting vtctld...
vtctld is running!
Starting MySQL for tablet zone1-0000000100...
Starting vttablet for zone1-0000000100...
HTTP/1.1 200 OK
Expand All @@ -131,7 +132,9 @@ Content-Type: text/html; charset=utf-8
"keyspace_type": 0,
"base_keyspace": "",
"snapshot_time": null,
"durability_policy": "semi_sync"
"durability_policy": "semi_sync",
"throttler_config": null,
"sidecar_db_name": "_vt"
}
}
vtorc is running!
Expand Down
2 changes: 1 addition & 1 deletion content/en/docs/17.0/reference/programs/vtctl/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Note that wherever `vtctl` commands produced master or MASTER for tablet type, t

| Name | Example Usage |
| :-------- | :--------------- |
| [CreateKeyspace](../vtctl/keyspaces#createkeyspace) | `CreateKeyspace -- [--sharding_column_name=name] [--sharding_column_type=type] [--served_from=tablettype1:ks1,tablettype2:ks2,...] [--force] [--keyspace_type=type] [--base_keyspace=base_keyspace] [--snapshot_time=time] [--durability-policy=policy_name] <keyspace name>` |
| [CreateKeyspace](../vtctl/keyspaces#createkeyspace) | `CreateKeyspace -- [--sharding_column_name=name] [--sharding_column_type=type] [--served_from=tablettype1:ks1,tablettype2:ks2,...] [--force] [--keyspace_type=type] [--base_keyspace=base_keyspace] [--snapshot_time=time] [--durability-policy=policy_name] [--sidecar-db-name=db_name] <keyspace name>` |
| [DeleteKeyspace](../vtctl/keyspaces#deletekeyspace) | `DeleteKeyspace -- [--recursive] <keyspace>` |
| [RemoveKeyspaceCell](../vtctl/keyspaces#removekeyspacecell) | `RemoveKeyspaceCell -- [--force] [--recursive] <keyspace> <cell>` |
| [GetKeyspace](../vtctl/keyspaces#getkeyspace) | `GetKeyspace <keyspace>` |
Expand Down
3 changes: 2 additions & 1 deletion content/en/docs/17.0/reference/programs/vtctl/keyspaces.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Creates the specified keyspace.

#### Example

<pre class="command-example">CreateKeyspace -- [--sharding_column_name=name] [--sharding_column_type=type] [--served_from=tablettype1:ks1,tablettype2:ks2,...] [--force] [--keyspace_type=type] [--base_keyspace=base_keyspace] [--snapshot_time=time] [--durability-policy=policy_name] &lt;keyspace name&gt; </pre>
<pre class="command-example">CreateKeyspace -- [--sharding_column_name=name] [--sharding_column_type=type] [--served_from=tablettype1:ks1,tablettype2:ks2,...] [--force] [--keyspace_type=type] [--base_keyspace=base_keyspace] [--snapshot_time=time] [--durability-policy=policy_name] [--sidecar-db-name=db_name] &lt;keyspace name&gt; </pre>

#### Flags

Expand All @@ -27,6 +27,7 @@ Creates the specified keyspace.
| keyspace_type | String | Specifies the type of the keyspace. It can be NORMAL or SNAPSHOT. For a SNAPSHOT keyspace you must specify the name of a base_keyspace, and a snapshot_time in UTC, in RFC3339 time format, e.g. 2006-01-02T15:04:05+00:00 |
| sharding_column_name | String | Specifies the column to use for sharding operations |
| sharding_column_type | String | Specifies the type of the column to use for sharding operations |
| sidecar-db-name | String | (Experimental) Specifies the name of the Vitess sidecar database that tablets in this keyspace will use for internal metadata |
| served_from | String | Specifies a comma-separated list of dbtype:keyspace pairs used to serve traffic |
| snapshot_time | String | Specifies the snapshot time for this keyspace |

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ For a SNAPSHOT keyspace, the request must specify the name of a base keyspace,
as well as a snapshot time.

```
vtctldclient CreateKeyspace <keyspace> [--force|-f] [--type KEYSPACE_TYPE] [--base-keyspace KEYSPACE --snapshot-timestamp TIME] [--served-from DB_TYPE:KEYSPACE ...] [--durability-policy <policy_name>]
vtctldclient CreateKeyspace <keyspace> [--force|-f] [--type KEYSPACE_TYPE] [--base-keyspace KEYSPACE --snapshot-timestamp TIME] [--served-from DB_TYPE:KEYSPACE ...] [--durability-policy <policy_name>] [--sidecar-db-name=db_name]
```

### Options
Expand All @@ -26,6 +26,7 @@ vtctldclient CreateKeyspace <keyspace> [--force|-f] [--type KEYSPACE_TYPE] [--ba
-f, --force Proceeds even if the keyspace already exists. Does not overwrite the existing keyspace record.
-h, --help help for CreateKeyspace
--served-from cli.StringMapValue Specifies a set of db_type:keyspace pairs used to serve traffic for the keyspace.
--sidecar-db-name string (Experimental) Name of the Vitess sidecar database that tablets in this keyspace will use for internal metadata. (default "_vt")
--snapshot-timestamp string The snapshot time for a snapshot keyspace, as a timestamp in RFC3339 format.
--type cli.KeyspaceTypeFlag The type of the keyspace. (default NORMAL)
```
Expand Down

0 comments on commit 8753c5f

Please sign in to comment.