CreateKeyspace

vtctldclient CreateKeyspace

Creates the specified keyspace in the topology.

Synopsis

Creates the specified keyspace in the topology.

For a SNAPSHOT keyspace, the request must specify the name of a base keyspace, as well as a snapshot time.

  1. 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

  1. -e, --allow-empty-vschema Allows a new keyspace to have no vschema.
  2. --base-keyspace string The base keyspace for a snapshot keyspace.
  3. --durability-policy string Type of durability to enforce for this keyspace. Default is none. Possible values include 'semi_sync' and others as dictated by registered plugins. (default "none")
  4. -f, --force Proceeds even if the keyspace already exists. Does not overwrite the existing keyspace record.
  5. -h, --help help for CreateKeyspace
  6. --served-from cli.StringMapValue Specifies a set of db_type:keyspace pairs used to serve traffic for the keyspace.
  7. --sidecar-db-name string (Experimental) Name of the Vitess sidecar database that tablets in this keyspace will use for internal metadata. (default "_vt")
  8. --snapshot-timestamp string The snapshot time for a snapshot keyspace, as a timestamp in RFC3339 format.
  9. --type cli.KeyspaceTypeFlag The type of the keyspace. (default NORMAL)

Options inherited from parent commands

  1. --action_timeout duration timeout to use for the command (default 1h0m0s)
  2. --compact use compact format for otherwise verbose outputs
  3. --server string server to use for the connection (required)

SEE ALSO

  • vtctldclient - Executes a cluster management command on the remote vtctld server.