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
@@ -0,0 +1,8 @@
scheduler:
image: rancher/kafka:latest
environment:
MESOS_SERVICE: ${MESOS_SERVICE}
ZK_SERVICE: ${ZK_SERVICE}
SCHEDULER_PORT: ${SCHEDULER_PORT}
ports:
- "${SCHEDULER_PORT}:${SCHEDULER_PORT}"
@@ -0,0 +1,30 @@
.catalog:
name: Kafka
version: v1
description: |
A high-throughput distributed messaging system
questions:
- variable: ZK_SERVICE
description: Choose the Zookeeper service to use.
label: Zookeeper Service
required: true
type: service
- variable: MESOS_SERVICE
description: Choose the Mesos stack to use.
label: Mesos Stack
required: true
type: service
- variable: SCHEDULER_PORT
description: Port to expose Kafka Scheduler on.
label: Scheduler Port
required: true
type: int
default: 7000
scheduler:
health_check:
port: ${SCHEDULER_PORT}
interval: 3000
unhealthy_threshold: 2
healthy_threshold: 2
request_line: '/health'
response_timeout: 2000
+52
View File
@@ -0,0 +1,52 @@
# Kafka Mesos Framework
Kafka framework doesn't support Docker executors, so your Mesos Slaves must have `java` installed.
There is also no GUI. The CLI is wrapped for your convenience, and may be used from within the scheduler container:
```bash
root@5a466883dda2:/# kafka broker add 0..1 --cpus 0.1 --heap 256 --mem 384
brokers added:
id: 0
active: false
state: stopped
resources: cpus:0.10, mem:384, heap:256, port:auto
failover: delay:1m, max-delay:10m
stickiness: period:10m
id: 1
active: false
state: stopped
resources: cpus:0.10, mem:384, heap:256, port:auto
failover: delay:1m, max-delay:10m
stickiness: period:10m
root@5a466883dda2:/# kafka broker start 0..1
brokers started:
id: 0
active: true
state: running
resources: cpus:0.10, mem:384, heap:256, port:auto
failover: delay:1m, max-delay:10m
stickiness: period:10m, hostname:192.168.99.108
task:
id: broker-0-899d16d4-00bb-445a-8f57-95464640413f
state: running
endpoint: 192.168.99.108:31000
metrics:
collected: 2016-04-21 23:35:24Z
under-replicated-partitions: 0
offline-partitions-count: 2
is-active-controller: 1
id: 1
active: true
state: running
resources: cpus:0.10, mem:384, heap:256, port:auto
failover: delay:1m, max-delay:10m
stickiness: period:10m, hostname:192.168.99.108
task:
id: broker-1-97d19b5e-6d2b-4f15-8c49-abc217aac9a9
state: running
endpoint: 192.168.99.108:31001
```
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="256px" height="416px" viewBox="0 0 256 416" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" preserveAspectRatio="xMidYMid">
<g>
<path d="M201.816,230.216 C185.63,230.216 171.119,237.387 161.182,248.677 L135.719,230.651 C138.422,223.209 139.974,215.218 139.974,206.854 C139.974,198.635 138.476,190.778 135.862,183.446 L161.268,165.611 C171.204,176.844 185.677,183.976 201.816,183.976 C231.691,183.976 256,159.671 256,129.792 C256,99.913 231.691,75.608 201.816,75.608 C171.941,75.608 147.632,99.913 147.632,129.792 C147.632,135.14 148.44,140.297 149.89,145.181 L124.467,163.025 C113.847,149.85 98.556,140.651 81.134,137.843 L81.134,107.203 C105.678,102.048 124.171,80.241 124.171,54.184 C124.171,24.305 99.862,0 69.987,0 C40.112,0 15.803,24.305 15.803,54.184 C15.803,79.892 33.817,101.43 57.87,106.953 L57.87,137.991 C25.044,143.753 0,172.401 0,206.854 C0,241.475 25.292,270.228 58.355,275.794 L58.355,308.568 C34.056,313.909 15.803,335.579 15.803,361.462 C15.803,391.341 40.112,415.646 69.987,415.646 C99.862,415.646 124.171,391.341 124.171,361.462 C124.171,335.579 105.918,313.909 81.619,308.568 L81.619,275.793 C98.698,272.917 113.708,263.9 124.219,251.017 L149.852,269.16 C148.429,274 147.632,279.106 147.632,284.4 C147.632,314.279 171.941,338.584 201.816,338.584 C231.691,338.584 256,314.279 256,284.4 C256,254.521 231.691,230.216 201.816,230.216 L201.816,230.216 Z M201.816,103.521 C216.303,103.521 228.086,115.309 228.086,129.792 C228.086,144.275 216.303,156.062 201.816,156.062 C187.329,156.062 175.546,144.275 175.546,129.792 C175.546,115.309 187.329,103.521 201.816,103.521 L201.816,103.521 Z M43.716,54.184 C43.716,39.701 55.5,27.914 69.987,27.914 C84.474,27.914 96.257,39.701 96.257,54.184 C96.257,68.667 84.474,80.454 69.987,80.454 C55.5,80.454 43.716,68.667 43.716,54.184 L43.716,54.184 Z M96.257,361.462 C96.257,375.945 84.474,387.732 69.987,387.732 C55.5,387.732 43.716,375.945 43.716,361.462 C43.716,346.979 55.5,335.192 69.987,335.192 C84.474,335.192 96.257,346.979 96.257,361.462 L96.257,361.462 Z M69.985,243.492 C49.78,243.492 33.343,227.058 33.343,206.854 C33.343,186.649 49.78,170.212 69.985,170.212 C90.189,170.212 106.626,186.649 106.626,206.854 C106.626,227.058 90.189,243.492 69.985,243.492 L69.985,243.492 Z M201.816,310.671 C187.329,310.671 175.546,298.883 175.546,284.4 C175.546,269.917 187.329,258.13 201.816,258.13 C216.303,258.13 228.086,269.917 228.086,284.4 C228.086,298.883 216.303,310.671 201.816,310.671 L201.816,310.671 Z" fill="#000000"></path>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.6 KiB

+7
View File
@@ -0,0 +1,7 @@
name: Kafka
description: |
A high-throughput distributed messaging system
version: v1
category: Frameworks
maintainer: James Oliver <joliver@rancher.com>
minimum_rancher_version: v1.0.0