github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/apecloud-mysql/config/mysql-scale-vttablet-config-constraint.cue (about) 1 //Copyright (C) 2022-2023 ApeCloud Co., Ltd 2 // 3 //This file is part of KubeBlocks project 4 // 5 //This program is free software: you can redistribute it and/or modify 6 //it under the terms of the GNU Affero General Public License as published by 7 //the Free Software Foundation, either version 3 of the License, or 8 //(at your option) any later version. 9 // 10 //This program is distributed in the hope that it will be useful 11 //but WITHOUT ANY WARRANTY; without even the implied warranty of 12 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 //GNU Affero General Public License for more details. 14 // 15 //You should have received a copy of the GNU Affero General Public License 16 //along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 #VtTabletParameter: { 19 20 // Connection timeout to mysqld in milliseconds. (0 for no timeout, default 500) 21 db_connect_timeout_ms: int & >=0 22 23 // Enable or disable logs. (default true) 24 enable_logs: bool 25 26 // Enable or disable query log. (default true) 27 enable_query_log: bool 28 29 // Interval between health checks. (default 20s) 30 health_check_interval: =~"[-+]?([0-9]*(\\.[0-9]*)?[a-z]+)+$" 31 32 // Time to wait for a remote operation. (default 15s) 33 remote_operation_timeout: =~"[-+]?([0-9]*(\\.[0-9]*)?[a-z]+)+$" 34 35 // Delay between retries of updates to keep the tablet and its shard record in sync. (default 30s) 36 shard_sync_retry_delay: =~"[-+]?([0-9]*(\\.[0-9]*)?[a-z]+)+$" 37 38 // Table acl config mode. Valid values are: simple, mysqlbased. (default simple) 39 table_acl_config_mode: string & "simple" | "mysqlbased" 40 41 // path to table access checker config file (json file); 42 table_acl_config: string 43 44 // Ticker to reload ACLs. Duration flag, format e.g.: 30s. Default: 30s 45 table_acl_config_reload_interval: =~"[-+]?([0-9]*(\\.[0-9]*)?[a-z]+)+$" 46 47 // only allow queries that pass table acl checks if true 48 queryserver_config_strict_table_acl: bool 49 50 // if this flag is true, vttablet will fail to start if a valid tableacl config does not exist 51 enforce_tableacl_config: bool 52 53 // query server read pool size, connection pool is used by regular queries (non streaming, not in a transaction) 54 queryserver_config_pool_size: int & >=0 55 56 // query server stream connection pool size, stream pool is used by stream queries: queries that return results to client in a streaming fashion 57 queryserver_config_stream_pool_size: int & >=0 58 59 // 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) 60 queryserver_config_transaction_cap: int & >=0 61 62 ... 63 } 64 65 // SectionName is section name 66 [SectionName=_]: #VtTabletParameter