vtcombo

vtcombo

vtcombo is a single binary containing several vitess components.

Synopsis

vtcombo is a single binary containing several vitess components.

In particular, it contains:

  • A topology server based on an in-memory map.
  • One vtgate instance.
  • Many vttablet instances.
  • A vtctld instance so it’s easy to see the topology.
  1. vtcombo [flags]

Options

  1. --action_timeout duration time to wait for an action before resorting to force (default 1m0s)
  2. --allow-kill-statement Allows the execution of kill statement
  3. --allowed_tablet_types strings Specifies the tablet types this vtgate is allowed to route queries to. Should be provided as a comma-separated set of tablet types.
  4. --alsologtostderr log to standard error as well as files
  5. --app_idle_timeout duration Idle timeout for app connections (default 1m0s)
  6. --app_pool_size int Size of the connection pool for app connections (default 40)
  7. --backup_engine_implementation string Specifies which implementation to use for creating new backups (builtin or xtrabackup). Restores will always be done with whichever engine created a given backup. (default "builtin")
  8. --backup_storage_block_size int if backup_storage_compress is true, backup_storage_block_size sets the byte size for each block while compressing (default is 250000). (default 250000)
  9. --backup_storage_compress if set, the backup files will be compressed. (default true)
  10. --backup_storage_number_blocks int if backup_storage_compress is true, backup_storage_number_blocks sets the number of blocks that can be processed, in parallel, before the writer blocks, during compression (default is 2). It should be equal to the number of CPUs available for compression. (default 2)
  11. --bind-address string Bind address for the server. If empty, the server will listen on all available unicast and anycast IP addresses of the local system.
  12. --binlog_host string PITR restore parameter: hostname/IP of binlog server.
  13. --binlog_password string PITR restore parameter: password of binlog server.
  14. --binlog_player_protocol string the protocol to download binlogs from a vttablet (default "grpc")
  15. --binlog_port int PITR restore parameter: port of binlog server.
  16. --binlog_ssl_ca string PITR restore parameter: Filename containing TLS CA certificate to verify binlog server TLS certificate against.
  17. --binlog_ssl_cert string PITR restore parameter: Filename containing mTLS client certificate to present to binlog server as authentication.
  18. --binlog_ssl_key string PITR restore parameter: Filename containing mTLS client private key for use in binlog server authentication.
  19. --binlog_ssl_server_name string PITR restore parameter: TLS server name (common name) to verify against for the binlog server we are connecting to (If not set: use the hostname or IP supplied in --binlog_host).
  20. --binlog_user string PITR restore parameter: username of binlog server.
  21. --buffer_drain_concurrency int Maximum number of requests retried simultaneously. More concurrency will increase the load on the PRIMARY vttablet when draining the buffer. (default 1)
  22. --buffer_keyspace_shards string If not empty, limit buffering to these entries (comma separated). Entry format: keyspace or keyspace/shard. Requires --enable_buffer=true.
  23. --buffer_max_failover_duration duration Stop buffering completely if a failover takes longer than this duration. (default 20s)
  24. --buffer_min_time_between_failovers duration Minimum time between the end of a failover and the start of the next one (tracked per shard). Faster consecutive failovers will not trigger buffering. (default 1m0s)
  25. --buffer_size int Maximum number of buffered requests in flight (across all ongoing failovers). (default 1000)
  26. --buffer_window duration Duration for how long a request should be buffered at most. (default 10s)
  27. --builtinbackup-file-read-buffer-size uint read files using an IO buffer of this many bytes. Golang defaults are used when set to 0.
  28. --builtinbackup-file-write-buffer-size uint write files using an IO buffer of this many bytes. Golang defaults are used when set to 0. (default 2097152)
  29. --builtinbackup_mysqld_timeout duration how long to wait for mysqld to shutdown at the start of the backup. (default 10m0s)
  30. --builtinbackup_progress duration how often to send progress updates when backing up large files. (default 5s)
  31. --catch-sigpipe catch and ignore SIGPIPE on stdout and stderr if specified
  32. --cell string cell to use
  33. --compression-engine-name string compressor engine used for compression. (default "pargzip")
  34. --compression-level int what level to pass to the compressor. (default 1)
  35. --config-file string Full path of the config file (with extension) to use. If set, --config-path, --config-type, and --config-name are ignored.
  36. --config-file-not-found-handling ConfigFileNotFoundHandling Behavior when a config file is not found. (Options: error, exit, ignore, warn) (default warn)
  37. --config-name string Name of the config file (without extension) to search for. (default "vtconfig")
  38. --config-path strings Paths to search for config files in. (default [$WORKDIR])
  39. --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)
  40. --config-type string Config file type (omit to infer config type from file extension).
  41. --consolidator-stream-query-size int Configure the stream consolidator query size in bytes. Setting to 0 disables the stream consolidator. (default 2097152)
  42. --consolidator-stream-total-size int Configure the stream consolidator total size in bytes. Setting to 0 disables the stream consolidator. (default 134217728)
  43. --consul_auth_static_file string JSON File to read the topos/tokens from.
  44. --datadog-agent-host string host to send spans to. if empty, no tracing will be done
  45. --datadog-agent-port string port to send spans to. if empty, no tracing will be done
  46. --db-credentials-file string db credentials file; send SIGHUP to reload this file
  47. --db-credentials-server string db credentials server type ('file' - file implementation; 'vault' - HashiCorp Vault implementation) (default "file")
  48. --db-credentials-vault-addr string URL to Vault server
  49. --db-credentials-vault-path string Vault path to credentials JSON blob, e.g.: secret/data/prod/dbcreds
  50. --db-credentials-vault-role-mountpoint string Vault AppRole mountpoint; can also be passed using VAULT_MOUNTPOINT environment variable (default "approle")
  51. --db-credentials-vault-role-secretidfile string Path to file containing Vault AppRole secret_id; can also be passed using VAULT_SECRETID environment variable
  52. --db-credentials-vault-roleid string Vault AppRole id; can also be passed using VAULT_ROLEID environment variable
  53. --db-credentials-vault-timeout duration Timeout for vault API operations (default 10s)
  54. --db-credentials-vault-tls-ca string Path to CA PEM for validating Vault server certificate
  55. --db-credentials-vault-tokenfile string Path to file containing Vault auth token; token can also be passed using VAULT_TOKEN environment variable
  56. --db-credentials-vault-ttl duration How long to cache DB credentials from the Vault server (default 30m0s)
  57. --db_allprivs_password string db allprivs password
  58. --db_allprivs_use_ssl Set this flag to false to make the allprivs connection to not use ssl (default true)
  59. --db_allprivs_user string db allprivs user userKey (default "vt_allprivs")
  60. --db_app_password string db app password
  61. --db_app_use_ssl Set this flag to false to make the app connection to not use ssl (default true)
  62. --db_app_user string db app user userKey (default "vt_app")
  63. --db_appdebug_password string db appdebug password
  64. --db_appdebug_use_ssl Set this flag to false to make the appdebug connection to not use ssl (default true)
  65. --db_appdebug_user string db appdebug user userKey (default "vt_appdebug")
  66. --db_charset string Character set used for this tablet. (default "utf8mb4")
  67. --db_conn_query_info enable parsing and processing of QUERY_OK info fields
  68. --db_connect_timeout_ms int connection timeout to mysqld in milliseconds (0 for no timeout)
  69. --db_dba_password string db dba password
  70. --db_dba_use_ssl Set this flag to false to make the dba connection to not use ssl (default true)
  71. --db_dba_user string db dba user userKey (default "vt_dba")
  72. --db_erepl_password string db erepl password
  73. --db_erepl_use_ssl Set this flag to false to make the erepl connection to not use ssl (default true)
  74. --db_erepl_user string db erepl user userKey (default "vt_erepl")
  75. --db_filtered_password string db filtered password
  76. --db_filtered_use_ssl Set this flag to false to make the filtered connection to not use ssl (default true)
  77. --db_filtered_user string db filtered user userKey (default "vt_filtered")
  78. --db_flags uint Flag values as defined by MySQL.
  79. --db_flavor string Flavor overrid. Valid value is FilePos.
  80. --db_host string The host name for the tcp connection.
  81. --db_port int tcp port
  82. --db_repl_password string db repl password
  83. --db_repl_use_ssl Set this flag to false to make the repl connection to not use ssl (default true)
  84. --db_repl_user string db repl user userKey (default "vt_repl")
  85. --db_server_name string server name of the DB we are connecting to.
  86. --db_socket string The unix socket to connect on. If this is specified, host and port will not be used.
  87. --db_ssl_ca string connection ssl ca
  88. --db_ssl_ca_path string connection ssl ca path
  89. --db_ssl_cert string connection ssl certificate
  90. --db_ssl_key string connection ssl key
  91. --db_ssl_mode SslMode SSL mode to connect with. One of disabled, preferred, required, verify_ca & verify_identity.
  92. --db_tls_min_version string Configures the minimal TLS version negotiated when SSL is enabled. Defaults to TLSv1.2. Options: TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3.
  93. --dba_idle_timeout duration Idle timeout for dba connections (default 1m0s)
  94. --dba_pool_size int Size of the connection pool for dba connections (default 20)
  95. --dbddl_plugin string controls how to handle CREATE/DROP DATABASE. use it if you are using your own database provisioning service (default "fail")
  96. --ddl_strategy string Set default strategy for DDL statements. Override with @@ddl_strategy session variable (default "direct")
  97. --default_tablet_type topodatapb.TabletType The default tablet type to set for queries, when one is not explicitly selected. (default PRIMARY)
  98. --degraded_threshold duration replication lag after which a replica is considered degraded (default 30s)
  99. --disable_active_reparents if set, do not allow active reparents. Use this to protect a cluster using external reparents.
  100. --emit_stats If set, emit stats to push-based monitoring and stats backends
  101. --enable-consolidator Synonym to -enable_consolidator (default true)
  102. --enable-consolidator-replicas Synonym to -enable_consolidator_replicas
  103. --enable-partial-keyspace-migration (Experimental) Follow shard routing rules: enable only while migrating a keyspace shard by shard. See documentation on Partial MoveTables for more. (default false)
  104. --enable-per-workload-table-metrics If true, query counts and query error metrics include a label that identifies the workload
  105. --enable-tx-throttler Synonym to -enable_tx_throttler
  106. --enable-views Enable views support in vtgate.
  107. --enable_buffer Enable buffering (stalling) of primary traffic during failovers.
  108. --enable_buffer_dry_run Detect and log failover events, but do not actually buffer requests.
  109. --enable_consolidator This option enables the query consolidator. (default true)
  110. --enable_consolidator_replicas This option enables the query consolidator only on replicas.
  111. --enable_direct_ddl Allow users to submit direct DDL statements (default true)
  112. --enable_hot_row_protection If true, incoming transactions for the same row (range) will be queued and cannot consume all txpool slots.
  113. --enable_hot_row_protection_dry_run If true, hot row protection is not enforced but logs if transactions would have been queued.
  114. --enable_online_ddl Allow users to submit, review and control Online DDL (default true)
  115. --enable_replication_reporter Use polling to track replication lag.
  116. --enable_set_var This will enable the use of MySQL's SET_VAR query hint for certain system variables instead of using reserved connections (default true)
  117. --enable_system_settings This will enable the system settings to be changed per session at the database connection level (default true)
  118. --enable_transaction_limit If true, limit on number of transactions open at the same time will be enforced for all users. User trying to open a new transaction after exhausting their limit will receive an error immediately, regardless of whether there are available slots or not.
  119. --enable_transaction_limit_dry_run If true, limit on number of transactions open at the same time will be tracked for all users, but not enforced.
  120. --enable_tx_throttler If true replication-lag-based throttling on transactions will be enabled.
  121. --enforce_strict_trans_tables If true, vttablet requires MySQL to run with STRICT_TRANS_TABLES or STRICT_ALL_TABLES on. It is recommended to not turn this flag off. Otherwise MySQL may alter your supplied values before saving them to the database. (default true)
  122. --external-compressor string command with arguments to use when compressing a backup.
  123. --external-compressor-extension string extension to use when using an external compressor.
  124. --external-decompressor string command with arguments to use when decompressing a backup.
  125. --external_topo_server Should vtcombo use an external topology server instead of starting its own in-memory topology server. If true, vtcombo will use the flags defined in topo/server.go to open topo server
  126. --foreign_key_mode string This is to provide how to handle foreign key constraint in create/alter table. Valid values are: allow, disallow (default "allow")
  127. --gate_query_cache_memory int gate server query cache size in bytes, maximum amount of memory to be cached. vtgate analyzes every incoming query and generate a query plan, these plans are being cached in a lru cache. This config controls the capacity of the lru cache. (default 33554432)
  128. --gc_check_interval duration Interval between garbage collection checks (default 1h0m0s)
  129. --gc_purge_check_interval duration Interval between purge discovery checks (default 1m0s)
  130. --gh-ost-path string override default gh-ost binary full path
  131. --grpc-send-session-in-streaming If set, will send the session as last packet in streaming api to support transactions in streaming
  132. --grpc-use-effective-groups If set, and SSL is not used, will set the immediate caller's security groups from the effective caller id's groups.
  133. --grpc-use-static-authentication-callerid If set, will set the immediate caller id to the username authenticated by the static auth plugin.
  134. --grpc_auth_mode string Which auth plugin implementation to use (eg: static)
  135. --grpc_auth_mtls_allowed_substrings string List of substrings of at least one of the client certificate names (separated by colon).
  136. --grpc_auth_static_password_file string JSON File to read the users/passwords from.
  137. --grpc_bind_address string Bind address for gRPC calls. If empty, listen on all addresses.
  138. --grpc_ca string server CA to use for gRPC connections, requires TLS, and enforces client certificate check
  139. --grpc_cert string server certificate to use for gRPC connections, requires grpc_key, enables TLS
  140. --grpc_crl string path to a certificate revocation list in PEM format, client certificates will be further verified against this file during TLS handshake
  141. --grpc_enable_optional_tls enable optional TLS mode when a server accepts both TLS and plain-text connections on the same port
  142. --grpc_enable_tracing Enable gRPC tracing.
  143. --grpc_key string server private key to use for gRPC connections, requires grpc_cert, enables TLS
  144. --grpc_max_connection_age duration Maximum age of a client connection before GoAway is sent. (default 2562047h47m16.854775807s)
  145. --grpc_max_connection_age_grace duration Additional grace period after grpc_max_connection_age, after which connections are forcibly closed. (default 2562047h47m16.854775807s)
  146. --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)
  147. --grpc_port int Port to listen on for gRPC calls. If zero, do not listen.
  148. --grpc_prometheus Enable gRPC monitoring with Prometheus.
  149. --grpc_server_ca string path to server CA in PEM format, which will be combine with server cert, return full certificate chain to clients
  150. --grpc_server_initial_conn_window_size int gRPC server initial connection window size
  151. --grpc_server_initial_window_size int gRPC server initial window size
  152. --grpc_server_keepalive_enforcement_policy_min_time duration gRPC server minimum keepalive time (default 10s)
  153. --grpc_server_keepalive_enforcement_policy_permit_without_stream gRPC server permit client keepalive pings even when there are no active streams (RPCs)
  154. --grpc_use_effective_callerid If set, and SSL is not used, will set the immediate caller id from the effective caller id's principal.
  155. --health_check_interval duration Interval between health checks (default 20s)
  156. --healthcheck_retry_delay duration health check retry delay (default 2ms)
  157. --healthcheck_timeout duration the health check timeout period (default 1m0s)
  158. --heartbeat_enable If true, vttablet records (if master) or checks (if replica) the current time of a replication heartbeat in the sidecar database's heartbeat table. The result is used to inform the serving state of the vttablet via healthchecks.
  159. --heartbeat_interval duration How frequently to read and write replication heartbeat. (default 1s)
  160. --heartbeat_on_demand_duration duration If non-zero, heartbeats are only written upon consumer request, and only run for up to given duration following the request. Frequent requests can keep the heartbeat running consistently; when requests are infrequent heartbeat may completely stop between requests
  161. -h, --help help for vtcombo
  162. --hot_row_protection_concurrent_transactions int Number of concurrent transactions let through to the txpool/MySQL for the same hot row. Should be > 1 to have enough 'ready' transactions in MySQL and benefit from a pipelining effect. (default 5)
  163. --hot_row_protection_max_global_queue_size int Global queue limit across all row (ranges). Useful to prevent that the queue can grow unbounded. (default 1000)
  164. --hot_row_protection_max_queue_size int Maximum number of BeginExecute RPCs which will be queued for the same row (range). (default 20)
  165. --init_db_name_override string (init parameter) override the name of the db used by vttablet. Without this flag, the db name defaults to vt_<keyspacename>
  166. --init_keyspace string (init parameter) keyspace to use for this tablet
  167. --init_shard string (init parameter) shard to use for this tablet
  168. --init_tablet_type string (init parameter) the tablet type to use for this tablet.
  169. --init_tags StringMap (init parameter) comma separated list of key:value pairs used to tag the tablet
  170. --init_timeout duration (init parameter) timeout to use for the init phase. (default 1m0s)
  171. --jaeger-agent-host string host and port to send spans to. if empty, no tracing will be done
  172. --json_topo vttest.TopoData vttest proto definition of the topology, encoded in json format. See vttest.proto for more information.
  173. --keep_logs duration keep logs for this long (using ctime) (zero to keep forever)
  174. --keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever)
  175. --keyspaces_to_watch strings Specifies which keyspaces this vtgate should have access to while routing queries or accessing the vschema.
  176. --lameduck-period duration keep running at least this long after SIGTERM before stopping (default 50ms)
  177. --lock-timeout duration Maximum time for which a shard/keyspace lock can be acquired for (default 45s)
  178. --lock_heartbeat_time duration If there is lock function used. This will keep the lock connection active by using this heartbeat (default 5s)
  179. --lock_tables_timeout duration How long to keep the table locked before timing out (default 1m0s)
  180. --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0)
  181. --log_dir string If non-empty, write log files in this directory
  182. --log_err_stacks log stack traces for errors
  183. --log_queries_to_file string Enable query logging to the specified file
  184. --log_rotate_max_size uint size in bytes at which logs are rotated (glog.MaxSize) (default 1887436800)
  185. --logtostderr log to standard error instead of files
  186. --manifest-external-decompressor string command with arguments to store in the backup manifest when compressing a backup with an external compression engine.
  187. --max-stack-size int configure the maximum stack size in bytes (default 67108864)
  188. --max_concurrent_online_ddl int Maximum number of online DDL changes that may run concurrently (default 256)
  189. --max_memory_rows int Maximum number of rows that will be held in memory for intermediate results as well as the final result. (default 300000)
  190. --max_payload_size int The threshold for query payloads in bytes. A payload greater than this threshold will result in a failure to handle the query.
  191. --message_stream_grace_period duration the amount of time to give for a vttablet to resume if it ends a message stream, usually because of a reparent. (default 30s)
  192. --migration_check_interval duration Interval between migration checks (default 1m0s)
  193. --mycnf-file string path to my.cnf, if reading all config params from there
  194. --mycnf_bin_log_path string mysql binlog path
  195. --mycnf_data_dir string data directory for mysql
  196. --mycnf_error_log_path string mysql error log path
  197. --mycnf_general_log_path string mysql general log path
  198. --mycnf_innodb_data_home_dir string Innodb data home directory
  199. --mycnf_innodb_log_group_home_dir string Innodb log group home directory
  200. --mycnf_master_info_file string mysql master.info file
  201. --mycnf_mysql_port int port mysql is listening on
  202. --mycnf_pid_file string mysql pid file
  203. --mycnf_relay_log_index_path string mysql relay log index path
  204. --mycnf_relay_log_info_path string mysql relay log info path
  205. --mycnf_relay_log_path string mysql relay log path
  206. --mycnf_secure_file_priv string mysql path for loading secure files
  207. --mycnf_server_id int mysql server id of the server (if specified, mycnf-file will be ignored)
  208. --mycnf_slow_log_path string mysql slow query log path
  209. --mycnf_socket_file string mysql socket file
  210. --mycnf_tmp_dir string mysql tmp directory
  211. --mysql-server-keepalive-period duration TCP period between keep-alives
  212. --mysql-server-pool-conn-read-buffers If set, the server will pool incoming connection read buffers
  213. --mysql_allow_clear_text_without_tls If set, the server will allow the use of a clear text password over non-SSL connections.
  214. --mysql_auth_server_impl string Which auth server implementation to use. Options: none, ldap, clientcert, static, vault. (default "static")
  215. --mysql_default_workload string Default session workload (OLTP, OLAP, DBA) (default "OLTP")
  216. --mysql_port int mysql port (default 3306)
  217. --mysql_server_bind_address string Binds on this address when listening to MySQL binary protocol. Useful to restrict listening to 'localhost' only for instance.
  218. --mysql_server_port int If set, also listen for MySQL binary protocol connections on this port. (default -1)
  219. --mysql_server_query_timeout duration mysql query timeout
  220. --mysql_server_read_timeout duration connection read timeout
  221. --mysql_server_require_secure_transport Reject insecure connections but only if mysql_server_ssl_cert and mysql_server_ssl_key are provided
  222. --mysql_server_socket_path string This option specifies the Unix socket file to use when listening for local connections. By default it will be empty and it won't listen to a unix socket
  223. --mysql_server_ssl_ca string Path to ssl CA for mysql server plugin SSL. If specified, server will require and validate client certs.
  224. --mysql_server_ssl_cert string Path to the ssl cert for mysql server plugin SSL
  225. --mysql_server_ssl_crl string Path to ssl CRL for mysql server plugin SSL
  226. --mysql_server_ssl_key string Path to ssl key for mysql server plugin SSL
  227. --mysql_server_ssl_server_ca string path to server CA in PEM format, which will be combine with server cert, return full certificate chain to clients
  228. --mysql_server_tls_min_version string Configures the minimal TLS version negotiated when SSL is enabled. Defaults to TLSv1.2. Options: TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3.
  229. --mysql_server_version string MySQL server version to advertise. (default "8.0.30-Vitess")
  230. --mysql_server_write_timeout duration connection write timeout
  231. --mysql_slow_connect_warn_threshold duration Warn if it takes more than the given threshold for a mysql connection to establish
  232. --mysql_tcp_version string Select tcp, tcp4, or tcp6 to control the socket type. (default "tcp")
  233. --mysqlctl_mycnf_template string template file to use for generating the my.cnf file during server init
  234. --mysqlctl_socket string socket file to use for remote mysqlctl actions (empty for local actions)
  235. --no_scatter when set to true, the planner will fail instead of producing a plan that includes scatter queries
  236. --normalize_queries Rewrite queries with bind vars. Turn this off if the app itself sends normalized queries with bind vars. (default true)
  237. --onclose_timeout duration wait no more than this for OnClose handlers before stopping (default 10s)
  238. --onterm_timeout duration wait no more than this for OnTermSync handlers before stopping (default 10s)
  239. --pid_file string If set, the process will write its pid to the named file, and delete it on graceful shutdown.
  240. --pitr_gtid_lookup_timeout duration PITR restore parameter: timeout for fetching gtid from timestamp. (default 1m0s)
  241. --planner-version string Sets the default planner to use when the session has not changed it. Valid values are: Gen4, Gen4Greedy, Gen4Left2Right
  242. --pool_hostname_resolve_interval duration if set force an update to all hostnames and reconnect if changed, defaults to 0 (disabled)
  243. --port int port for the server
  244. --pprof strings enable profiling
  245. --proto_topo vttest.TopoData vttest proto definition of the topology, encoded in compact text format. See vttest.proto for more information.
  246. --proxy_protocol Enable HAProxy PROXY protocol on MySQL listener socket
  247. --proxy_tablets Setting this true will make vtctld proxy the tablet status instead of redirecting to them
  248. --pt-osc-path string override default pt-online-schema-change binary full path
  249. --publish_retry_interval duration how long vttablet waits to retry publishing the tablet record (default 30s)
  250. --purge_logs_interval duration how often try to remove old logs (default 1h0m0s)
  251. --query-log-stream-handler string URL handler for streaming queries log (default "/debug/querylog")
  252. --query-timeout int Sets the default query timeout (in ms). Can be overridden by session variable (query_timeout) or comment directive (QUERY_TIMEOUT_MS)
  253. --querylog-buffer-size int Maximum number of buffered query logs before throttling log output (default 10)
  254. --querylog-filter-tag string string that must be present in the query for it to be logged; if using a value as the tag, you need to disable query normalization
  255. --querylog-format string format for query logs ("text" or "json") (default "text")
  256. --querylog-row-threshold uint Number of rows a query has to return or affect before being logged; not useful for streaming queries. 0 means all queries will be logged.
  257. --queryserver-config-acl-exempt-acl string an acl that exempt from table acl checking (this acl is free to access any vitess tables).
  258. --queryserver-config-annotate-queries prefix queries to MySQL backend with comment indicating vtgate principal (user) and target tablet type
  259. --queryserver-config-enable-table-acl-dry-run If this flag is enabled, tabletserver will emit monitoring metrics and let the request pass regardless of table acl check results
  260. --queryserver-config-idle-timeout duration query server idle timeout (in seconds), vttablet manages various mysql connection pools. This config means if a connection has not been used in given idle timeout, this connection will be removed from pool. This effectively manages number of connection objects and optimize the pool performance. (default 30m0s)
  261. --queryserver-config-max-result-size int query server max result size, maximum number of rows allowed to return from vttablet for non-streaming queries. (default 10000)
  262. --queryserver-config-message-postpone-cap int query server message postpone cap is the maximum number of messages that can be postponed at any given time. Set this number to substantially lower than transaction cap, so that the transaction pool isn't exhausted by the message subsystem. (default 4)
  263. --queryserver-config-olap-transaction-timeout duration query server transaction timeout (in seconds), after which a transaction in an OLAP session will be killed (default 30s)
  264. --queryserver-config-passthrough-dmls query server pass through all dml statements without rewriting
  265. --queryserver-config-pool-conn-max-lifetime duration query server connection max lifetime (in seconds), vttablet manages various mysql connection pools. This config means if a connection has lived at least this long, it connection will be removed from pool upon the next time it is returned to the pool. (default 0s)
  266. --queryserver-config-pool-size int query server read pool size, connection pool is used by regular queries (non streaming, not in a transaction) (default 16)
  267. --queryserver-config-query-cache-memory int query server query cache size in bytes, maximum amount of memory to be used for caching. vttablet analyzes every incoming query and generate a query plan, these plans are being cached in a lru cache. This config controls the capacity of the lru cache. (default 33554432)
  268. --queryserver-config-query-pool-timeout duration query server query pool timeout (in seconds), it is how long vttablet waits for a connection from the query pool. If set to 0 (default) then the overall query timeout is used instead. (default 0s)
  269. --queryserver-config-query-pool-waiter-cap int query server query pool waiter limit, this is the maximum number of queries that can be queued waiting to get a connection (default 5000)
  270. --queryserver-config-query-timeout duration query server query timeout (in seconds), this is the query timeout in vttablet side. If a query takes more than this timeout, it will be killed. (default 30s)
  271. --queryserver-config-schema-change-signal query server schema signal, will signal connected vtgates that schema has changed whenever this is detected. VTGates will need to have -schema_change_signal enabled for this to work (default true)
  272. --queryserver-config-schema-reload-time duration query server schema reload time, how often vttablet reloads schemas from underlying MySQL instance in seconds. vttablet keeps table schemas in its own memory and periodically refreshes it from MySQL. This config controls the reload time. (default 30m0s)
  273. --queryserver-config-stream-buffer-size int query server stream buffer size, the maximum number of bytes sent from vttablet for each stream call. It's recommended to keep this value in sync with vtgate's stream_buffer_size. (default 32768)
  274. --queryserver-config-stream-pool-size int query server stream connection pool size, stream pool is used by stream queries: queries that return results to client in a streaming fashion (default 200)
  275. --queryserver-config-stream-pool-timeout duration query server stream pool timeout (in seconds), it is how long vttablet waits for a connection from the stream pool. If set to 0 (default) then there is no timeout. (default 0s)
  276. --queryserver-config-stream-pool-waiter-cap int query server stream pool waiter limit, this is the maximum number of streaming queries that can be queued waiting to get a connection
  277. --queryserver-config-strict-table-acl only allow queries that pass table acl checks
  278. --queryserver-config-terse-errors prevent bind vars from escaping in client error messages
  279. --queryserver-config-transaction-cap int query server transaction cap is the maximum number of transactions allowed to happen at any given point of a time for a single vttablet. E.g. by setting transaction cap to 100, there are at most 100 transactions will be processed by a vttablet and the 101th transaction will be blocked (and fail if it cannot get connection within specified timeout) (default 20)
  280. --queryserver-config-transaction-timeout duration query server transaction timeout (in seconds), a transaction will be killed if it takes longer than this value (default 30s)
  281. --queryserver-config-truncate-error-len int truncate errors sent to client if they are longer than this value (0 means do not truncate)
  282. --queryserver-config-txpool-timeout duration query server transaction pool timeout, it is how long vttablet waits if tx pool is full (default 1s)
  283. --queryserver-config-txpool-waiter-cap int query server transaction pool waiter limit, this is the maximum number of transactions that can be queued waiting to get a connection (default 5000)
  284. --queryserver-config-warn-result-size int query server result size warning threshold, warn if number of rows returned from vttablet for non-streaming queries exceeds this
  285. --queryserver-enable-settings-pool Enable pooling of connections with modified system settings (default true)
  286. --queryserver-enable-views Enable views support in vttablet.
  287. --queryserver_enable_online_ddl Enable online DDL. (default true)
  288. --redact-debug-ui-queries redact full queries and bind variables from debug UI
  289. --relay_log_max_items int Maximum number of rows for VReplication target buffering. (default 5000)
  290. --relay_log_max_size int Maximum buffer size (in bytes) for VReplication target buffering. If single rows are larger than this, a single row is buffered at a time. (default 250000)
  291. --remote_operation_timeout duration time to wait for a remote operation (default 15s)
  292. --replication_connect_retry duration how long to wait in between replica reconnect attempts. Only precise to the second. (default 10s)
  293. --restore-to-pos string (init incremental restore parameter) if set, run a point in time recovery that ends with the given position. This will attempt to use one full backup followed by zero or more incremental backups
  294. --restore-to-timestamp string (init incremental restore parameter) if set, run a point in time recovery that restores up to the given timestamp, if possible. Given timestamp in RFC3339 format. Example: '2006-01-02T15:04:05Z07:00'
  295. --restore_concurrency int (init restore parameter) how many concurrent files to restore at once (default 4)
  296. --restore_from_backup (init restore parameter) will check BackupStorage for a recent backup at startup and start there
  297. --restore_from_backup_ts string (init restore parameter) if set, restore the latest backup taken at or before this timestamp. Example: '2021-04-29.133050'
  298. --retain_online_ddl_tables duration How long should vttablet keep an old migrated table before purging it (default 24h0m0s)
  299. --sanitize_log_messages Remove potentially sensitive information in tablet INFO, WARNING, and ERROR log messages such as query parameters.
  300. --schema-change-reload-timeout duration query server schema change reload timeout, this is how long to wait for the signaled schema reload operation to complete before giving up (default 30s)
  301. --schema-version-max-age-seconds int max age of schema version records to kept in memory by the vreplication historian
  302. --schema_change_signal Enable the schema tracker; requires queryserver-config-schema-change-signal to be enabled on the underlying vttablets for this to work (default true)
  303. --schema_dir string Schema base directory. Should contain one directory per keyspace, with a vschema.json file if necessary.
  304. --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)
  305. --service_map strings comma separated list of services to enable (or disable if prefixed with '-') Example: grpc-queryservice
  306. --serving_state_grace_period duration how long to pause after broadcasting health to vtgate, before enforcing a new serving state
  307. --shard_sync_retry_delay duration delay between retries of updates to keep the tablet and its shard record in sync (default 30s)
  308. --shutdown_grace_period duration how long to wait (in seconds) for queries and transactions to complete during graceful shutdown. (default 0s)
  309. --sql-max-length-errors int truncate queries in error logs to the given length (default unlimited)
  310. --sql-max-length-ui int truncate queries in debug UIs to the given length (default 512) (default 512)
  311. --srv_topo_cache_refresh duration how frequently to refresh the topology for cached entries (default 1s)
  312. --srv_topo_cache_ttl duration how long to use cached entries for topology (default 1s)
  313. --srv_topo_timeout duration topo server timeout (default 5s)
  314. --start_mysql Should vtcombo also start mysql
  315. --stats_backend string The name of the registered push-based monitoring/stats backend to use
  316. --stats_combine_dimensions string List of dimensions to be combined into a single "all" value in exported stats vars
  317. --stats_common_tags strings Comma-separated list of common tags for the stats backend. It provides both label and values. Example: label1:value1,label2:value2
  318. --stats_drop_variables string Variables to be dropped from the list of exported variables.
  319. --stats_emit_period duration Interval between emitting stats to all registered backends (default 1m0s)
  320. --stderrthreshold severity logs at or above this threshold go to stderr (default 1)
  321. --stream_buffer_size int the number of bytes sent from vtgate for each stream call. It's recommended to keep this value in sync with vttablet's query-server-config-stream-buffer-size. (default 32768)
  322. --stream_health_buffer_size uint max streaming health entries to buffer per streaming health client (default 20)
  323. --table-refresh-interval int interval in milliseconds to refresh tables in status page with refreshRequired class
  324. --table_gc_lifecycle string States for a DROP TABLE garbage collection cycle. Default is 'hold,purge,evac,drop', use any subset ('drop' implcitly always included) (default "hold,purge,evac,drop")
  325. --tablet_dir string The directory within the vtdataroot to store vttablet/mysql files. Defaults to being generated by the tablet uid.
  326. --tablet_filters strings Specifies a comma-separated list of 'keyspace|shard_name or keyrange' values to filter the tablets to watch.
  327. --tablet_health_keep_alive duration close streaming tablet health connection if there are no requests for this long (default 5m0s)
  328. --tablet_hostname string if not empty, this hostname will be assumed instead of trying to resolve it
  329. --tablet_manager_grpc_ca string the server ca to use to validate servers when connecting
  330. --tablet_manager_grpc_cert string the cert to use to connect
  331. --tablet_manager_grpc_concurrency int concurrency to use to talk to a vttablet server for performance-sensitive RPCs (like ExecuteFetchAs{Dba,AllPrivs,App}) (default 8)
  332. --tablet_manager_grpc_connpool_size int number of tablets to keep tmclient connections open to (default 100)
  333. --tablet_manager_grpc_crl string the server crl to use to validate server certificates when connecting
  334. --tablet_manager_grpc_key string the key to use to connect
  335. --tablet_manager_grpc_server_name string the server name to use to validate server certificate
  336. --tablet_manager_protocol string Protocol to use to make tabletmanager RPCs to vttablets. (default "grpc")
  337. --tablet_refresh_interval duration Tablet refresh interval. (default 1m0s)
  338. --tablet_refresh_known_tablets Whether to reload the tablet's address/port map from topo in case they change. (default true)
  339. --tablet_url_template string Format string describing debug tablet url formatting. See getTabletDebugURL() for how to customize this. (default "http://{{.GetTabletHostPort}}")
  340. --throttle_tablet_types string Comma separated VTTablet types to be considered by the throttler. default: 'replica'. example: 'replica,rdonly'. 'replica' aways implicitly included (default "replica")
  341. --topo_consul_lock_delay duration LockDelay for consul session. (default 15s)
  342. --topo_consul_lock_session_checks string List of checks for consul session. (default "serfHealth")
  343. --topo_consul_lock_session_ttl string TTL for consul session.
  344. --topo_consul_watch_poll_duration duration time of the long poll for watch queries. (default 30s)
  345. --topo_etcd_lease_ttl int Lease TTL for locks and leader election. The client will use KeepAlive to keep the lease going. (default 30)
  346. --topo_etcd_tls_ca string path to the ca to use to validate the server cert when connecting to the etcd topo server
  347. --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
  348. --topo_etcd_tls_key string path to the client key to use to connect to the etcd topo server, enables TLS
  349. --topo_global_root string the path of the global topology data in the global topology server
  350. --topo_global_server_address string the address of the global topology server
  351. --topo_implementation string the topology implementation to use
  352. --topo_read_concurrency int Concurrency of topo reads. (default 32)
  353. --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
  354. --topo_zk_base_timeout duration zk base timeout (see zk.Connect) (default 30s)
  355. --topo_zk_max_concurrency int maximum number of pending requests to send to a Zookeeper server. (default 64)
  356. --topo_zk_tls_ca string the server ca to use to validate servers when connecting to the zk topo server
  357. --topo_zk_tls_cert string the cert to use to connect to the zk topo server, requires topo_zk_tls_key, enables TLS
  358. --topo_zk_tls_key string the key to use to connect to the zk topo server, enables TLS
  359. --tracer string tracing service to use (default "noop")
  360. --tracing-enable-logging whether to enable logging in the tracing service
  361. --tracing-sampling-rate float sampling rate for the probabilistic jaeger sampler (default 0.1)
  362. --tracing-sampling-type string sampling strategy to use for jaeger. possible values are 'const', 'probabilistic', 'rateLimiting', or 'remote' (default "const")
  363. --track_schema_versions When enabled, vttablet will store versions of schemas at each position that a DDL is applied and allow retrieval of the schema corresponding to a position
  364. --transaction-log-stream-handler string URL handler for streaming transactions log (default "/debug/txlog")
  365. --transaction_limit_by_component Include CallerID.component when considering who the user is for the purpose of transaction limit.
  366. --transaction_limit_by_principal Include CallerID.principal when considering who the user is for the purpose of transaction limit. (default true)
  367. --transaction_limit_by_subcomponent Include CallerID.subcomponent when considering who the user is for the purpose of transaction limit.
  368. --transaction_limit_by_username Include VTGateCallerID.username when considering who the user is for the purpose of transaction limit. (default true)
  369. --transaction_limit_per_user float Maximum number of transactions a single user is allowed to use at any time, represented as fraction of -transaction_cap. (default 0.4)
  370. --transaction_mode string SINGLE: disallow multi-db transactions, MULTI: allow multi-db transactions with best effort commit, TWOPC: allow multi-db transactions with 2pc commit (default "MULTI")
  371. --truncate-error-len int truncate errors sent to client if they are longer than this value (0 means do not truncate)
  372. --twopc_abandon_age float time in seconds. Any unresolved transaction older than this time will be sent to the coordinator to be resolved.
  373. --twopc_coordinator_address string address of the (VTGate) process(es) that will be used to notify of abandoned transactions.
  374. --twopc_enable if the flag is on, 2pc is enabled. Other 2pc flags must be supplied.
  375. --tx-throttler-config string Synonym to -tx_throttler_config (default "target_replication_lag_sec:2 max_replication_lag_sec:10 initial_rate:100 max_increase:1 emergency_decrease:0.5 min_duration_between_increases_sec:40 max_duration_between_increases_sec:62 min_duration_between_decreases_sec:20 spread_backlog_across_sec:20 age_bad_rate_after_sec:180 bad_rate_increase:0.1 max_rate_approach_threshold:0.9")
  376. --tx-throttler-default-priority int Default priority assigned to queries that lack priority information (default 100)
  377. --tx-throttler-dry-run If present, the transaction throttler only records metrics about requests received and throttled, but does not actually throttle any requests.
  378. --tx-throttler-healthcheck-cells strings Synonym to -tx_throttler_healthcheck_cells
  379. --tx-throttler-tablet-types strings A comma-separated list of tablet types. Only tablets of this type are monitored for replication lag by the transaction throttler. Supported types are replica and/or rdonly. (default replica)
  380. --tx-throttler-topo-refresh-interval duration The rate that the transaction throttler will refresh the topology to find cells. (default 5m0s)
  381. --tx_throttler_config string The configuration of the transaction throttler as a text-formatted throttlerdata.Configuration protocol buffer message. (default "target_replication_lag_sec:2 max_replication_lag_sec:10 initial_rate:100 max_increase:1 emergency_decrease:0.5 min_duration_between_increases_sec:40 max_duration_between_increases_sec:62 min_duration_between_decreases_sec:20 spread_backlog_across_sec:20 age_bad_rate_after_sec:180 bad_rate_increase:0.1 max_rate_approach_threshold:0.9")
  382. --tx_throttler_healthcheck_cells strings A comma-separated list of cells. Only tabletservers running in these cells will be monitored for replication lag by the transaction throttler.
  383. --unhealthy_threshold duration replication lag after which a replica is considered unhealthy (default 2h0m0s)
  384. --v Level log level for V logs
  385. -v, --version print binary version
  386. --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging
  387. --vreplication-parallel-insert-workers int Number of parallel insertion workers to use during copy phase. Set <= 1 to disable parallelism, or > 1 to enable concurrent insertion during copy phase. (default 1)
  388. --vreplication_copy_phase_duration duration Duration for each copy phase loop (before running the next catchup: default 1h) (default 1h0m0s)
  389. --vreplication_copy_phase_max_innodb_history_list_length int The maximum InnoDB transaction history that can exist on a vstreamer (source) before starting another round of copying rows. This helps to limit the impact on the source tablet. (default 1000000)
  390. --vreplication_copy_phase_max_mysql_replication_lag int The maximum MySQL replication lag (in seconds) that can exist on a vstreamer (source) before starting another round of copying rows. This helps to limit the impact on the source tablet. (default 43200)
  391. --vreplication_healthcheck_retry_delay duration healthcheck retry delay (default 5s)
  392. --vreplication_healthcheck_timeout duration healthcheck retry delay (default 1m0s)
  393. --vreplication_healthcheck_topology_refresh duration refresh interval for re-reading the topology (default 30s)
  394. --vreplication_heartbeat_update_interval int Frequency (in seconds, default 1, max 60) at which the time_updated column of a vreplication stream when idling (default 1)
  395. --vreplication_max_time_to_retry_on_error duration stop automatically retrying when we've had consecutive failures with the same error for this long after the first occurrence
  396. --vreplication_replica_lag_tolerance duration Replica lag threshold duration: once lag is below this we switch from copy phase to the replication (streaming) phase (default 1m0s)
  397. --vreplication_retry_delay duration delay before retrying a failed workflow event in the replication phase (default 5s)
  398. --vreplication_store_compressed_gtid Store compressed gtids in the pos column of the sidecar database's vreplication table
  399. --vreplication_tablet_type string comma separated list of tablet types used as a source (default "in_order:REPLICA,PRIMARY")
  400. --vschema-persistence-dir string If set, per-keyspace vschema will be persisted in this directory and reloaded into the in-memory topology server across restarts. Bookkeeping is performed using a simple watcher goroutine. This is useful when running vtcombo as an application development container (e.g. vttestserver) where you want to keep the same vschema even if developer's machine reboots. This works in tandem with vttestserver's --persistent_mode flag. Needless to say, this is neither a perfect nor a production solution for vschema persistence. Consider using the --external_topo_server flag if you require a more complete solution. This flag is ignored if --external_topo_server is set.
  401. --vschema_ddl_authorized_users string List of users authorized to execute vschema ddl operations, or '%' to allow all users.
  402. --vstream-binlog-rotation-threshold int Byte size at which a VStreamer will attempt to rotate the source's open binary log before starting a GTID snapshot based stream (e.g. a ResultStreamer or RowStreamer) (default 67108864)
  403. --vstream_dynamic_packet_size Enable dynamic packet sizing for VReplication. This will adjust the packet size during replication to improve performance. (default true)
  404. --vstream_packet_size int Suggested packet size for VReplication streamer. This is used only as a recommendation. The actual packet size may be more or less than this amount. (default 250000)
  405. --vtctld_sanitize_log_messages When true, vtctld sanitizes logging.
  406. --vtgate-config-terse-errors prevent bind vars from escaping in returned errors
  407. --vtgate_grpc_ca string the server ca to use to validate servers when connecting
  408. --vtgate_grpc_cert string the cert to use to connect
  409. --vtgate_grpc_crl string the server crl to use to validate server certificates when connecting
  410. --vtgate_grpc_key string the key to use to connect
  411. --vtgate_grpc_server_name string the server name to use to validate server certificate
  412. --vttablet_skip_buildinfo_tags string comma-separated list of buildinfo tags to skip from merging with --init_tags. each tag is either an exact match or a regular expression of the form '/regexp/'. (default "/.*/")
  413. --wait_for_backup_interval duration (init restore parameter) if this is greater than 0, instead of starting up empty when no backups are found, keep checking at this interval for a backup to appear
  414. --warn_memory_rows int Warning threshold for in-memory results. A row count higher than this amount will cause the VtGateWarnings.ResultsExceeded counter to be incremented. (default 30000)
  415. --warn_payload_size int The warning threshold for query payloads in bytes. A payload greater than this threshold will cause the VtGateWarnings.WarnPayloadSizeExceeded counter to be incremented.
  416. --warn_sharded_only If any features that are only available in unsharded mode are used, query execution warnings will be added to the session
  417. --watch_replication_stream When enabled, vttablet will stream the MySQL replication stream from the local server, and use it to update schema when it sees a DDL.
  418. --xbstream_restore_flags string Flags to pass to xbstream command during restore. These should be space separated and will be added to the end of the command. These need to match the ones used for backup e.g. --compress / --decompress, --encrypt / --decrypt
  419. --xtrabackup_backup_flags string Flags to pass to backup command. These should be space separated and will be added to the end of the command
  420. --xtrabackup_prepare_flags string Flags to pass to prepare command. These should be space separated and will be added to the end of the command
  421. --xtrabackup_root_path string Directory location of the xtrabackup and xbstream executables, e.g., /usr/bin
  422. --xtrabackup_stream_mode string Which mode to use if streaming, valid values are tar and xbstream. Please note that tar is not supported in XtraBackup 8.0 (default "tar")
  423. --xtrabackup_stripe_block_size uint Size in bytes of each block that gets sent to a given stripe before rotating to the next stripe (default 102400)
  424. --xtrabackup_stripes uint If greater than 0, use data striping across this many destination files to parallelize data transfer and decompression
  425. --xtrabackup_user string User that xtrabackup will use to connect to the database server. This user must have all necessary privileges. For details, please refer to xtrabackup documentation.