Skip to content

Commit

Permalink
add license and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Fan Shang Xiang committed May 27, 2017
1 parent e20801d commit b2b59ed
Show file tree
Hide file tree
Showing 33 changed files with 457 additions and 1 deletion.
117 changes: 117 additions & 0 deletions 3.4.9/cluster.json.mustache
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"]
}
}
93 changes: 93 additions & 0 deletions 3.4.9/config.json
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"
}]
}]
}]
}
36 changes: 36 additions & 0 deletions 3.4.9/locale/en.json
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"
}

37 changes: 37 additions & 0 deletions 3.4.9/locale/zh-cn.json
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 added 3.4.9/zk-3.4.9.tar.gz
Binary file not shown.
5 changes: 4 additions & 1 deletion README.md
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)
Binary file added images/ZK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added rest/lib/activation-1.1.jar
Binary file not shown.
Binary file added rest/lib/asm-3.1.jar
Binary file not shown.
Binary file added rest/lib/grizzly-framework-1.9.8.jar
Binary file not shown.
Binary file added rest/lib/grizzly-http-1.9.8.jar
Binary file not shown.
Binary file added rest/lib/grizzly-http-servlet-1.9.8.jar
Binary file not shown.
Binary file added rest/lib/grizzly-portunif-1.9.8.jar
Binary file not shown.
Binary file added rest/lib/grizzly-rcm-1.9.8.jar
Binary file not shown.
Binary file added rest/lib/grizzly-servlet-webserver-1.9.8.jar
Binary file not shown.
Binary file added rest/lib/grizzly-utils-1.9.8.jar
Binary file not shown.
Binary file added rest/lib/ivy-2.2.0.jar
Binary file not shown.
Binary file added rest/lib/jackson-core-asl-1.1.1.jar
Binary file not shown.
Binary file added rest/lib/jaxb-api-2.1.jar
Binary file not shown.
Binary file added rest/lib/jaxb-impl-2.1.12.jar
Binary file not shown.
Binary file added rest/lib/jersey-core-1.1.5.1.jar
Binary file not shown.
Binary file added rest/lib/jersey-json-1.1.5.1.jar
Binary file not shown.
Binary file added rest/lib/jersey-server-1.1.5.1.jar
Binary file not shown.
Binary file added rest/lib/jettison-1.1.jar
Binary file not shown.
Binary file added rest/lib/jsr311-api-1.1.1.jar
Binary file not shown.
Binary file added rest/lib/servlet-api-2.5.jar
Binary file not shown.
Binary file added rest/lib/stax-api-1.0-2.jar
Binary file not shown.
Binary file added rest/lib/stax-api-1.0.1.jar
Binary file not shown.
Loading

0 comments on commit b2b59ed

Please sign in to comment.