diff --git a/swarm-templates/zookeeper/0/README.md b/swarm-templates/zookeeper/0/README.md new file mode 100644 index 0000000..9983266 --- /dev/null +++ b/swarm-templates/zookeeper/0/README.md @@ -0,0 +1,21 @@ +# Zookeeper + +ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. Visit the [Official Site](https://zookeeper.apache.org/). + +### Usage + +This is a standalone Zookeeper deployment suitable for development and testing purposes. As such, there is not much to configure. + +Once deployed, you may inspect Zookeeper information with the `zk-cli` command. If deployment was successful, you'll see something similar to this: + +``` +$ zk-cli +Connecting to localhost:2181 +Welcome to ZooKeeper! +JLine support is enabled + +WATCHER:: + +WatchedEvent state:SyncConnected type:None path:null +[zk: localhost:2181(CONNECTED) 0] +``` \ No newline at end of file diff --git a/swarm-templates/zookeeper/0/docker-compose.yml b/swarm-templates/zookeeper/0/docker-compose.yml new file mode 100644 index 0000000..3607e7b --- /dev/null +++ b/swarm-templates/zookeeper/0/docker-compose.yml @@ -0,0 +1,4 @@ +zookeeper: + image: rancher/zookeeper:3.4.8-swarm + environment: + JVM_FLAGS: "-Xms${HEAP_SIZE} -Xmx${HEAP_SIZE}" diff --git a/swarm-templates/zookeeper/0/rancher-compose.yml b/swarm-templates/zookeeper/0/rancher-compose.yml new file mode 100644 index 0000000..d22db99 --- /dev/null +++ b/swarm-templates/zookeeper/0/rancher-compose.yml @@ -0,0 +1,21 @@ +.catalog: + name: Zookeeper + version: 3.4.8-rancher1 + description: | + ZooKeeper is a centralized service for maintaining configuration information, + naming, providing distributed synchronization, and providing group services. + questions: + - variable: HEAP_SIZE + label: JVM Heap Size + description: Amount of memory allocated to the java heap + required: true + type: string + default: 512m +zookeeper: + health_check: + port: 2181 + interval: 5000 + unhealthy_threshold: 3 + request_line: '' + healthy_threshold: 2 + response_timeout: 5000 diff --git a/swarm-templates/zookeeper/catalogIcon-zookeeper.png b/swarm-templates/zookeeper/catalogIcon-zookeeper.png new file mode 100644 index 0000000..df751f4 Binary files /dev/null and b/swarm-templates/zookeeper/catalogIcon-zookeeper.png differ diff --git a/swarm-templates/zookeeper/config.yml b/swarm-templates/zookeeper/config.yml new file mode 100644 index 0000000..2bd07e5 --- /dev/null +++ b/swarm-templates/zookeeper/config.yml @@ -0,0 +1,7 @@ +name: Zookeeper +description: | + Reliable distributed coordination (standalone only) +version: 3.4.8-rancher1 +category: Clustering +maintainer: James Oliver +minimum_rancher_version: v1.0.0-rc7