cmc-web/webs/cop-web/backup/mysql.json

96 lines
2.8 KiB
JSON
Raw Normal View History

2024-08-20 12:11:31 +00:00
{
2024-08-21 01:17:14 +00:00
"limits": {
"cluster": {
"limits": "^[357]$",
"limits_message": "主机数量必须为3、5或者7"
},
"standalone": {
"limits": "^[1-9][0-9]*$$",
"limits_message": "主机数量必须大于等于1"
}
},
"deploy": {
"standalone": {
"icon": "mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^[1-9][0-9]*$",
"limits_message": "主机数量必须大于等于1"
},
"cluster": {
"icon": "mysql-cluster",
"msv": [
{
"role": "mysql_master",
"name": "主节点(1)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^1$",
"limits_message": "主节点主机数量必须为1"
2024-08-20 12:11:31 +00:00
},
2024-08-21 01:17:14 +00:00
{
"role": "mysql_slave",
"name": "从节点(1)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^1$",
"limits_message": "从节点主机数量必须为1"
2024-08-20 12:11:31 +00:00
}
2024-08-21 01:17:14 +00:00
],
"msb": [
{
"role": "mysql_master",
"name": "主节点(1)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^1$",
"limits_message": "主节点主机数量必须为1"
},
{
"role": "mysql_slave",
"name": "从节点(1)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^1$",
"limits_message": "从节点主机数量必须为1"
}
],
"mha": [
{
"role": "mysql_master",
"name": "主节点(1)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^1$",
"limits_message": "主机连接数量必须为1"
},
{
"role": "mysql_slave",
"name": "从节点(2)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^2$",
"limits_message": "从节点主机连接数量必须为2"
}
],
"mgr.single": [
{
"role": "mysql_master",
"name": "主节点(1)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^1$",
"limits_message": "主机连接数量必须为1"
2024-08-20 12:11:31 +00:00
},
2024-08-21 01:17:14 +00:00
{
"role": "mysql_slave",
"name": "从节点(2)",
"code": "task.software.mysql",
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
"limits": "^2$",
"limits_message": "从节点主机连接数量必须为2"
2024-08-20 12:11:31 +00:00
}
2024-08-21 01:17:14 +00:00
]
2024-08-20 12:11:31 +00:00
}
2024-08-21 01:17:14 +00:00
}
}