Skip to content

Commit 056afc9

Browse files
Move concurrent connection dial limit out of healthcheck. (#16378)
Signed-off-by: Arthur Schreiber <[email protected]>
1 parent 45462ca commit 056afc9

File tree

13 files changed

+78
-43
lines changed

13 files changed

+78
-43
lines changed

go/flags/endtoend/mysqlctld.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Flags:
6161
--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.
6262
--dba_idle_timeout duration Idle timeout for dba connections (default 1m0s)
6363
--dba_pool_size int Size of the connection pool for dba connections (default 20)
64+
--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)
6465
--grpc_auth_mode string Which auth plugin implementation to use (eg: static)
6566
--grpc_auth_mtls_allowed_substrings string List of substrings of at least one of the client certificate names (separated by colon).
6667
--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.

go/flags/endtoend/vtbackup.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ Flags:
128128
--file_backup_storage_root string Root directory for the file backup storage.
129129
--gcs_backup_storage_bucket string Google Cloud Storage bucket to use for backups.
130130
--gcs_backup_storage_root string Root prefix for all backup-related object names.
131+
--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)
131132
--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.
132133
--grpc_compression string Which protocol to use for compressing gRPC. Default: nothing. Supported: snappy
133134
--grpc_enable_tracing Enable gRPC tracing.

go/flags/endtoend/vtcombo.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ Flags:
167167
--grpc_server_keepalive_timeout duration After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen even after that the connection is closed. (default 10s)
168168
--grpc_use_effective_callerid If set, and SSL is not used, will set the immediate caller id from the effective caller id's principal.
169169
--health_check_interval duration Interval between health checks (default 20s)
170-
--healthcheck-dial-concurrency int Maximum concurrency of new healthcheck connections. This should be less than the golang max thread limit of 10000. (default 1024)
171170
--healthcheck_retry_delay duration health check retry delay (default 2ms)
172171
--healthcheck_timeout duration the health check timeout period (default 1m0s)
173172
--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.

go/flags/endtoend/vtctlclient.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Usage of vtctlclient:
99
--config-type string Config file type (omit to infer config type from file extension).
1010
--datadog-agent-host string host to send spans to. if empty, no tracing will be done
1111
--datadog-agent-port string port to send spans to. if empty, no tracing will be done
12+
--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)
1213
--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.
1314
--grpc_compression string Which protocol to use for compressing gRPC. Default: nothing. Supported: snappy
1415
--grpc_enable_tracing Enable gRPC tracing.

go/flags/endtoend/vtctld.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Flags:
5757
--file_backup_storage_root string Root directory for the file backup storage.
5858
--gcs_backup_storage_bucket string Google Cloud Storage bucket to use for backups.
5959
--gcs_backup_storage_root string Root prefix for all backup-related object names.
60+
--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)
6061
--grpc_auth_mode string Which auth plugin implementation to use (eg: static)
6162
--grpc_auth_mtls_allowed_substrings string List of substrings of at least one of the client certificate names (separated by colon).
6263
--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.
@@ -85,7 +86,6 @@ Flags:
8586
--grpc_server_keepalive_enforcement_policy_permit_without_stream gRPC server permit client keepalive pings even when there are no active streams (RPCs)
8687
--grpc_server_keepalive_time duration After a duration of this time, if the server doesn't see any activity, it pings the client to see if the transport is still alive. (default 10s)
8788
--grpc_server_keepalive_timeout duration After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen even after that the connection is closed. (default 10s)
88-
--healthcheck-dial-concurrency int Maximum concurrency of new healthcheck connections. This should be less than the golang max thread limit of 10000. (default 1024)
8989
-h, --help help for vtctld
9090
--jaeger-agent-host string host and port to send spans to. if empty, no tracing will be done
9191
--keep_logs duration keep logs for this long (using ctime) (zero to keep forever)

go/flags/endtoend/vtgate.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ Flags:
6767
--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")
6868
--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)
6969
--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)
70+
--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)
7071
--grpc-send-session-in-streaming If set, will send the session as last packet in streaming api to support transactions in streaming
7172
--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.
7273
--grpc-use-static-authentication-callerid If set, will set the immediate caller id to the username authenticated by the static auth plugin.
@@ -99,7 +100,6 @@ Flags:
99100
--grpc_server_keepalive_time duration After a duration of this time, if the server doesn't see any activity, it pings the client to see if the transport is still alive. (default 10s)
100101
--grpc_server_keepalive_timeout duration After having pinged for keepalive check, the server waits for a duration of Timeout and if no activity is seen even after that the connection is closed. (default 10s)
101102
--grpc_use_effective_callerid If set, and SSL is not used, will set the immediate caller id from the effective caller id's principal.
102-
--healthcheck-dial-concurrency int Maximum concurrency of new healthcheck connections. This should be less than the golang max thread limit of 10000. (default 1024)
103103
--healthcheck_retry_delay duration health check retry delay (default 2ms)
104104
--healthcheck_timeout duration the health check timeout period (default 1m0s)
105105
-h, --help help for vtgate

go/flags/endtoend/vtgateclienttest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Flags:
1414
--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)
1515
--config-type string Config file type (omit to infer config type from file extension).
1616
--default_tablet_type topodatapb.TabletType The default tablet type to set for queries, when one is not explicitly selected. (default PRIMARY)
17+
--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)
1718
--grpc_auth_mode string Which auth plugin implementation to use (eg: static)
1819
--grpc_auth_mtls_allowed_substrings string List of substrings of at least one of the client certificate names (separated by colon).
1920
--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.

go/flags/endtoend/vtorc.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ Flags:
3434
--config-type string Config file type (omit to infer config type from file extension).
3535
--consul_auth_static_file string JSON File to read the topos/tokens from.
3636
--emit_stats If set, emit stats to push-based monitoring and stats backends
37+
--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)
3738
--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.
3839
--grpc_compression string Which protocol to use for compressing gRPC. Default: nothing. Supported: snappy
3940
--grpc_enable_tracing Enable gRPC tracing.

go/flags/endtoend/vttablet.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ Flags:
166166
--gcs_backup_storage_bucket string Google Cloud Storage bucket to use for backups.
167167
--gcs_backup_storage_root string Root prefix for all backup-related object names.
168168
--gh-ost-path string override default gh-ost binary full path (default "gh-ost")
169+
--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)
169170
--grpc_auth_mode string Which auth plugin implementation to use (eg: static)
170171
--grpc_auth_mtls_allowed_substrings string List of substrings of at least one of the client certificate names (separated by colon).
171172
--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.

go/flags/endtoend/vttestserver.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Flags:
4343
--external_topo_implementation string the topology implementation to use for vtcombo process
4444
--extra_my_cnf string extra files to add to the config, separated by ':'
4545
--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+
--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)
4647
--grpc_auth_mode string Which auth plugin implementation to use (eg: static)
4748
--grpc_auth_mtls_allowed_substrings string List of substrings of at least one of the client certificate names (separated by colon).
4849
--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.

0 commit comments

Comments
 (0)