Documentation ¶
Index ¶
Constants ¶
const ( OOMActionCancel = "cancel" OOMActionLog = "log" )
The following constants represents the valid action configurations for OOMAction. NOTE: Althrough the values is case insensitiv, we should use lower-case strings because the configuration value will be transformed to lower-case string and compared with these constants in the further usage.
const (
MaxLogFileSize = 4096 // MB
)
Config number limitations
Variables ¶
var ( ValidStorage = map[string]bool{ "mocktikv": true, "tikv": true, } // checkTableBeforeDrop enable to execute `admin check table` before `drop table`. CheckTableBeforeDrop = false )
Valid config maps
Functions ¶
This section is empty.
Types ¶
type Binlog ¶
type Binlog struct { BinlogSocket string `toml:"binlog-socket" json:"binlog-socket"` WriteTimeout string `toml:"write-timeout" json:"write-timeout"` // If IgnoreError is true, when writing binlog meets error, TiDB would // ignore the error. IgnoreError bool `toml:"ignore-error" json:"ignore-error"` }
Binlog is the config for binlog.
type Config ¶
type Config struct { Host string `toml:"host" json:"host"` AdvertiseAddress string `toml:"advertise-address" json:"advertise-address"` Port uint `toml:"port" json:"port"` Store string `toml:"store" json:"store"` Path string `toml:"path" json:"path"` Socket string `toml:"socket" json:"socket"` Lease string `toml:"lease" json:"lease"` RunDDL bool `toml:"run-ddl" json:"run-ddl"` SplitTable bool `toml:"split-table" json:"split-table"` TokenLimit uint `toml:"token-limit" json:"token-limit"` OOMAction string `toml:"oom-action" json:"oom-action"` MemQuotaQuery int64 `toml:"mem-quota-query" json:"mem-quota-query"` EnableStreaming bool `toml:"enable-streaming" json:"enable-streaming"` TxnLocalLatches TxnLocalLatches `toml:"txn-local-latches" json:"txn-local-latches"` // Set sys variable lower-case-table-names, ref: https://dev.mysql.com/doc/refman/5.7/en/identifier-case-sensitivity.html. // TODO: We actually only support mode 2, which keeps the original case, but the comparison is case-insensitive. LowerCaseTableNames int `toml:"lower-case-table-names" json:"lower-case-table-names"` Log Log `toml:"log" json:"log"` Security Security `toml:"security" json:"security"` Status Status `toml:"status" json:"status"` Performance Performance `toml:"performance" json:"performance"` XProtocol XProtocol `toml:"xprotocol" json:"xprotocol"` PreparedPlanCache PreparedPlanCache `toml:"prepared-plan-cache" json:"prepared-plan-cache"` OpenTracing OpenTracing `toml:"opentracing" json:"opentracing"` ProxyProtocol ProxyProtocol `toml:"proxy-protocol" json:"proxy-protocol"` TiKVClient TiKVClient `toml:"tikv-client" json:"tikv-client"` Binlog Binlog `toml:"binlog" json:"binlog"` Inc Inc `toml:"inc" json:"inc"` Osc Osc `toml:"osc" json:"osc"` Ghost Ghost `toml:"ghost" json:"ghost"` CompatibleKillQuery bool `toml:"compatible-kill-query" json:"compatible-kill-query"` }
Config contains configuration options.
func GetGlobalConfig ¶
func GetGlobalConfig() *Config
GetGlobalConfig returns the global configuration for this server. It should store configuration from command line and configuration file. Other parts of the system can read the global configuration use this function.
type Ghost ¶
type Ghost struct { // 阿里云数据库 GhostAliyunRds bool `toml:"ghost_aliyun_rds"` // 允许gh-ost运行在双主复制架构中,一般与-assume-master-host参数一起使用。 GhostAllowMasterMaster bool `toml:"ghost_allow_master_master"` // 允许gh-ost在数据迁移(migrate)依赖的唯一键可以为NULL,默认为不允许为NULL的唯一键。如果数据迁移(migrate)依赖的唯一键允许NULL值,则可能造成数据不正确,请谨慎使用。 GhostAllowNullableUniqueKey bool `toml:"ghost_allow_nullable_unique_key"` // 允许gh-ost直接运行在主库上。默认gh-ost连接的从库。 GhostAllowOnMaster bool `toml:"ghost_allow_on_master"` // ALTER语句的body部分 GhostAlter string `toml:"ghost_alter"` // 如果你修改一个列的名字(如change column),gh-ost将会识别到并且需要提供重命名列名的原因,默认情况下gh-ost是不继续执行的,除非提供-approve-renamed-columns ALTER。 // ALTER GhostApproveRenamedColumns bool `toml:"ghost_approve_renamed_columns"` // 为gh-ost指定一个主库,格式为"ip:port"或者"hostname:port"。默认推荐gh-ost连接从库。 GhostAssumeMasterHost string `toml:"ghost_assume_master_host"` // 确认gh-ost连接的数据库实例的binlog_format=ROW的情况下,可以指定-assume-rbr, // 这样可以禁止从库上运行stop slave,start slave,执行gh-ost用户也不需要SUPER权限。 GhostAssumeRbr bool `toml:"ghost_assume_rbr"` // 该参数如果为True(默认值),则进行row-copy之后,估算统计行数(使用explain select count(*)方式), // 并调整ETA时间,否则,gh-ost首先预估统计行数,然后开始row-copy。 GhostConcurrentRowcount bool `toml:"ghost_concurrent_rowcount"` // 一系列逗号分隔的status-name=values组成,当MySQL中status超过对应的values,gh-ost将会退出 // e.g: // -critical-load Threads_connected=20,Connections=1500 // 指的是当MySQL中的状态值Threads_connected>20,Connections>1500的时候,gh-ost将会由于该数据库严重负载而停止并退出。 GhostCriticalLoad string `toml:"ghost_critical_load"` // 当值为0时,当达到-critical-load,gh-ost立即退出。当值不为0时,当达到-critical-load, // gh-ost会在-critical-load-interval-millis秒数后,再次进行检查,再次检查依旧达到-critical-load,gh-ost将会退出。 GhostCriticalLoadIntervalMillis int64 `toml:"ghost_critical_load_interval_millis"` GhostCriticalLoadHibernateSeconds int64 `toml:"ghost_critical_load_hibernate_seconds"` // 选择cut-over类型:atomic/two-step,atomic(默认)类型的cut-over是github的算法,two-step采用的是facebook-OSC的算法。 GhostCutOver string `toml:"ghost_cut_over"` GhostCutOverExponentialBackoff bool `toml:"ghost_cut_over_exponential_backoff"` // 在每次迭代中处理的行数量(允许范围:100-100000),默认值为1000。 GhostChunkSize int64 `toml:"ghost_chunk_size"` // gh-ost在cut-over阶段最大的锁等待时间,当锁超时时,gh-ost的cut-over将重试。(默认值:3) GhostCutOverLockTimeoutSeconds int64 `toml:"ghost_cut_over_lock_timeout_seconds"` // 很危险的参数,慎用! // 该参数针对一个有外键的表,在gh-ost创建ghost表时,并不会为ghost表创建外键。该参数很适合用于删除外键,除此之外,请谨慎使用。 GhostDiscardForeignKeys bool `toml:"ghost_discard_foreign_keys"` // 各种操作在panick前重试次数。(默认为60) GhostDefaultRetries int64 `toml:"ghost_default_retries"` GhostDmlBatchSize int64 `toml:"ghost_dml_batch_size"` // 准确统计表行数(使用select count(*)的方式),得到更准确的预估时间。 GhostExactRowcount bool `toml:"ghost_exact_rowcount"` // 实际执行alter&migrate表,默认为不执行,仅仅做测试并退出,如果想要ALTER TABLE语句真正落实到数据库中去,需要明确指定-execute GhostExecute bool `toml:"ghost_execute"` GhostExponentialBackoffMaxInterval int64 `toml:"ghost_exponential_backoff_max_interval"` // When true, the 'unpostpone|cut-over' interactive command must name the migrated table。 GhostForceTableNames string `toml:"ghost_force_table_names"` GhostForceNamedCutOver bool `toml:"ghost_force_named_cut_over"` GhostGcp bool `toml:"ghost_gcp"` // gh-ost心跳频率值,默认为500。 GhostHeartbeatIntervalMillis int64 `toml:"ghost_heartbeat_interval_millis"` // gh-ost操作之前,检查并删除已经存在的ghost表。该参数不建议使用,请手动处理原来存在的ghost表。默认不启用该参数,gh-ost直接退出操作。 GhostInitiallyDropGhostTable bool `toml:"ghost_initially_drop_ghost_table"` // gh-ost操作之前,检查并删除已经存在的旧表。该参数不建议使用,请手动处理原来存在的ghost表。默认不启用该参数,gh-ost直接退出操作。 GhostInitiallyDropOldTable bool `toml:"ghost_initially_drop_old_table"` // gh-ost强制删除已经存在的socket文件。该参数不建议使用,可能会删除一个正在运行的gh-ost程序,导致DDL失败。 GhostInitiallyDropSocketFile bool `toml:"ghost_initially_drop_socket_file"` // 主从复制最大延迟时间,当主从复制延迟时间超过该值后,gh-ost将采取节流(throttle)措施,默认值:1500s。 GhostMaxLagMillis int64 `toml:"ghost_max_lag_millis"` // 一系列逗号分隔的status-name=values组成,当MySQL中status超过对应的values,gh-ost将采取节流(throttle)措施。 // e.g: // -max-load Threads_connected=20,Connections=1500 // 指的是当MySQL中的状态值Threads_connected>20,Connections>1500的时候,gh-ost将采取节流(throttle)措施。 GhostMaxLoad string `toml:"ghost_max_load"` GhostNiceRatio float64 `toml:"ghost_nice_ratio"` // 开启标志 GhostOn bool `toml:"ghost_on"` // 当这个文件存在的时候,gh-ost的cut-over阶段将会被推迟,直到该文件被删除。 GhostPostponeCutOverFlagFile string `toml:"ghost_postpone_cut_over_flag_file"` GhostPanicFlagFile string `toml:"ghost_panic_flag_file"` GhostReplicaServerID bool `toml:"ghost_replica_server_id"` GhostSkipForeignKeyChecks bool `toml:"ghost_skip_foreign_key_checks"` // 列出所有需要被检查主从复制延迟的从库。 // e.g: // -throttle-control-replica=192.16.12.22:3306,192.16.12.23:3307,192.16.13.12:3308 GhostThrottleControlReplicas string `toml:"ghost_throttle_control_replicas"` GhostThrottleHTTP string `toml:"ghost_throttle_http"` GhostTimestampOldTable bool `toml:"ghost_timestamp_old_table"` GhostThrottleQuery string `toml:"ghost_throttle_query"` GhostThrottleFlagFile string `toml:"ghost_throttle_flag_file"` GhostThrottleAdditionalFlagFile string `toml:"ghost_throttle_additional_flag_file"` // 告诉gh-ost你正在运行的是一个tungsten-replication拓扑结构。 GhostTungsten bool `toml:"ghost_tungsten"` GhostReplicationLagQuery string `toml:"ghost_replication_lag_query"` }
GhOst online schema change 工具参数配置
type Inc ¶
type Inc struct { BackupHost string `toml:"backup_host" json:"backup_host"` // 远程备份库信息 BackupPassword string `toml:"backup_password" json:"backup_password"` BackupPort uint `toml:"backup_port" json:"backup_port"` BackupUser string `toml:"backup_user" json:"backup_user"` CheckAutoIncrementDataType bool `toml:"check_autoincrement_datatype" json:"check_autoincrement_datatype"` CheckAutoIncrementInitValue bool `toml:"check_autoincrement_init_value" json:"check_autoincrement_init_value"` CheckAutoIncrementName bool `toml:"check_autoincrement_name" json:"check_autoincrement_name"` CheckColumnComment bool `toml:"check_column_comment" json:"check_column_comment"` CheckColumnDefaultValue bool `toml:"check_column_default_value" json:"check_column_default_value"` CheckDMLLimit bool `toml:"check_dml_limit" json:"check_dml_limit"` CheckDMLOrderBy bool `toml:"check_dml_orderby" json:"check_dml_orderby"` CheckDMLWhere bool `toml:"check_dml_where" json:"check_dml_where"` CheckIdentifier bool `toml:"check_identifier" json:"check_identifier"` CheckIndexPrefix bool `toml:"check_index_prefix" json:"check_index_prefix"` CheckInsertField bool `toml:"check_insert_field" json:"check_insert_field"` CheckPrimaryKey bool `toml:"check_primary_key" json:"check_primary_key"` CheckTableComment bool `toml:"check_table_comment" json:"check_table_comment"` CheckTimestampDefault bool `toml:"check_timestamp_default" json:"check_timestamp_default"` EnableAutoIncrementUnsigned bool `toml:"enable_autoincrement_unsigned" json:"enable_autoincrement_unsigned"` EnableBlobType bool `toml:"enable_blob_type" json:"enable_blob_type"` EnableColumnCharset bool `toml:"enable_column_charset" json:"enable_column_charset"` EnableDropTable bool `toml:"enable_drop_table" json:"enable_drop_table"` // 允许删除表 EnableEnumSetBit bool `toml:"enable_enum_set_bit" json:"enable_enum_set_bit"` EnableForeignKey bool `toml:"enable_foreign_key" json:"enable_foreign_key"` EnableIdentiferKeyword bool `toml:"enable_identifer_keyword" json:"enable_identifer_keyword"` EnableNotInnodb bool `toml:"enable_not_innodb" json:"enable_not_innodb"` EnableNullable bool `toml:"enable_nullable" json:"enable_nullable"` // 允许空列 EnableOrderByRand bool `toml:"enable_orderby_rand" json:"enable_orderby_rand"` EnablePartitionTable bool `toml:"enable_partition_table" json:"enable_partition_table"` EnablePKColumnsOnlyInt bool `toml:"enable_pk_columns_only_int" json:"enable_pk_columns_only_int"` EnableSelectStar bool `toml:"enable_select_star" json:"enable_select_star"` // 是否允许设置字符集和排序规则 EnableSetCharset bool `toml:"enable_set_charset" json:"enable_set_charset"` MaxCharLength uint `toml:"max_char_length" json:"max_char_length"` MaxKeys uint `toml:"max_keys" json:"max_keys"` MaxKeyParts uint `toml:"max_key_parts" json:"max_key_parts"` MaxUpdateRows uint `toml:"max_update_rows" json:"max_update_rows"` MaxPrimaryKeyParts uint `toml:"max_primary_key_parts" json:"max_primary_key_parts"` // 主键最多允许有几列组合 MergeAlterTable bool `toml:"merge_alter_table" json:"merge_alter_table"` // 安全更新是否开启. // -1 表示不做操作,基于远端数据库 [默认值] // 0 表示关闭安全更新 // 1 表示开启安全更新 SqlSafeUpdates int `toml:"sql_safe_updates" json:"sql_safe_updates"` // 支持的字符集 SupportCharset string `toml:"support_charset" json:"support_charset"` }
Inc is the inception section of the config.
type Log ¶
type Log struct { // Log level. Level string `toml:"level" json:"level"` // Log format. one of json, text, or console. Format string `toml:"format" json:"format"` // Disable automatic timestamps in output. DisableTimestamp bool `toml:"disable-timestamp" json:"disable-timestamp"` // File log config. File logutil.FileLogConfig `toml:"file" json:"file"` SlowQueryFile string `toml:"slow-query-file" json:"slow-query-file"` SlowThreshold uint `toml:"slow-threshold" json:"slow-threshold"` ExpensiveThreshold uint `toml:"expensive-threshold" json:"expensive-threshold"` QueryLogMaxLen uint `toml:"query-log-max-len" json:"query-log-max-len"` }
Log is the log section of config.
func (*Log) ToLogConfig ¶
ToLogConfig converts *Log to *logutil.LogConfig.
type OpenTracing ¶
type OpenTracing struct { Enable bool `toml:"enable" json:"enbale"` Sampler OpenTracingSampler `toml:"sampler" json:"sampler"` Reporter OpenTracingReporter `toml:"reporter" json:"reporter"` RPCMetrics bool `toml:"rpc-metrics" json:"rpc-metrics"` }
OpenTracing is the opentracing section of the config.
func (*OpenTracing) ToTracingConfig ¶
func (t *OpenTracing) ToTracingConfig() *tracing.Configuration
ToTracingConfig converts *OpenTracing to *tracing.Configuration.
type OpenTracingReporter ¶
type OpenTracingReporter struct { QueueSize int `toml:"queue-size" json:"queue-size"` BufferFlushInterval time.Duration `toml:"buffer-flush-interval" json:"buffer-flush-interval"` LogSpans bool `toml:"log-spans" json:"log-spans"` LocalAgentHostPort string `toml:"local-agent-host-port" json:"local-agent-host-port"` }
OpenTracingReporter is the config for opentracing reporter. See https://godoc.org/github.com/uber/jaeger-client-go/config#ReporterConfig
type OpenTracingSampler ¶
type OpenTracingSampler struct { Type string `toml:"type" json:"type"` Param float64 `toml:"param" json:"param"` SamplingServerURL string `toml:"sampling-server-url" json:"sampling-server-url"` MaxOperations int `toml:"max-operations" json:"max-operations"` SamplingRefreshInterval time.Duration `toml:"sampling-refresh-interval" json:"sampling-refresh-interval"` }
OpenTracingSampler is the config for opentracing sampler. See https://godoc.org/github.com/uber/jaeger-client-go/config#SamplerConfig
type Osc ¶
type Osc struct { // 用来设置在arkit返回结果集中,对于原来OSC在执行过程的标准输出信息是不是要打印到结果集对应的错误信息列中, // 如果设置为1,就不打印,如果设置为0,就打印。而如果出现了错误,则都会打印。默认值:OFF OscPrintNone bool `toml:"osc_print_none" json:"osc_print_none"` // 对应参数pt-online-schema-change中的参数--print。默认值:OFF OscPrintSql bool `toml:"osc_print_sql" json:"osc_print_sql"` // 全局的OSC开关,默认是打开的,如果想要关闭则设置为OFF,这样就会直接修改。默认值:OFF OscOn bool `toml:"osc_on" json:"osc_on"` // 这个参数实际上是一个OSC开关,如果设置为0,则全部ALTER语句都使用OSC方式, // 如果设置为非0,则当这个表占用空间大小大于这个值时才使用OSC方式。 // 单位为M,这个表大小的计算方式是通过语句 // select (DATA_LENGTH + INDEX_LENGTH)/1024/1024 from information_schema.tables // where table_schema = 'dbname' and table_name = 'tablename' 来实现的。默认值:16 // [0-1048576] OscMinTableSize uint `toml:"osc_min_table_size" json:"osc_min_table_size"` // 对应参数pt-online-schema-change中的参数alter-foreign-keys-method,具体意义可以参考OSC官方手册。默认值:none // [auto | none | rebuild_constraints | drop_swap] OscAlterForeignKeysMethod string `toml:"osc_alter_foreign_keys_method" json:"osc_alter_foreign_keys_method"` // 对应参数pt-online-schema-change中的参数recursion_method,具体意义可以参考OSC官方手册。默认值:processlist // [processlist | hosts | none] OscRecursionMethod string `toml:"osc_recursion_method" json:"osc_recursion_method"` // 对应参数pt-online-schema-change中的参数--max-lag。默认值:3 OscMaxLag int `toml:"osc_max_lag" json:"osc_max_lag"` // 对应参数pt-online-schema-change中的参数--[no]check-alter。默认值:ON OscCheckAlter bool `toml:"osc_check_alter" json:"osc_check_alter"` // 对应参数pt-online-schema-change中的参数--[no]check-replication-filters。默认值:ON OscCheckReplicationFilters bool `toml:"osc_check_replication_filters" json:"osc_check_replication_filters"` // 对应参数pt-online-schema-change中的参数--[no]drop-old-table。默认值:ON OscDropOldTable bool `toml:"osc_drop_old_table" json:"osc_drop_old_table"` // 对应参数pt-online-schema-change中的参数--[no]drop-new-table。默认值:ON OscDropNewTable bool `toml:"osc_drop_new_table" json:"osc_drop_new_table"` // 对应参数pt-online-schema-change中的参数--max-load中的thread_running部分。默认值:80 OscMaxRunning int `toml:"osc_max_running" json:"osc_max_running"` // 对应参数pt-online-schema-change中的参数--max-load中的thread_connected部分。默认值:1000 OscMaxConnected int `toml:"osc_max_connected" json:"osc_max_connected"` // 对应参数pt-online-schema-change中的参数--critical-load中的thread_running部分。默认值:80 OscCriticalRunning int `toml:"osc_critical_running" json:"osc_critical_running"` // 对应参数pt-online-schema-change中的参数--critical-load中的thread_connected部分。默认值:1000 OscCriticalConnected int `toml:"osc_critical_connected" json:"osc_critical_connected"` // 对应参数pt-online-schema-change中的参数--chunk-time。默认值:1 OscChunkTime float32 `toml:"osc_chunk_time" json:"osc_chunk_time"` // 对应参数pt-online-schema-change中的参数--chunk-size-limit。默认值:4 OscChunkSizeLimit int `toml:"osc_chunk_size_limit" json:"osc_chunk_size_limit"` // 对应参数pt-online-schema-change中的参数--chunk-size。默认值:4 OscChunkSize int `toml:"osc_chunk_size" json:"osc_chunk_size"` // 对应参数pt-online-schema-change中的参数--check-interval,意义是Sleep time between checks for --max-lag。默认值:5 OscCheckInterval int `toml:"osc_check_interval" json:"osc_check_interval"` OscBinDir string `toml:"osc_bin_dir" json:"osc_bin_dir"` }
Osc online schema change 工具参数配置
type Performance ¶
type Performance struct { MaxProcs uint `toml:"max-procs" json:"max-procs"` TCPKeepAlive bool `toml:"tcp-keep-alive" json:"tcp-keep-alive"` CrossJoin bool `toml:"cross-join" json:"cross-join"` StatsLease string `toml:"stats-lease" json:"stats-lease"` RunAutoAnalyze bool `toml:"run-auto-analyze" json:"run-auto-analyze"` StmtCountLimit uint `toml:"stmt-count-limit" json:"stmt-count-limit"` FeedbackProbability float64 `toml:"feedback-probability" json:"feedback-probability"` QueryFeedbackLimit uint `toml:"query-feedback-limit" json:"query-feedback-limit"` PseudoEstimateRatio float64 `toml:"pseudo-estimate-ratio" json:"pseudo-estimate-ratio"` ForcePriority string `toml:"force-priority" json:"force-priority"` }
Performance is the performance section of the config.
type PlanCache ¶
type PlanCache struct { Enabled bool `toml:"enabled" json:"enabled"` Capacity uint `toml:"capacity" json:"capacity"` Shards uint `toml:"shards" json:"shards"` }
PlanCache is the PlanCache section of the config.
type PreparedPlanCache ¶
type PreparedPlanCache struct { Enabled bool `toml:"enabled" json:"enabled"` Capacity uint `toml:"capacity" json:"capacity"` }
PreparedPlanCache is the PreparedPlanCache section of the config.
type ProxyProtocol ¶
type ProxyProtocol struct { // PROXY protocol acceptable client networks. // Empty string means disable PROXY protocol, // * means all networks. Networks string `toml:"networks" json:"networks"` // PROXY protocol header read timeout, Unit is second. HeaderTimeout uint `toml:"header-timeout" json:"header-timeout"` }
ProxyProtocol is the PROXY protocol section of the config.
type Security ¶
type Security struct { SkipGrantTable bool `toml:"skip-grant-table" json:"skip-grant-table"` SSLCA string `toml:"ssl-ca" json:"ssl-ca"` SSLCert string `toml:"ssl-cert" json:"ssl-cert"` SSLKey string `toml:"ssl-key" json:"ssl-key"` ClusterSSLCA string `toml:"cluster-ssl-ca" json:"cluster-ssl-ca"` ClusterSSLCert string `toml:"cluster-ssl-cert" json:"cluster-ssl-cert"` ClusterSSLKey string `toml:"cluster-ssl-key" json:"cluster-ssl-key"` }
Security is the security section of the config.
type Status ¶
type Status struct { ReportStatus bool `toml:"report-status" json:"report-status"` StatusPort uint `toml:"status-port" json:"status-port"` MetricsAddr string `toml:"metrics-addr" json:"metrics-addr"` MetricsInterval uint `toml:"metrics-interval" json:"metrics-interval"` }
Status is the status section of the config.
type TiKVClient ¶
type TiKVClient struct { // GrpcConnectionCount is the max gRPC connections that will be established // with each tikv-server. GrpcConnectionCount uint `toml:"grpc-connection-count" json:"grpc-connection-count"` // After a duration of this time in seconds if the client doesn't see any activity it pings // the server to see if the transport is still alive. GrpcKeepAliveTime uint `toml:"grpc-keepalive-time" json:"grpc-keepalive-time"` // After having pinged for keepalive check, the client waits for a duration of Timeout in seconds // and if no activity is seen even after that the connection is closed. GrpcKeepAliveTimeout uint `toml:"grpc-keepalive-timeout" json:"grpc-keepalive-timeout"` // CommitTimeout is the max time which command 'commit' will wait. CommitTimeout string `toml:"commit-timeout" json:"commit-timeout"` }
TiKVClient is the config for tikv client.
type TxnLocalLatches ¶
type TxnLocalLatches struct { Enabled bool `toml:"enabled" json:"enabled"` Capacity uint `toml:"capacity" json:"capacity"` }
TxnLocalLatches is the TxnLocalLatches section of the config.