github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/deploy/apecloud-mysql/config/mysql-scale-vtconsensus-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 #VtConsensusParameter: { 19 20 // Enable or disable logs. (default true) 21 enable_logs: bool 22 23 // Refresh interval to load tablets. (default 10s) 24 refresh_interval: =~"[-+]?([0-9]*(\\.[0-9]*)?[a-z]+)+$" 25 26 // Time to wait for a diagnose and repair operation. (default 3s) 27 scan_repair_timeout: =~"[-+]?([0-9]*(\\.[0-9]*)?[a-z]+)+$" 28 29 ... 30 } 31 32 // SectionName is section name 33 [SectionName=_]: #VtConsensusParameter