Mesos integration templates

This commit is contained in:
James Oliver
2016-04-28 09:25:51 -07:00
parent 76e6d3f101
commit 03561fa625
30 changed files with 948 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
# Apache Zookeeper (Experimental)
### Info:
This template creates, scale in and scale out a multinodes zk (zookeeper) cluster on top of Rancher. The configuration is generated with confd from Rancher metadata.
Cluster size are variable after deployment, and get reconfigured if refresh interval > 0.
### Usage:
Select Apache Zookeeper from catalog.
Enter the number of nodes, mem and refresh interval for the zk cluster. (set refresh data to 0 to disable dinamic config)
Note: When you scale the cluster, zero downtime is not guaranteed..yet..
Click deploy.
Zookeeper can now be accessed over the Rancher network.
@@ -0,0 +1,7 @@
zk:
image: rancher/zookeeper:3.4.6-2
volumes:
- /opt/zk/data
environment:
- JVMFLAGS=-Xmx${zk_mem}m -Xms${zk_mem}m
- CONFD_INTERVAL=${zk_interval}
@@ -0,0 +1,36 @@
.catalog:
name: Zookeeper
version: 3.4.6-rancher2
description: |
(Experimental) Apache Zookeeper cluster.
minimum_rancher_version: v0.56.0
maintainer: "Raul Sanchez <rawmind@gmail.com>"
uuid: zk-0
questions:
- variable: "zk_scale"
description: "Number of zk nodes. Note: Recommended an odd number"
label: "Zk Nodes:"
required: true
default: 3
type: "int"
- variable: "zk_mem"
description: "Amount of memory to config zk."
label: "Zk Memory (mb):"
required: true
default: 512
type: "string"
- variable: "zk_interval"
description: "Interval to poll/apply configuration changes. 0 to disable, reconfiguration will be done when you restart zk nodes"
label: "Zk Interval (s):"
required: true
default: 60
type: "int"
zk:
scale: ${zk_scale}
health_check:
port: 2181
interval: 5000
unhealthy_threshold: 3
request_line: ''
healthy_threshold: 2
response_timeout: 5000
Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

+9
View File
@@ -0,0 +1,9 @@
name: Zookeeper
description: |
Maintain configuration information, naming, provide
distributed synchronization and group services
version: 3.4.6-rancher2
category: System
maintainer: "Raul Sanchez <rawmind@gmail.com>"
minimum_rancher_version: v0.56.0
license: