2024-08-20 12:11:31 +00:00
|
|
|
{
|
2024-08-21 01:17:14 +00:00
|
|
|
"limits": {
|
|
|
|
"standalone": {
|
|
|
|
"limits": "^[1-9][0-9]*$$",
|
|
|
|
"limits_message": "主机数量必须大于等于1"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"deploy": {
|
|
|
|
"standalone": {
|
|
|
|
"icon": "redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^[1-9][0-9]*$",
|
|
|
|
"limits_message": "主机数量必须大于等于1"
|
2024-08-20 12:11:31 +00:00
|
|
|
},
|
2024-08-21 01:17:14 +00:00
|
|
|
"cluster": {
|
|
|
|
"icon": "redis-cluster",
|
|
|
|
"omts": [
|
|
|
|
{
|
|
|
|
"role": "redis_master",
|
|
|
|
"name": "主节点(1)",
|
|
|
|
"code": "task.software.redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^1$",
|
|
|
|
"limits_message": "主节点主机数量必须为1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"role": "redis_slave",
|
|
|
|
"name": "从节点(2)",
|
|
|
|
"code": "task.software.redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^2$",
|
|
|
|
"limits_message": "从节点主机数量必须为2"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"omtsts": [
|
|
|
|
{
|
|
|
|
"role": "redis_master",
|
|
|
|
"name": "主节点(1)",
|
|
|
|
"code": "task.software.redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^1$",
|
|
|
|
"limits_message": "主节点主机数量必须为1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"role": "redis_slave",
|
|
|
|
"name": "从节点(2)",
|
|
|
|
"code": "task.software.redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^2$",
|
|
|
|
"limits_message": "从节点主机数量必须为2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"role": "redis_sentinel",
|
|
|
|
"name": "哨兵节点(3)",
|
|
|
|
"code": "task.software.redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^3$",
|
|
|
|
"limits_message": "哨兵节点主机数量必须为3"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"tmts": [
|
|
|
|
{
|
|
|
|
"role": "redis_master",
|
|
|
|
"name": "主节点(3)",
|
|
|
|
"code": "task.software.redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^3$",
|
|
|
|
"limits_message": "主机连接数量必须为3"
|
2024-08-20 12:11:31 +00:00
|
|
|
},
|
2024-08-21 01:17:14 +00:00
|
|
|
{
|
|
|
|
"role": "redis_slave",
|
|
|
|
"name": "从节点(3)",
|
|
|
|
"code": "task.software.redis",
|
|
|
|
"depend": "^task[.]resource[.]cvm[.][a-z]{1,20}$",
|
|
|
|
"limits": "^3$",
|
|
|
|
"limits_message": "从节点主机连接数量必须为3"
|
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
|
|
|
}
|
|
|
|
}
|