Usage of /usr/bin/vtctl:
--alsologtostderr log to standard error as well as files
--azblob_backup_account_key_file string Path to a file containing the Azure Storage account key; if this flag is unset, the environment variable VT_AZBLOB_ACCOUNT_KEY will be used as the key itself (NOT a file path).
--azblob_backup_account_name string Azure Storage Account name for backups; if this flag is unset, the environment variable VT_AZBLOB_ACCOUNT_NAME will be used.
--azblob_backup_buffer_size int The memory buffer size to use in bytes, per file or stripe, when streaming to Azure Blob Service. (default 104857600)
--azblob_backup_container_name string Azure Blob Container Name.
--azblob_backup_parallelism int Azure Blob operation parallelism (requires extra memory when increased -- a multiple of azblob_backup_buffer_size). (default 1)
--azblob_backup_storage_root string Root prefix for all backup-related Azure Blobs; this should exclude both initial and trailing '/' (e.g. just 'a/b' not '/a/b/').
--backup_storage_implementation string Which backup storage implementation to use for creating and restoring backups.
--ceph_backup_storage_config string Path to JSON config file for ceph backup storage. (default "ceph_backup_config.json")
--config-file string Full path of the config file (with extension) to use. If set, --config-path, --config-type, and --config-name are ignored.
--config-file-not-found-handling ConfigFileNotFoundHandling Behavior when a config file is not found. (Options: error, exit, ignore, warn) (default warn)
--config-name string Name of the config file (without extension) to search for. (default "vtconfig")
--config-path strings Paths to search for config files in. (default [/tmp])
--config-persistence-min-interval duration minimum interval between persisting dynamic config changes back to disk (if no change has occurred, nothing is done). (default 1s)
--config-type string Config file type (omit to infer config type from file extension).
--consul_auth_static_file string JSON File to read the topos/tokens from.
--datadog-agent-host string host to send spans to. if empty, no tracing will be done
--datadog-agent-port string port to send spans to. if empty, no tracing will be done
--detach detached mode - run vtcl detached from the terminal
--file_backup_storage_root string Root directory for the file backup storage.
--gcs_backup_storage_bucket string Google Cloud Storage bucket to use for backups.
--gcs_backup_storage_root string Root prefix for all backup-related object names.
--grpc-dial-concurrency-limit int Maximum concurrency of grpc dial operations. This should be less than the golang max thread limit of 10000. (default 1024)
--grpc_auth_static_client_creds string When using grpc_static_auth in the server, this file provides the credentials to use to authenticate with server.
--grpc_compression string Which protocol to use for compressing gRPC. Default: nothing. Supported: snappy
--grpc_enable_tracing Enable gRPC tracing.
--grpc_initial_conn_window_size int gRPC initial connection window size
--grpc_initial_window_size int gRPC initial window size
--grpc_keepalive_time duration After a duration of this time, if the client doesn't see any activity, it pings the server to see if the transport is still alive. (default 10s)
--grpc_keepalive_timeout duration After having pinged for keepalive check, the client waits for a duration of Timeout and if no activity is seen even after that the connection is closed. (default 10s)
--grpc_max_message_size int Maximum allowed RPC message size. Larger messages will be rejected by gRPC with the error 'exceeding the max size'. (default 16777216)
--grpc_prometheus Enable gRPC monitoring with Prometheus.
-h, --help display usage and exit
--jaeger-agent-host string host and port to send spans to. if empty, no tracing will be done
--keep_logs duration keep logs for this long (using ctime) (zero to keep forever)
--keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
--lock-timeout duration Maximum time to wait when attempting to acquire a lock from the topo server (default 45s)
--log_backtrace_at traceLocations when logging hits line file:N, emit a stack trace
--log_dir string If non-empty, write log files in this directory
--log_err_stacks log stack traces for errors
--log_link string If non-empty, add symbolic links in this directory to the log files
--log_rotate_max_size uint size in bytes at which logs are rotated (glog.MaxSize) (default 1887436800)
--logbuflevel int Buffer log messages logged at this level or lower (-1 means don't buffer; 0 means buffer INFO only; ...). Has limited applicability on non-prod platforms.
--logtostderr log to standard error instead of files
--mysql_server_version string MySQL server version to advertise. (default "8.0.30-Vitess")
--pprof strings enable profiling
--pprof-http enable pprof http endpoints
--purge_logs_interval duration how often try to remove old logs (default 1h0m0s)
--remote_operation_timeout duration time to wait for a remote operation (default 15s)
--s3_backup_aws_endpoint string endpoint of the S3 backend (region must be provided).
--s3_backup_aws_region string AWS region to use. (default "us-east-1")
--s3_backup_aws_retries int AWS request retries. (default -1)
--s3_backup_force_path_style force the s3 path style.
--s3_backup_log_level string determine the S3 loglevel to use from LogOff, LogDebug, LogDebugWithSigning, LogDebugWithHTTPBody, LogDebugWithRequestRetries, LogDebugWithRequestErrors. (default "LogOff")
--s3_backup_server_side_encryption string server-side encryption algorithm (e.g., AES256, aws:kms, sse_c:/path/to/key/file).
--s3_backup_storage_bucket string S3 bucket to use for backups.
--s3_backup_storage_root string root prefix for all backup-related object names.
--s3_backup_tls_skip_verify_cert skip the 'certificate is valid' check for SSL connections.
--security_policy string the name of a registered security policy to use for controlling access to URLs - empty means allow all for anyone (built-in policies: deny-all, read-only)
--sql-max-length-errors int truncate queries in error logs to the given length (default unlimited)
--sql-max-length-ui int truncate queries in debug UIs to the given length (default 512) (default 512)
--stderrthreshold severityFlag logs at or above this threshold go to stderr (default 1)
--tablet_grpc_ca string the server ca to use to validate servers when connecting
--tablet_grpc_cert string the cert to use to connect
--tablet_grpc_crl string the server crl to use to validate server certificates when connecting
--tablet_grpc_key string the key to use to connect
--tablet_grpc_server_name string the server name to use to validate server certificate
--tablet_manager_grpc_ca string the server ca to use to validate servers when connecting
--tablet_manager_grpc_cert string the cert to use to connect
--tablet_manager_grpc_concurrency int concurrency to use to talk to a vttablet server for performance-sensitive RPCs (like ExecuteFetchAs{Dba,App}, CheckThrottler and FullStatus) (default 8)
--tablet_manager_grpc_connpool_size int number of tablets to keep tmclient connections open to (default 100)
--tablet_manager_grpc_crl string the server crl to use to validate server certificates when connecting
--tablet_manager_grpc_key string the key to use to connect
--tablet_manager_grpc_server_name string the server name to use to validate server certificate
--tablet_manager_protocol string Protocol to use to make tabletmanager RPCs to vttablets. (default "grpc")
--tablet_protocol string Protocol to use to make queryservice RPCs to vttablets. (default "grpc")
--topo_consul_lock_delay duration LockDelay for consul session. (default 15s)
--topo_consul_lock_session_checks string List of checks for consul session. (default "serfHealth")
--topo_consul_lock_session_ttl string TTL for consul session.
--topo_consul_watch_poll_duration duration time of the long poll for watch queries. (default 30s)
--topo_etcd_lease_ttl int Lease TTL for locks and leader election. The client will use KeepAlive to keep the lease going. (default 30)
--topo_etcd_tls_ca string path to the ca to use to validate the server cert when connecting to the etcd topo server
--topo_etcd_tls_cert string path to the client cert to use to connect to the etcd topo server, requires topo_etcd_tls_key, enables TLS
--topo_etcd_tls_key string path to the client key to use to connect to the etcd topo server, enables TLS
--topo_global_root string the path of the global topology data in the global topology server
--topo_global_server_address string the address of the global topology server
--topo_implementation string the topology implementation to use
--topo_zk_auth_file string auth to use when connecting to the zk topo server, file contents should be <scheme>:<auth>, e.g., digest:user:pass
--topo_zk_base_timeout duration zk base timeout (see zk.Connect) (default 30s)
--topo_zk_max_concurrency int maximum number of pending requests to send to a Zookeeper server. (default 64)
--topo_zk_tls_ca string the server ca to use to validate servers when connecting to the zk topo server
--topo_zk_tls_cert string the cert to use to connect to the zk topo server, requires topo_zk_tls_key, enables TLS
--topo_zk_tls_key string the key to use to connect to the zk topo server, enables TLS
--tracer string tracing service to use (default "noop")
--tracing-enable-logging whether to enable logging in the tracing service
--tracing-sampling-rate float sampling rate for the probabilistic jaeger sampler (default 0.1)
--tracing-sampling-type string sampling strategy to use for jaeger. possible values are 'const', 'probabilistic', 'rateLimiting', or 'remote' (default "const")
--v Level log level for V logs
-v, --version print binary version
--vmodule vModuleFlag comma-separated list of pattern=N settings for file-filtered logging
--vtgate_grpc_ca string the server ca to use to validate servers when connecting
--vtgate_grpc_cert string the cert to use to connect
--vtgate_grpc_crl string the server crl to use to validate server certificates when connecting
--vtgate_grpc_key string the key to use to connect
--vtgate_grpc_server_name string the server name to use to validate server certificate
--wait-time duration time to wait on an action (default 24h0m0s)
Options (106)
| Option | Description | Source |
|---|---|---|
--alsologtostderr | log to standard error as well as files | help |
--azblob_backup_account_key_file string | Path to a file containing the Azure Storage account key; | help |
--azblob_backup_account_name string | Azure Storage Account name for backups; | help |
--azblob_backup_buffer_size int | The memory buffer size to use in bytes, per file or stripe, when streaming to Azure Blob Service. | help |
--azblob_backup_container_name string | Azure Blob Container Name. | help |
--azblob_backup_parallelism int | Azure Blob operation parallelism (requires extra memory when increased -- a multiple of azblob_backup_buffer_size). | help |
--azblob_backup_storage_root string | Root prefix for all backup-related Azure Blobs; | help |
--backup_storage_implementation string | Which backup storage implementation to use for creating and restoring backups. | help |
--ceph_backup_storage_config string | Path to JSON config file for ceph backup storage. | help |
--config-file string | Full path of the config file (with extension) to use. | help |
--config-file-not-found-handling ConfigFileNotFoundHandling | Behavior when a config file is not found. | help |
--config-name string | Name of the config file (without extension) to search for. | help |
--config-path strings | Paths to search for config files in. | help |
--config-persistence-min-interval duration | minimum interval between persisting dynamic config changes back to disk (if no change has occurred, nothing is done). | help |
--config-type string | Config file type (omit to infer config type from file extension). | help |
--consul_auth_static_file string | JSON File to read the topos/tokens from. | help |
--datadog-agent-host string | host to send spans to. | help |
--datadog-agent-port string | port to send spans to. | help |
--detach | detached mode - run vtcl detached from the terminal | help |
--file_backup_storage_root string | Root directory for the file backup storage. | help |
--gcs_backup_storage_bucket string | Google Cloud Storage bucket to use for backups. | help |
--gcs_backup_storage_root string | Root prefix for all backup-related object names. | help |
--grpc-dial-concurrency-limit int | Maximum concurrency of grpc dial operations. | help |
--grpc_auth_static_client_creds string | When using grpc_static_auth in the server, this file provides the credentials to use to authenticate with server. | help |
--grpc_compression string | Which protocol to use for compressing gRPC. | help |
--grpc_enable_tracing | Enable gRPC tracing. | help |
--grpc_initial_conn_window_size int | gRPC initial connection window size | help |
--grpc_initial_window_size int | gRPC initial window size | help |
--grpc_keepalive_time duration | After a duration of this time, if the client doesn't see any activity, it pings the server to see if the transport is still alive. | help |
--grpc_keepalive_timeout duration | After having pinged for keepalive check, the client waits for a duration of Timeout and if no activity is seen even after that the connection is closed. | help |
--grpc_max_message_size int | Maximum allowed RPC message size. | help |
--grpc_prometheus | Enable gRPC monitoring with Prometheus. | help |
-h, --help | display usage and exit | help |
--jaeger-agent-host string | host and port to send spans to. | help |
--keep_logs duration | keep logs for this long (using ctime) (zero to keep forever) | help |
--keep_logs_by_mtime duration | keep logs for this long (using mtime) (zero to keep forever) | help |
--lock-timeout duration | Maximum time to wait when attempting to acquire a lock from the topo server (default 45s) | help |
--log_backtrace_at traceLocations | when logging hits line file:N, emit a stack trace | help |
--log_dir string | If non-empty, write log files in this directory | help |
--log_err_stacks | log stack traces for errors | help |
--log_link string | If non-empty, add symbolic links in this directory to the log files | help |
--log_rotate_max_size uint | size in bytes at which logs are rotated (glog.MaxSize) (default 1887436800) | help |
--logbuflevel int | Buffer log messages logged at this level or lower (-1 means don't buffer; | help |
--logtostderr | log to standard error instead of files | help |
--mysql_server_version string | MySQL server version to advertise. | help |
--pprof strings | enable profiling | help |
--pprof-http | enable pprof http endpoints | help |
--purge_logs_interval duration | how often try to remove old logs (default 1h0m0s) | help |
--remote_operation_timeout duration | time to wait for a remote operation (default 15s) | help |
--s3_backup_aws_endpoint string | endpoint of the S3 backend (region must be provided). | help |
--s3_backup_aws_region string | AWS region to use. | help |
--s3_backup_aws_retries int | AWS request retries. | help |
--s3_backup_force_path_style | force the s3 path style. | help |
--s3_backup_log_level string | determine the S3 loglevel to use from LogOff, LogDebug, LogDebugWithSigning, LogDebugWithHTTPBody, LogDebugWithRequestRetries, LogDebugWithRequestErrors. | help |
--s3_backup_server_side_encryption string | server-side encryption algorithm (e.g., AES256, aws:kms, sse_c:/path/to/key/file). | help |
--s3_backup_storage_bucket string | S3 bucket to use for backups. | help |
--s3_backup_storage_root string | root prefix for all backup-related object names. | help |
--s3_backup_tls_skip_verify_cert | skip the 'certificate is valid' check for SSL connections. | help |
--security_policy string | the name of a registered security policy to use for controlling access to URLs - empty means allow all for anyone (built-in policies: deny-all, read-only) | help |
--sql-max-length-errors int | truncate queries in error logs to the given length (default unlimited) | help |
--sql-max-length-ui int | truncate queries in debug UIs to the given length (default 512) (default 512) | help |
--stderrthreshold severityFlag | logs at or above this threshold go to stderr (default 1) | help |
--tablet_grpc_ca string | the server ca to use to validate servers when connecting | help |
--tablet_grpc_cert string | the cert to use to connect | help |
--tablet_grpc_crl string | the server crl to use to validate server certificates when connecting | help |
--tablet_grpc_key string | the key to use to connect | help |
--tablet_grpc_server_name string | the server name to use to validate server certificate | help |
--tablet_manager_grpc_ca string | the server ca to use to validate servers when connecting | help |
--tablet_manager_grpc_cert string | the cert to use to connect | help |
--tablet_manager_grpc_concurrency int | concurrency to use to talk to a vttablet server for performance-sensitive RPCs (like ExecuteFetchAs{Dba,App}, CheckThrottler and FullStatus) (default 8) | help |
--tablet_manager_grpc_connpool_size int | number of tablets to keep tmclient connections open to (default 100) | help |
--tablet_manager_grpc_crl string | the server crl to use to validate server certificates when connecting | help |
--tablet_manager_grpc_key string | the key to use to connect | help |
--tablet_manager_grpc_server_name string | the server name to use to validate server certificate | help |
--tablet_manager_protocol string | Protocol to use to make tabletmanager RPCs to vttablets. | help |
--tablet_protocol string | Protocol to use to make queryservice RPCs to vttablets. | help |
--topo_consul_lock_delay duration | LockDelay for consul session. | help |
--topo_consul_lock_session_checks string | List of checks for consul session. | help |
--topo_consul_lock_session_ttl string | TTL for consul session. | help |
--topo_consul_watch_poll_duration duration | time of the long poll for watch queries. | help |
--topo_etcd_lease_ttl int | Lease TTL for locks and leader election. | help |
--topo_etcd_tls_ca string | path to the ca to use to validate the server cert when connecting to the etcd topo server | help |
--topo_etcd_tls_cert string | path to the client cert to use to connect to the etcd topo server, requires topo_etcd_tls_key, enables TLS | help |
--topo_etcd_tls_key string | path to the client key to use to connect to the etcd topo server, enables TLS | help |
--topo_global_root string | the path of the global topology data in the global topology server | help |
--topo_global_server_address string | the address of the global topology server | help |
--topo_implementation string | the topology implementation to use | help |
--topo_zk_auth_file string | auth to use when connecting to the zk topo server, file contents should be <scheme>:<auth>, e.g., digest:user:pass | help |
--topo_zk_base_timeout duration | zk base timeout (see zk.Connect) (default 30s) | help |
--topo_zk_max_concurrency int | maximum number of pending requests to send to a Zookeeper server. | help |
--topo_zk_tls_ca string | the server ca to use to validate servers when connecting to the zk topo server | help |
--topo_zk_tls_cert string | the cert to use to connect to the zk topo server, requires topo_zk_tls_key, enables TLS | help |
--topo_zk_tls_key string | the key to use to connect to the zk topo server, enables TLS | help |
--tracer string | tracing service to use (default "noop") | help |
--tracing-enable-logging | whether to enable logging in the tracing service | help |
--tracing-sampling-rate float | sampling rate for the probabilistic jaeger sampler (default 0.1) | help |
--tracing-sampling-type string | sampling strategy to use for jaeger. | help |
--v Level | log level for V logs | help |
-v, --version | print binary version | help |
--vmodule vModuleFlag | comma-separated list of pattern=N settings for file-filtered logging | help |
--vtgate_grpc_ca string | the server ca to use to validate servers when connecting | help |
--vtgate_grpc_cert string | the cert to use to connect | help |
--vtgate_grpc_crl string | the server crl to use to validate server certificates when connecting | help |
--vtgate_grpc_key string | the key to use to connect | help |
--vtgate_grpc_server_name string | the server name to use to validate server certificate | help |
--wait-time duration | time to wait on an action (default 24h0m0s) | help |