-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fan Shang Xiang
committed
May 27, 2017
1 parent
e20801d
commit b2b59ed
Showing
33 changed files
with
457 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"name": {{cluster.name}}, | ||
"description": {{cluster.description}}, | ||
"vxnet": {{cluster.vxnet}}, | ||
"nodes": [{ | ||
"container": { | ||
"type": "kvm", | ||
"zone": "pek3a", | ||
"image": "img-svm7yple" | ||
}, | ||
"count": {{cluster.zk_node.count}}, | ||
"cpu": {{cluster.zk_node.cpu}}, | ||
"memory": {{cluster.zk_node.memory}}, | ||
"instance_class": {{cluster.zk_node.instance_class}}, | ||
"volume": { | ||
"size": {{cluster.zk_node.volume_size}} | ||
}, | ||
"server_id_upper_bound": 255, | ||
"services": { | ||
"start": { | ||
"cmd": "/opt/zookeeper/bin/zkServer.sh start;/opt/zookeeper/bin/rest.sh start" | ||
}, | ||
"stop": { | ||
"cmd": "/opt/zookeeper/bin/rest.sh stop;/opt/zookeeper/bin/zkServer.sh stop" | ||
} | ||
}, | ||
"advanced_actions": ["change_vxnet", "scale_horizontal"], | ||
"vertical_scaling_policy": "sequential" | ||
}], | ||
"endpoints": { | ||
"client": { | ||
"port": 2181, | ||
"protocol": "tcp" | ||
}, | ||
"rest": { | ||
"port": 9998, | ||
"protocol": "tcp" | ||
} | ||
}, | ||
"health_check": { | ||
"enable": true, | ||
"interval_sec": 60, | ||
"timeout_sec": 10, | ||
"action_timeout_sec": 30, | ||
"healthy_threshold": 2, | ||
"unhealthy_threshold": 2, | ||
"check_cmd": "echo srvr | nc 127.0.0.1 2181", | ||
"action_cmd": "/opt/zookeeper/bin/restart-server.sh" | ||
}, | ||
"monitor": { | ||
"enable": true, | ||
"cmd": "/opt/zookeeper/bin/get-monitor.sh", | ||
"items": { | ||
"mode": { | ||
"unit": "", | ||
"value_type": "str", | ||
"statistics_type": "latest", | ||
"enums": ["L", "F", "S"] | ||
}, | ||
"min": { | ||
"unit": "ms", | ||
"value_type": "int", | ||
"statistics_type": "min", | ||
"scale_factor_when_display": 1 | ||
}, | ||
"avg": { | ||
"unit": "ms", | ||
"value_type": "int", | ||
"statistics_type": "avg", | ||
"scale_factor_when_display": 1 | ||
}, | ||
"max": { | ||
"unit": "ms", | ||
"value_type": "int", | ||
"statistics_type": "max", | ||
"scale_factor_when_display": 1 | ||
}, | ||
"received": { | ||
"unit": "count", | ||
"value_type": "int", | ||
"statistics_type": "latest", | ||
"scale_factor_when_display": 1 | ||
}, | ||
"sent": { | ||
"unit": "count", | ||
"value_type": "int", | ||
"statistics_type": "latest", | ||
"scale_factor_when_display": 1 | ||
}, | ||
"active": { | ||
"unit": "count", | ||
"value_type": "int", | ||
"statistics_type": "latest", | ||
"scale_factor_when_display": 1 | ||
}, | ||
"outstanding": { | ||
"unit": "count", | ||
"value_type": "int", | ||
"statistics_type": "latest", | ||
"scale_factor_when_display": 1 | ||
}, | ||
"znode": { | ||
"unit": "znode_count", | ||
"value_type": "int", | ||
"statistics_type": "latest", | ||
"scale_factor_when_display": 1 | ||
} | ||
}, | ||
"groups": { | ||
"latency": ["min", "avg", "max"], | ||
"throughput": ["received", "sent"], | ||
"connections": ["active", "outstanding"] | ||
}, | ||
"display": ["mode", "latency", "throughput", "connections", "znode"], | ||
"alarm": ["avg"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"type": "array", | ||
"properties": [{ | ||
"key": "cluster", | ||
"description": "ZooKeeper release 3.4.9 cluster properties", | ||
"type": "array", | ||
"properties": [{ | ||
"key": "name", | ||
"label": "Name", | ||
"description": "The name of the ZooKeeper service", | ||
"type": "string", | ||
"default": "ZooKeeper", | ||
"required": "no" | ||
}, { | ||
"key": "description", | ||
"label": "Description", | ||
"description": "The description of the ZooKeeper service", | ||
"type": "string", | ||
"default": "", | ||
"required": "no" | ||
}, { | ||
"key": "vxnet", | ||
"label": "VxNet", | ||
"description": "Choose a vxnet to join", | ||
"type": "string", | ||
"default": "", | ||
"required": "yes" | ||
}, { | ||
"key": "zk_node", | ||
"label": "ZooKeeper Node", | ||
"description": "role-based node properties", | ||
"type": "array", | ||
"properties": [{ | ||
"key": "cpu", | ||
"label": "CPU", | ||
"description": "CPUs of each node", | ||
"type": "integer", | ||
"default": 1, | ||
"range": [ | ||
1, | ||
2, | ||
4, | ||
8 | ||
], | ||
"required": "yes" | ||
}, { | ||
"key": "memory", | ||
"label": "Memory", | ||
"description": "memory of each node (in MiB)", | ||
"type": "integer", | ||
"default": 2048, | ||
"range": [ | ||
1024, | ||
2048, | ||
4096, | ||
8192, | ||
16384, | ||
32768 | ||
], | ||
"required": "yes" | ||
}, { | ||
"key": "instance_class", | ||
"label": "Instance Class", | ||
"description": "The instance type for the cluster to run,such as high performance,high performance plus", | ||
"type": "integer", | ||
"default": 0, | ||
"range": [0, 1], | ||
"required": "yes" | ||
}, { | ||
"key": "count", | ||
"label": "Node Count", | ||
"description": "Number of nodes for the cluster to create", | ||
"type": "integer", | ||
"default": 3, | ||
"range": [ | ||
1, | ||
3, | ||
5, | ||
7, | ||
9 | ||
], | ||
"required": "yes" | ||
}, { | ||
"key": "volume_size", | ||
"label": "Volume Size", | ||
"description": "The volume size for each node", | ||
"type": "integer", | ||
"default": 10, | ||
"required": "yes" | ||
}] | ||
}] | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"Name": "Name", | ||
"Description": "Description", | ||
"The name of the ZooKeeper service": "The name of the ZooKeeper service", | ||
"The description of the ZooKeeper service": "The description of the ZooKeeper service", | ||
"VxNet": "VxNet", | ||
"Choose a vxnet to join": "Choose a vxnet to join", | ||
"CPU": "CPU", | ||
"CPUs of each node": "CPUs of each node", | ||
"Memory": "Memory", | ||
"Memory of each node (in MiB)": "Memory of each node (in MiB)", | ||
"Volume Size": "Volume Size", | ||
"Instance Class": "Instance Class", | ||
"The volume size for each node": "The volume size for each node", | ||
"ZooKeeper Node": "ZooKeeper Node", | ||
"Node Count": "Node Count", | ||
"count": "count", | ||
"znode_count": "count", | ||
"Number of nodes for the cluster to create": "Number of nodes for the cluster to create", | ||
"instance class": "instance class", | ||
"The instance type for the cluster to run, such as high performance, high performance plus": "The instance type for the cluster to run, such as high performance, high performance plus", | ||
"zk_node": "zk_node", | ||
"latency": "latency", | ||
"throughput": "throughput", | ||
"connections": "connections", | ||
"znode": "znode", | ||
"mode": "mode (L:Leader,F:Flower,S:Standalone)", | ||
"min": "min", | ||
"avg": "avg", | ||
"max": "max", | ||
"received": "received", | ||
"sent": "sent", | ||
"active": "active", | ||
"outstanding": "outstanding" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"Name": "名称", | ||
"Description": "描述", | ||
"The name of the ZooKeeper service": "ZooKeeper 服务名称", | ||
"The description of the ZooKeeper service": "ZooKeeper 服务描述", | ||
"VxNet": "私有网络", | ||
"Choose a vxnet to join": "选择要加入的私有网络", | ||
"CPU": "CPU", | ||
"CPUs of each node": "每个节点的 CPU 数量", | ||
"Memory": "内存", | ||
"Memory of each node (in MiB)": "每个节点的内存数量(单位:MiB)", | ||
"Instance Class": "主机类型", | ||
"ZooKeeper Node": "ZooKeeper 节点", | ||
"Node Count": "节点数量", | ||
"count": "次", | ||
"znode_count": "个", | ||
"Number of nodes for the cluster to create": "要创建的节点数量", | ||
"Volume Size": "存储容量", | ||
"The volume size for each node": "每个节点的存储容量", | ||
"instance class": "实例类型", | ||
"The instance type for the cluster to run, such as high performance, high performance plus": "节点实例类型,比如性能型与超高性能型。", | ||
"zk_node": "ZooKeeper 节点", | ||
"latency": "响应延迟时间", | ||
"throughput": "吞吐量", | ||
"connections": "连接数", | ||
"znode": "节点数量", | ||
"mode": "角色 (L:Leader,F:Flower,S:Standalone)", | ||
"min": "最小响应延迟时间", | ||
"avg": "平均响应延迟时间", | ||
"max": "最大响应延迟时间", | ||
"received": "请求接收数", | ||
"sent": "发送响应数", | ||
"active": "活跃连接数", | ||
"outstanding": "待处理连接数", | ||
"client": "客户端" | ||
} | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
# Zookeeper | ||
|
||
# ZooKeeper App | ||
|
||
[QingCloud - Apache ZooKeeper](https://appcenter.qingcloud.com/apps/app-tg3lbp0a) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.