vitess.io/vitess@v0.16.2/doc/flags/14.0-to-15.0-transition/vtgate.diff (about) 1 diff --git a/flags/14.0/vtgate.txt b/flags/15.0/vtgate.txt 2 index 49c7f59..e9e8591 100644 3 --- a/flags/14.0/vtgate.txt 4 +++ b/flags/15.0/vtgate.txt 5 @@ -1,48 +1,48 @@ 6 Usage of vtgate: 7 - --allowed_tablet_types value Specifies the tablet types this vtgate is allowed to route queries to 8 + --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. 9 --alsologtostderr log to standard error as well as files 10 --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) 11 - --buffer_implementation string Allowed values: healthcheck (legacy implementation), keyspace_events (default) (default keyspace_events) 12 + --buffer_implementation string Allowed values: healthcheck (legacy implementation), keyspace_events (default) (default "keyspace_events") 13 --buffer_keyspace_shards string If not empty, limit buffering to these entries (comma separated). Entry format: keyspace or keyspace/shard. Requires --enable_buffer=true. 14 --buffer_max_failover_duration duration Stop buffering completely if a failover takes longer than this duration. (default 20s) 15 --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) 16 --buffer_size int Maximum number of buffered requests in flight (across all ongoing failovers). (default 1000) 17 --buffer_window duration Duration for how long a request should be buffered at most. (default 10s) 18 --catch-sigpipe catch and ignore SIGPIPE on stdout and stderr if specified 19 - --cell string cell to use (default test_nj) 20 + --cell string cell to use 21 --cells_to_watch string comma-separated list of cells for watching tablets 22 --consul_auth_static_file string JSON File to read the topos/tokens from. 23 - --cpu_profile string deprecated: use '-pprof=cpu' instead 24 --datadog-agent-host string host to send spans to. if empty, no tracing will be done 25 --datadog-agent-port string port to send spans to. if empty, no tracing will be done 26 - --dbddl_plugin string controls how to handle CREATE/DROP DATABASE. use it if you are using your own database provisioning service (default fail) 27 - --ddl_strategy string Set default strategy for DDL statements. Override with @@ddl_strategy session variable (default direct) 28 - --default_tablet_type value The default tablet type to set for queries, when one is not explicitly selected (default PRIMARY) 29 - --disable_local_gateway deprecated: if specified, this process will not route any queries to local tablets in the local cell 30 - --discovery_high_replication_lag_minimum_serving duration the replication lag that is considered too high when applying the min_number_serving_vttablets threshold (default 2h0m0s) 31 - --discovery_low_replication_lag duration the replication lag that is considered low enough to be healthy (default 30s) 32 + --dbddl_plugin string controls how to handle CREATE/DROP DATABASE. use it if you are using your own database provisioning service (default "fail") 33 + --ddl_strategy string Set default strategy for DDL statements. Override with @@ddl_strategy session variable (default "direct") 34 + --default_tablet_type topodatapb.TabletType The default tablet type to set for queries, when one is not explicitly selected. (default PRIMARY) 35 + --discovery_high_replication_lag_minimum_serving duration Threshold above which replication lag is considered too high when applying the min_number_serving_vttablets flag. (default 2h0m0s) 36 + --discovery_low_replication_lag duration Threshold below which replication lag is considered low enough to be healthy. (default 30s) 37 --emit_stats If set, emit stats to push-based monitoring and stats backends 38 + --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) 39 --enable_buffer Enable buffering (stalling) of primary traffic during failovers. 40 --enable_buffer_dry_run Detect and log failover events, but do not actually buffer requests. 41 --enable_direct_ddl Allow users to submit direct DDL statements (default true) 42 --enable_online_ddl Allow users to submit, review and control Online DDL (default true) 43 --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) 44 --enable_system_settings This will enable the system settings to be changed per session at the database connection level (default true) 45 - --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) 46 + --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") 47 --gate_query_cache_lfu gate server cache algorithm. when set to true, a new cache algorithm based on a TinyLFU admission policy will be used to improve cache behavior and prevent pollution from sparse queries (default true) 48 --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) 49 --gate_query_cache_size int gate server query cache size, maximum number of queries to be cached. vtgate analyzes every incoming query and generate a query plan, these plans are being cached in a cache. This config controls the expected amount of unique entries in the cache. (default 5000) 50 --gateway_initial_tablet_timeout duration At startup, the tabletGateway will wait up to this duration to get at least one tablet per keyspace/shard/tablet type (default 30s) 51 + --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. 52 --grpc_auth_mode string Which auth plugin implementation to use (eg: static) 53 --grpc_auth_mtls_allowed_substrings string List of substrings of at least one of the client certificate names (separated by colon). 54 - --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 55 + --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. 56 --grpc_auth_static_password_file string JSON File to read the users/passwords from. 57 --grpc_ca string server CA to use for gRPC connections, requires TLS, and enforces client certificate check 58 --grpc_cert string server certificate to use for gRPC connections, requires grpc_key, enables TLS 59 --grpc_compression string Which protocol to use for compressing gRPC. Default: nothing. Supported: snappy 60 --grpc_crl string path to a certificate revocation list in PEM format, client certificates will be further verified against this file during TLS handshake 61 --grpc_enable_optional_tls enable optional TLS mode when a server accepts both TLS and plain-text connections on the same port 62 - --grpc_enable_tracing Enable GRPC tracing 63 + --grpc_enable_tracing Enable gRPC tracing. 64 --grpc_initial_conn_window_size int gRPC initial connection window size 65 --grpc_initial_window_size int gRPC initial window size 66 --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) 67 @@ -51,8 +51,8 @@ Usage of vtgate: 68 --grpc_max_connection_age duration Maximum age of a client connection before GoAway is sent. (default 2562047h47m16.854775807s) 69 --grpc_max_connection_age_grace duration Additional grace period after grpc_max_connection_age, after which connections are forcibly closed. (default 2562047h47m16.854775807s) 70 --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) 71 - --grpc_port int Port to listen on for gRPC calls 72 - --grpc_prometheus Enable gRPC monitoring with Prometheus 73 + --grpc_port int Port to listen on for gRPC calls. If zero, do not listen. 74 + --grpc_prometheus Enable gRPC monitoring with Prometheus. 75 --grpc_server_ca string path to server CA in PEM format, which will be combine with server cert, return full certificate chain to clients 76 --grpc_server_initial_conn_window_size int gRPC server initial connection window size 77 --grpc_server_initial_window_size int gRPC server initial window size 78 @@ -61,14 +61,15 @@ Usage of vtgate: 79 --grpc_use_effective_callerid If set, and SSL is not used, will set the immediate caller id from the effective caller id's principal. 80 --healthcheck_retry_delay duration health check retry delay (default 2ms) 81 --healthcheck_timeout duration the health check timeout period (default 1m0s) 82 + -h, --help display usage and exit 83 --jaeger-agent-host string host and port to send spans to. if empty, no tracing will be done 84 --keep_logs duration keep logs for this long (using ctime) (zero to keep forever) 85 --keep_logs_by_mtime duration keep logs for this long (using mtime) (zero to keep forever) 86 - --keyspaces_to_watch value Specifies which keyspaces this vtgate should have access to while routing queries or accessing the vschema 87 + --keyspaces_to_watch strings Specifies which keyspaces this vtgate should have access to while routing queries or accessing the vschema. 88 --lameduck-period duration keep running at least this long after SIGTERM before stopping (default 50ms) 89 - --legacy_replication_lag_algorithm use the legacy algorithm when selecting the vttablets for serving (default true) 90 + --legacy_replication_lag_algorithm Use the legacy algorithm when selecting vttablets for serving. (default true) 91 --lock_heartbeat_time duration If there is lock function used. This will keep the lock connection active by using this heartbeat (default 5s) 92 - --log_backtrace_at value when logging hits line file:N, emit a stack trace 93 + --log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0) 94 --log_dir string If non-empty, write log files in this directory 95 --log_err_stacks log stack traces for errors 96 --log_queries_to_file string Enable query logging to the specified file 97 @@ -76,34 +77,33 @@ Usage of vtgate: 98 --logtostderr log to standard error instead of files 99 --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) 100 --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. 101 - --mem-profile-rate int deprecated: use '-pprof=mem' instead (default 524288) 102 --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) 103 - --min_number_serving_vttablets int the minimum number of vttablets for each replicating tablet_type (e.g. replica, rdonly) that will be continue to be used even with replication lag above discovery_low_replication_lag, but still below discovery_high_replication_lag_minimum_serving (default 2) 104 - --mutex-profile-fraction int deprecated: use '-pprof=mutex' instead 105 + --min_number_serving_vttablets int The minimum number of vttablets for each replicating tablet_type (e.g. replica, rdonly) that will be continue to be used even with replication lag above discovery_low_replication_lag, but still below discovery_high_replication_lag_minimum_serving. (default 2) 106 + --mysql-server-pool-conn-read-buffers If set, the server will pool incoming connection read buffers 107 --mysql_allow_clear_text_without_tls If set, the server will allow the use of a clear text password over non-SSL connections. 108 - --mysql_auth_server_impl string Which auth server implementation to use. Options: none, ldap, clientcert, static, vault. (default static) 109 + --mysql_auth_server_impl string Which auth server implementation to use. Options: none, ldap, clientcert, static, vault. (default "static") 110 --mysql_auth_server_static_file string JSON File to read the users/passwords from. 111 --mysql_auth_server_static_string string JSON representation of the users/passwords config. 112 --mysql_auth_static_reload_interval duration Ticker to reload credentials 113 --mysql_auth_vault_addr string URL to Vault server 114 --mysql_auth_vault_path string Vault path to vtgate credentials JSON blob, e.g.: secret/data/prod/vtgatecreds 115 - --mysql_auth_vault_role_mountpoint string Vault AppRole mountpoint; can also be passed using VAULT_MOUNTPOINT environment variable (default approle) 116 + --mysql_auth_vault_role_mountpoint string Vault AppRole mountpoint; can also be passed using VAULT_MOUNTPOINT environment variable (default "approle") 117 --mysql_auth_vault_role_secretidfile string Path to file containing Vault AppRole secret_id; can also be passed using VAULT_SECRETID environment variable 118 --mysql_auth_vault_roleid string Vault AppRole id; can also be passed using VAULT_ROLEID environment variable 119 --mysql_auth_vault_timeout duration Timeout for vault API operations (default 10s) 120 --mysql_auth_vault_tls_ca string Path to CA PEM for validating Vault server certificate 121 --mysql_auth_vault_tokenfile string Path to file containing Vault auth token; token can also be passed using VAULT_TOKEN environment variable 122 --mysql_auth_vault_ttl duration How long to cache vtgate credentials from the Vault server (default 30m0s) 123 - --mysql_clientcert_auth_method string client-side authentication method to use. Supported values: mysql_clear_password, dialog. (default mysql_clear_password) 124 - --mysql_default_workload string Default session workload (OLTP, OLAP, DBA) (default OLTP) 125 + --mysql_clientcert_auth_method string client-side authentication method to use. Supported values: mysql_clear_password, dialog. (default "mysql_clear_password") 126 + --mysql_default_workload string Default session workload (OLTP, OLAP, DBA) (default "OLTP") 127 --mysql_ldap_auth_config_file string JSON File from which to read LDAP server config. 128 --mysql_ldap_auth_config_string string JSON representation of LDAP server config. 129 - --mysql_ldap_auth_method string client-side authentication method to use. Supported values: mysql_clear_password, dialog. (default mysql_clear_password) 130 + --mysql_ldap_auth_method string client-side authentication method to use. Supported values: mysql_clear_password, dialog. (default "mysql_clear_password") 131 --mysql_server_bind_address string Binds on this address when listening to MySQL binary protocol. Useful to restrict listening to 'localhost' only for instance. 132 --mysql_server_flush_delay duration Delay after which buffered response will be flushed to the client. (default 100ms) 133 --mysql_server_port int If set, also listen for MySQL binary protocol connections on this port. (default -1) 134 - --mysql_server_query_timeout duration mysql query timeout 135 - --mysql_server_read_timeout duration connection read timeout 136 + --mysql_server_query_timeout duration mysql query timeout (default 0s) 137 + --mysql_server_read_timeout duration connection read timeout (default 0s) 138 --mysql_server_require_secure_transport Reject insecure connections but only if mysql_server_ssl_cert and mysql_server_ssl_key are provided 139 --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 140 --mysql_server_ssl_ca string Path to ssl CA for mysql server plugin SSL. If specified, server will require and validate client certs. 141 @@ -113,9 +113,9 @@ Usage of vtgate: 142 --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 143 --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. 144 --mysql_server_version string MySQL server version to advertise. 145 - --mysql_server_write_timeout duration connection write timeout 146 - --mysql_slow_connect_warn_threshold duration Warn if it takes more than the given threshold for a mysql connection to establish 147 - --mysql_tcp_version string Select tcp, tcp4, or tcp6 to control the socket type. (default tcp) 148 + --mysql_server_write_timeout duration connection write timeout (default 0s) 149 + --mysql_slow_connect_warn_threshold duration Warn if it takes more than the given threshold for a mysql connection to establish (default 0s) 150 + --mysql_tcp_version string Select tcp, tcp4, or tcp6 to control the socket type. (default "tcp") 151 --no_scatter when set to true, the planner will fail instead of producing a plan that includes scatter queries 152 --normalize_queries Rewrite queries with bind vars. Turn this off if the app itself sends normalized queries with bind vars. (default true) 153 --onclose_timeout duration wait no more than this for OnClose handlers before stopping (default 1ns) 154 @@ -123,13 +123,13 @@ Usage of vtgate: 155 --opentsdb_uri string URI of opentsdb /api/put method 156 --pid_file string If set, the process will write its pid to the named file, and delete it on graceful shutdown. 157 --planner-version string Sets the default planner to use when the session has not changed it. Valid values are: V3, Gen4, Gen4Greedy and Gen4Fallback. Gen4Fallback tries the gen4 planner and falls back to the V3 planner if the gen4 fails. 158 - --planner_version string Deprecated flag. Use planner-version instead 159 --port int port for the server 160 - --pprof string enable profiling 161 + --pprof strings enable profiling 162 --proxy_protocol Enable HAProxy PROXY protocol on MySQL listener socket 163 --purge_logs_interval duration how often try to remove old logs (default 1h0m0s) 164 + --querylog-buffer-size int Maximum number of buffered query logs before throttling log output (default 10) 165 --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 166 - --querylog-format string format for query logs ("text" or "json") (default text) 167 + --querylog-format string format for query logs ("text" or "json") (default "text") 168 --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. 169 --redact-debug-ui-queries redact full queries and bind variables from debug UI 170 --remote_operation_timeout duration time to wait for a remote operation (default 30s) 171 @@ -137,7 +137,7 @@ Usage of vtgate: 172 --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) 173 --schema_change_signal_user string User to be used to send down query to vttablet to retrieve schema changes 174 --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) 175 - --service_map value comma separated list of services to enable (or disable if prefixed with '-') Example: grpc-vtworker 176 + --service_map strings comma separated list of services to enable (or disable if prefixed with '-') Example: grpc-queryservice 177 --sql-max-length-errors int truncate queries in error logs to the given length (default unlimited) 178 --sql-max-length-ui int truncate queries in debug UIs to the given length (default 512) (default 512) 179 --srv_topo_cache_refresh duration how frequently to refresh the topology for cached entries (default 1s) 180 @@ -145,27 +145,26 @@ Usage of vtgate: 181 --srv_topo_timeout duration topo server timeout (default 5s) 182 --stats_backend string The name of the registered push-based monitoring/stats backend to use 183 --stats_combine_dimensions string List of dimensions to be combined into a single "all" value in exported stats vars 184 - --stats_common_tags string Comma-separated list of common tags for the stats backend. It provides both label and values. Example: label1:value1,label2:value2 185 + --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 186 --stats_drop_variables string Variables to be dropped from the list of exported variables. 187 --stats_emit_period duration Interval between emitting stats to all registered backends (default 1m0s) 188 --statsd_address string Address for statsd client 189 - --statsd_sample_rate float (default 1) 190 - --stderrthreshold value logs at or above this threshold go to stderr (default 1) 191 + --statsd_sample_rate float Sample rate for statsd metrics (default 1) 192 + --stderrthreshold severity logs at or above this threshold go to stderr (default 1) 193 --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) 194 - --tablet_filters value Specifies a comma-separated list of 'keyspace|shard_name or keyrange' values to filter the tablets to watch 195 + --tablet_filters strings Specifies a comma-separated list of 'keyspace|shard_name or keyrange' values to filter the tablets to watch. 196 --tablet_grpc_ca string the server ca to use to validate servers when connecting 197 --tablet_grpc_cert string the cert to use to connect 198 --tablet_grpc_crl string the server crl to use to validate server certificates when connecting 199 --tablet_grpc_key string the key to use to connect 200 --tablet_grpc_server_name string the server name to use to validate server certificate 201 - --tablet_manager_protocol string the protocol to use to talk to vttablet (default grpc) 202 - --tablet_protocol string how to talk to the vttablets (default grpc) 203 - --tablet_refresh_interval duration tablet refresh interval (default 1m0s) 204 - --tablet_refresh_known_tablets tablet refresh reloads the tablet address/port map from topo in case it changes (default true) 205 - --tablet_types_to_wait string wait till connected for specified tablet types during Gateway initialization 206 - --tablet_url_template string format string describing debug tablet url formatting. See the Go code for getTabletDebugURL() how to customize this. (default http://{{.GetTabletHostPort}}) 207 + --tablet_protocol string Protocol to use to make queryservice RPCs to vttablets. (default "grpc") 208 + --tablet_refresh_interval duration Tablet refresh interval. (default 1m0s) 209 + --tablet_refresh_known_tablets Whether to reload the tablet's address/port map from topo in case they change. (default true) 210 + --tablet_types_to_wait strings Wait till connected for specified tablet types during Gateway initialization. Should be provided as a comma-separated set of tablet types. 211 + --tablet_url_template string Format string describing debug tablet url formatting. See getTabletDebugURL() for how to customize this. (default "http://{{.GetTabletHostPort}}") 212 --topo_consul_lock_delay duration LockDelay for consul session. (default 15s) 213 - --topo_consul_lock_session_checks string List of checks for consul session. (default serfHealth) 214 + --topo_consul_lock_session_checks string List of checks for consul session. (default "serfHealth") 215 --topo_consul_lock_session_ttl string TTL for consul session. 216 --topo_consul_watch_poll_duration duration time of the long poll for watch queries. (default 30s) 217 --topo_etcd_lease_ttl int Lease TTL for locks and leader election. The client will use KeepAlive to keep the lease going. (default 30) 218 @@ -178,21 +177,21 @@ Usage of vtgate: 219 --topo_k8s_context string The kubeconfig context to use, overrides the 'current-context' from the config 220 --topo_k8s_kubeconfig string Path to a valid kubeconfig file. When running as a k8s pod inside the same cluster you wish to use as the topo, you may omit this and the below arguments, and Vitess is capable of auto-discovering the correct values. https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod 221 --topo_k8s_namespace string The kubernetes namespace to use for all objects. Default comes from the context or in-cluster config 222 - --topo_read_concurrency int concurrent topo reads (default 32) 223 + --topo_read_concurrency int Concurrency of topo reads. (default 32) 224 --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 225 --topo_zk_base_timeout duration zk base timeout (see zk.Connect) (default 30s) 226 --topo_zk_max_concurrency int maximum number of pending requests to send to a Zookeeper server. (default 64) 227 --topo_zk_tls_ca string the server ca to use to validate servers when connecting to the zk topo server 228 --topo_zk_tls_cert string the cert to use to connect to the zk topo server, requires topo_zk_tls_key, enables TLS 229 --topo_zk_tls_key string the key to use to connect to the zk topo server, enables TLS 230 - --tracer string tracing service to use (default noop) 231 + --tracer string tracing service to use (default "noop") 232 --tracing-enable-logging whether to enable logging in the tracing service 233 - --tracing-sampling-rate value sampling rate for the probabilistic jaeger sampler (default 0.1) 234 - --tracing-sampling-type value sampling strategy to use for jaeger. possible values are 'const', 'probabilistic', 'rateLimiting', or 'remote' (default const) 235 - --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) 236 - --v value log level for V logs 237 - --version print binary version 238 - --vmodule value comma-separated list of pattern=N settings for file-filtered logging 239 + --tracing-sampling-rate float sampling rate for the probabilistic jaeger sampler (default 0.1) 240 + --tracing-sampling-type string sampling strategy to use for jaeger. possible values are 'const', 'probabilistic', 'rateLimiting', or 'remote' (default "const") 241 + --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") 242 + --v Level log level for V logs 243 + -v, --version print binary version 244 + --vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging 245 --vschema_ddl_authorized_users string List of users authorized to execute vschema ddl operations, or '%' to allow all users. 246 --vtctld_addr string address of a vtctld instance 247 --vtgate-config-terse-errors prevent bind vars from escaping in returned errors