Mesos integration templates
10
mesos-templates/aurora/0/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
scheduler:
|
||||
image: rancher/aurora:latest
|
||||
environment:
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
MESOS_SERVICE: ${MESOS_SERVICE}
|
||||
AURORA_HTTP_PORT: ${AURORA_HTTP_PORT}
|
||||
volumes:
|
||||
- "/var/run/docker.sock:/var/run/docker.sock"
|
||||
ports:
|
||||
- "${AURORA_HTTP_PORT}:${AURORA_HTTP_PORT}"
|
31
mesos-templates/aurora/0/rancher-compose.yml
Normal file
@ -0,0 +1,31 @@
|
||||
.catalog:
|
||||
name: Aurora
|
||||
version: v1
|
||||
description: |
|
||||
Orchestrate long-running services and cron jobs
|
||||
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: AURORA_HTTP_PORT
|
||||
description: Port to expose Aurora scheduler on.
|
||||
label: Aurora Port
|
||||
required: true
|
||||
type: int
|
||||
default: 8080
|
||||
aurora:
|
||||
scale: 1
|
||||
health_check:
|
||||
port: ${AURORA_HTTP_PORT}
|
||||
interval: 3000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: '/'
|
||||
response_timeout: 2000
|
204
mesos-templates/aurora/catalogIcon-aurora.svg
Normal file
@ -0,0 +1,204 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 343 98.7" style="enable-background:new 0 0 343 98.7;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#50BE9C;}
|
||||
.st1{fill:#8FC640;}
|
||||
.st2{fill:#6CC28A;}
|
||||
.st3{fill:#4276B9;}
|
||||
.st4{fill:#42BAEB;}
|
||||
.st5{fill:#222425;}
|
||||
.st6{fill:#5A833B;}
|
||||
.st7{fill:url(#SVGID_1_);}
|
||||
.st8{fill:url(#SVGID_2_);}
|
||||
.st9{fill:url(#SVGID_3_);}
|
||||
.st10{fill:url(#SVGID_4_);}
|
||||
.st11{fill:url(#SVGID_5_);}
|
||||
.st12{fill:url(#SVGID_6_);}
|
||||
.st13{fill:url(#SVGID_7_);}
|
||||
.st14{fill:url(#SVGID_8_);}
|
||||
.st15{fill:url(#SVGID_9_);}
|
||||
.st16{fill:#5F8C3D;}
|
||||
.st17{fill:#37573A;}
|
||||
.st18{fill:#D5D6D7;}
|
||||
.st19{fill:#848588;}
|
||||
.st20{fill:url(#SVGID_10_);}
|
||||
.st21{fill:url(#SVGID_11_);}
|
||||
.st22{fill:url(#SVGID_12_);}
|
||||
.st23{fill:url(#SVGID_13_);}
|
||||
.st24{fill:url(#SVGID_14_);}
|
||||
.st25{fill:url(#SVGID_15_);}
|
||||
.st26{fill:url(#SVGID_16_);}
|
||||
.st27{fill:url(#SVGID_17_);}
|
||||
.st28{fill:url(#SVGID_18_);}
|
||||
.st29{fill:url(#SVGID_19_);}
|
||||
.st30{fill:url(#SVGID_20_);}
|
||||
.st31{fill:url(#SVGID_21_);}
|
||||
.st32{fill:url(#SVGID_22_);}
|
||||
.st33{fill:url(#SVGID_23_);}
|
||||
.st34{fill:#E6F1FA;}
|
||||
.st35{fill:none;stroke:url(#SVGID_24_);stroke-width:3;stroke-miterlimit:10;}
|
||||
.st36{fill:#CEDCE9;}
|
||||
.st37{fill:#1A4866;}
|
||||
.st38{fill:#5DC3AF;}
|
||||
.st39{fill:#65C5B2;}
|
||||
</style>
|
||||
<g id="g110">
|
||||
<g id="g112">
|
||||
<g id="g118" transform="translate(180.5576,59.5039)">
|
||||
<path id="path120" class="st37" d="M0.7,15.8c-1.6,0-3.1-0.2-4.5-0.7c-1.4-0.5-2.6-1.1-3.6-2
|
||||
c-1-0.9-1.8-2-2.4-3.3c-0.6-1.3-0.8-2.8-0.8-4.6v-21.4H-7V5.1c0,1.1,0.2,2.2,0.6,3.1C-6,9-5.5,9.8-4.8,10.4
|
||||
c0.7,0.6,1.5,1.1,2.4,1.4c0.9,0.3,2,0.5,3.1,0.5c1.1,0,2.1-0.2,3.1-0.5c0.9-0.3,1.7-0.8,2.4-1.4C6.8,9.8,7.4,9,7.8,8.1
|
||||
c0.4-0.9,0.6-1.9,0.6-3.1v-21.3h3.8V5.2c0,1.7-0.3,3.2-0.9,4.6c-0.6,1.3-1.4,2.4-2.4,3.3c-1,0.9-2.2,1.5-3.6,2
|
||||
C3.8,15.6,2.3,15.8,0.7,15.8"/>
|
||||
</g>
|
||||
<g id="g122" transform="translate(200.9756,73.959)">
|
||||
<path id="path124" class="st37" d="M5.8-16.7h3.9c1.3,0,2.4-0.2,3.3-0.5
|
||||
c0.9-0.3,1.5-0.8,2.1-1.3c0.5-0.5,0.9-1.1,1.1-1.7c0.2-0.6,0.3-1.2,0.3-1.8c0-0.6-0.2-1.3-0.5-1.9c-0.3-0.6-0.8-1.2-1.4-1.6
|
||||
c-0.6-0.5-1.3-0.8-2.1-1.1c-0.8-0.3-1.7-0.4-2.6-0.4h-4V-16.7z M2,1v-31.6h7.5c1,0,2.2,0.2,3.4,0.5c1.2,0.3,2.4,0.8,3.5,1.5
|
||||
c1.1,0.7,2,1.6,2.7,2.7c0.7,1.1,1.1,2.4,1.1,3.9c0,2.3-0.6,4.2-1.7,5.7c-1.1,1.5-2.8,2.5-4.9,3L20.3,1h-4.1L9.6-13.1H8.8H5.8V1
|
||||
C5.8,1,2,1,2,1z"/>
|
||||
</g>
|
||||
<g id="g126" transform="translate(223.4951,72.4102)">
|
||||
<path id="path128" class="st37" d="M11.4-13.3c0,1.8,0.3,3.4,1,4.9c0.7,1.5,1.5,2.8,2.7,4
|
||||
c1.1,1.1,2.5,2,3.9,2.7c1.5,0.7,3.1,1,4.8,1c1.7,0,3.3-0.3,4.8-1c1.5-0.7,2.8-1.6,4-2.7c1.1-1.1,2-2.5,2.7-4c0.6-1.5,1-3.2,1-4.9
|
||||
c0-1.7-0.3-3.4-1-4.9c-0.6-1.5-1.5-2.9-2.7-4c-1.1-1.1-2.5-2-4-2.7c-1.5-0.7-3.1-1-4.8-1c-1.7,0-3.3,0.3-4.8,1
|
||||
c-1.5,0.7-2.8,1.6-3.9,2.7c-1.1,1.2-2,2.5-2.7,4C11.7-16.6,11.4-15,11.4-13.3 M7.6-13.3c0-2.2,0.4-4.3,1.3-6.3
|
||||
c0.8-2,2-3.7,3.4-5.2c1.5-1.5,3.2-2.6,5.1-3.5c2-0.9,4.1-1.3,6.3-1.3c2.2,0,4.3,0.4,6.3,1.3c2,0.9,3.7,2,5.2,3.5
|
||||
c1.5,1.5,2.6,3.2,3.5,5.2c0.9,2,1.3,4.1,1.3,6.3c0,2.2-0.4,4.3-1.3,6.3c-0.9,2-2,3.7-3.5,5.1C33.7-0.4,32,0.8,30,1.6
|
||||
c-2,0.9-4.1,1.3-6.3,1.3c-2.2,0-4.3-0.4-6.3-1.3c-2-0.8-3.7-2-5.1-3.4C10.9-3.3,9.7-5,8.9-7C8.1-8.9,7.6-11,7.6-13.3"/>
|
||||
</g>
|
||||
<g id="g130" transform="translate(257.3213,73.959)">
|
||||
<path id="path132" class="st37" d="M19.9-16.7h3.9c1.3,0,2.4-0.2,3.3-0.5
|
||||
c0.9-0.3,1.5-0.8,2-1.3c0.5-0.5,0.9-1.1,1.1-1.7c0.2-0.6,0.3-1.2,0.3-1.8c0-0.6-0.2-1.3-0.5-1.9c-0.3-0.6-0.8-1.2-1.4-1.6
|
||||
c-0.6-0.5-1.3-0.8-2.1-1.1c-0.8-0.3-1.7-0.4-2.6-0.4h-4V-16.7z M16.1,1v-31.6h7.4c1,0,2.2,0.2,3.4,0.5c1.2,0.3,2.4,0.8,3.5,1.5
|
||||
c1.1,0.7,2,1.6,2.7,2.7c0.7,1.1,1.1,2.4,1.1,3.9c0,2.3-0.6,4.2-1.7,5.7c-1.1,1.5-2.8,2.5-5,3L34.4,1h-4.1l-6.6-14.1h-0.8h-3.1V1
|
||||
C19.9,1,16.1,1,16.1,1z"/>
|
||||
</g>
|
||||
<g id="g134" transform="translate(157.3545,73.0156)">
|
||||
<path id="path136" class="st37" d="M-5.1-14.6c-2.3-5.5-4.6-11-7-16.5c-0.6,1.5-1.3,3-1.9,4.4
|
||||
l4.5,10.6l2.4,5.5h0c0.9,2.1,1.8,4.2,2.6,6.3c0.9,2.1,1.8,4.2,2.6,6.3h3.8C-0.5-3.6-2.8-9.2-5.1-14.6"/>
|
||||
</g>
|
||||
<g id="g138" transform="translate(147.792,69.8066)">
|
||||
<path id="path140" class="st37" d="M-7.5-7.4l2.2-5.1h0c0.3-0.7,0.6-1.4,0.9-2.1l-1.9-4.5
|
||||
c-1.1,2.5-2.2,5.1-3.2,7.7c-2.3,5.5-4.6,11-7,16.5h3.7C-12,3-11.1,1-10.2-1.1C-9.3-3.2-8.4-5.3-7.5-7.4L-7.5-7.4z"/>
|
||||
</g>
|
||||
<g id="g142" transform="translate(293.6025,73.0156)">
|
||||
<path id="path144" class="st37" d="M28.9-14.6c-2.3-5.5-4.7-11-7-16.5c-0.6,1.5-1.3,3-1.9,4.4
|
||||
l4.5,10.6l2.4,5.5h0c0.9,2.1,1.8,4.2,2.6,6.3c0.9,2.1,1.8,4.2,2.6,6.3h3.7C33.6-3.6,31.2-9.2,28.9-14.6"/>
|
||||
</g>
|
||||
<g id="g146" transform="translate(284.0322,69.8066)">
|
||||
<path id="path148" class="st37" d="M26.5-7.4l2.2-5.1h0c0.3-0.7,0.6-1.4,0.9-2.1l-1.9-4.5
|
||||
c-1.1,2.5-2.2,5.1-3.3,7.7c-2.3,5.5-4.6,11-7,16.5h3.8C22.1,3,23,1,23.9-1.1C24.8-3.2,25.7-5.3,26.5-7.4L26.5-7.4z"/>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
<g>
|
||||
<g id="g14" transform="translate(89.4268,98.3438)">
|
||||
<path id="path16" class="st39" d="M-22.1-71.6h-22.9l11.5,19.8L-22.1-71.6z"/>
|
||||
</g>
|
||||
<g id="g18" transform="translate(69.2861,97.3203)">
|
||||
<path id="path20" class="st39" d="M-27.2-69.3l-11.5,19.8h22.9L-27.2-69.3z"/>
|
||||
</g>
|
||||
<g id="g22" transform="translate(78.4736,79.4082)">
|
||||
<path id="path24" class="st39" d="M-24.9-29h-22.9l11.5,19.8L-24.9-29z"/>
|
||||
</g>
|
||||
<g id="g26" transform="translate(58.3584,78.3828)">
|
||||
<path id="path28" class="st39" d="M-29.9-26.7L-41.4-6.9h23L-29.9-26.7z"/>
|
||||
</g>
|
||||
<g id="g30" transform="translate(91.1904,97.3203)">
|
||||
<path id="path32" class="st39" d="M-21.7-69.3l-11.4,19.8h22.9L-21.7-69.3z"/>
|
||||
</g>
|
||||
<g id="g34" transform="translate(100.3838,79.4082)">
|
||||
<path id="path36" class="st39" d="M-19.4-29h-22.9l11.4,19.8L-19.4-29z"/>
|
||||
</g>
|
||||
<g id="g38" transform="translate(80.2666,116.2793)">
|
||||
<path id="path40" class="st39" d="M-24.4-112l-11.5,19.8H-13L-24.4-112z"/>
|
||||
</g>
|
||||
<g id="g42" transform="translate(67.5205,60.4707)">
|
||||
<path id="path44" class="st39" d="M-27.6,13.6h-23l11.5,20L-27.6,13.6z"/>
|
||||
</g>
|
||||
<g id="g46" transform="translate(102.1475,78.3828)">
|
||||
<path id="path48" class="st39" d="M-18.9-26.7L-30.4-6.9h23L-18.9-26.7z"/>
|
||||
</g>
|
||||
<g id="g50" transform="translate(111.3369,60.4707)">
|
||||
<path id="path52" class="st39" d="M-16.6,13.6h-23l11.5,20L-16.6,13.6z"/>
|
||||
</g>
|
||||
<g id="g54" transform="translate(80.2666,78.3828)">
|
||||
<path id="path56" class="st37" d="M-24.4-26.7L-35.9-6.9H-13L-24.4-26.7z"/>
|
||||
</g>
|
||||
<g id="g58" transform="translate(67.5205,98.3438)">
|
||||
<path id="path60" class="st37" d="M-27.6-71.6h-23l11.5,19.8L-27.6-71.6z"/>
|
||||
</g>
|
||||
<g id="g62" transform="translate(38.2119,81.4688)">
|
||||
<path id="path64" class="st37" d="M-34.9-33.6H-12l-11.5-19.8"/>
|
||||
</g>
|
||||
<g id="g66" transform="translate(47.374,63.5449)">
|
||||
<path id="path68" class="st37" d="M-32.6,6.7l11.5-19.8h-22.9"/>
|
||||
</g>
|
||||
<g id="g70" transform="translate(113.0986,97.3203)">
|
||||
<path id="path72" class="st37" d="M-16.2-69.3l-11.4,19.8h22.9L-16.2-69.3z"/>
|
||||
</g>
|
||||
<g id="g74" transform="translate(122.2881,79.4082)">
|
||||
<path id="path76" class="st37" d="M-13.9-29h-22.9l11.4,19.8L-13.9-29z"/>
|
||||
</g>
|
||||
<g id="g78" transform="translate(100.3838,117.3066)">
|
||||
<path id="path80" class="st37" d="M-19.4-114.3h-22.9l11.4,19.8L-19.4-114.3z"/>
|
||||
</g>
|
||||
<g id="g82" transform="translate(89.4268,60.4707)">
|
||||
<path id="path84" class="st37" d="M-22.1,13.6h-23l11.5,20L-22.1,13.6z"/>
|
||||
</g>
|
||||
<g id="g86" transform="translate(91.1904,59.4492)">
|
||||
<path id="path88" class="st37" d="M-21.7,15.9l-11.4,20h22.9L-21.7,15.9z"/>
|
||||
</g>
|
||||
<g id="g90" transform="translate(78.4736,117.3066)">
|
||||
<path id="path92" class="st37" d="M-24.9-114.3h-22.9l11.5,19.8L-24.9-114.3z"/>
|
||||
</g>
|
||||
<g id="g94" transform="translate(58.3584,116.2793)">
|
||||
<path id="path96" class="st37" d="M-29.9-112l-11.5,19.8h23L-29.9-112z"/>
|
||||
</g>
|
||||
<g id="g98" transform="translate(102.1475,116.2793)">
|
||||
<path id="path100" class="st37" d="M-18.9-112l-11.5,19.8h23L-18.9-112z"/>
|
||||
</g>
|
||||
<g id="g102" transform="translate(111.3369,98.3438)">
|
||||
<path id="path104" class="st37" d="M-16.6-71.6h-23l11.5,19.8L-16.6-71.6z"/>
|
||||
</g>
|
||||
<g id="g106" transform="translate(69.2861,59.4492)">
|
||||
<path id="path108" class="st37" d="M-27.2,15.9l-11.5,20h22.9L-27.2,15.9z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st37" d="M141.3,33.9l-1.3-3.7h-5.1l-1.3,3.7h-2.3l5-13.4h2.4l5,13.4H141.3z M139.4,28.3l-1.3-3.6
|
||||
c-0.1-0.2-0.2-0.6-0.4-1.2c-0.2-0.5-0.3-0.9-0.3-1.2c-0.2,0.8-0.4,1.6-0.7,2.5l-1.2,3.5H139.4z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st37" d="M149.3,34.1c-1.3,0-2.3-0.5-3-1.4h-0.1c0.1,0.9,0.1,1.4,0.1,1.6v4.1h-2.2V23.8h1.7c0,0.2,0.1,0.6,0.3,1.4
|
||||
h0.1c0.7-1,1.7-1.5,3-1.5c1.3,0,2.2,0.5,3,1.4s1.1,2.2,1.1,3.9c0,1.7-0.4,2.9-1.1,3.9C151.6,33.6,150.6,34.1,149.3,34.1z
|
||||
M148.8,25.3c-0.9,0-1.5,0.2-1.9,0.8c-0.4,0.5-0.6,1.3-0.6,2.4v0.3c0,1.2,0.2,2.1,0.6,2.7c0.4,0.6,1,0.8,1.9,0.8
|
||||
c0.7,0,1.3-0.3,1.7-0.9s0.6-1.5,0.6-2.6c0-1.1-0.2-2-0.6-2.6C150.1,25.6,149.6,25.3,148.8,25.3z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st37" d="M161.2,33.9l-0.4-1.4h-0.1c-0.5,0.6-1,1-1.5,1.3c-0.5,0.2-1.1,0.3-1.9,0.3c-1,0-1.8-0.3-2.3-0.8
|
||||
s-0.8-1.3-0.8-2.3c0-1,0.4-1.8,1.2-2.4c0.8-0.5,2-0.8,3.5-0.9l1.7-0.1v-0.5c0-0.6-0.2-1.1-0.5-1.5c-0.3-0.3-0.8-0.5-1.4-0.5
|
||||
c-0.5,0-1,0.1-1.5,0.2c-0.5,0.2-0.9,0.3-1.4,0.5l-0.7-1.5c0.5-0.3,1.2-0.5,1.8-0.7s1.3-0.2,1.8-0.2c1.3,0,2.3,0.3,2.9,0.8
|
||||
c0.7,0.6,1,1.4,1,2.6v6.8H161.2z M158,32.4c0.8,0,1.4-0.2,1.9-0.7c0.5-0.4,0.7-1,0.7-1.8v-0.9l-1.3,0.1c-1,0-1.8,0.2-2.2,0.5
|
||||
s-0.7,0.8-0.7,1.4c0,0.5,0.1,0.8,0.4,1C157,32.3,157.4,32.4,158,32.4z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st37" d="M168,34.1c-1.5,0-2.7-0.4-3.5-1.3s-1.2-2.2-1.2-3.8c0-1.7,0.4-3,1.2-3.9s2-1.4,3.6-1.4c1.1,0,2,0.2,2.9,0.6
|
||||
l-0.7,1.7c-0.9-0.4-1.7-0.5-2.3-0.5c-1.8,0-2.6,1.2-2.6,3.5c0,1.1,0.2,2,0.7,2.6c0.4,0.6,1.1,0.9,1.9,0.9c1,0,1.9-0.2,2.7-0.7v1.9
|
||||
c-0.4,0.2-0.8,0.4-1.2,0.5S168.6,34.1,168,34.1z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st37" d="M181.2,33.9H179v-6.2c0-0.8-0.2-1.4-0.5-1.7c-0.3-0.4-0.8-0.6-1.5-0.6c-0.9,0-1.6,0.3-2,0.8
|
||||
c-0.4,0.5-0.6,1.4-0.6,2.7v5h-2.2V19.6h2.2v3.6c0,0.6,0,1.2-0.1,1.9h0.1c0.3-0.5,0.7-0.9,1.2-1.1c0.5-0.3,1.1-0.4,1.8-0.4
|
||||
c2.5,0,3.7,1.2,3.7,3.7V33.9z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st37" d="M187.1,34.1c-1.6,0-2.8-0.5-3.7-1.4c-0.9-0.9-1.3-2.2-1.3-3.8c0-1.7,0.4-3,1.2-3.9c0.8-0.9,2-1.4,3.4-1.4
|
||||
c1.3,0,2.4,0.4,3.2,1.2c0.8,0.8,1.2,1.9,1.2,3.4v1.2h-6.7c0,1,0.3,1.7,0.8,2.3c0.5,0.5,1.2,0.8,2.1,0.8c0.6,0,1.2-0.1,1.7-0.2
|
||||
c0.5-0.1,1.1-0.3,1.7-0.6v1.7c-0.5,0.2-1.1,0.4-1.6,0.5C188.4,34,187.8,34.1,187.1,34.1z M186.7,25.2c-0.7,0-1.2,0.2-1.6,0.6
|
||||
c-0.4,0.4-0.7,1.1-0.7,1.9h4.6c0-0.8-0.2-1.5-0.6-1.9S187.4,25.2,186.7,25.2z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 11 KiB |
7
mesos-templates/aurora/config.yml
Normal file
@ -0,0 +1,7 @@
|
||||
name: Aurora
|
||||
description: |
|
||||
Orchestrate long-running services and cron jobs
|
||||
version: v1
|
||||
category: Frameworks
|
||||
maintainer: James Oliver <joliver@rancher.com>
|
||||
minimum_rancher_version: v1.0.0
|
8
mesos-templates/chronos/0/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
chronos:
|
||||
image: rancher/chronos:latest
|
||||
environment:
|
||||
MESOS_SERVICE: ${MESOS_SERVICE}
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
CHRONOS_HTTP_PORT: ${CHRONOS_HTTP_PORT}
|
||||
ports:
|
||||
- "${CHRONOS_HTTP_PORT}:${CHRONOS_HTTP_PORT}"
|
32
mesos-templates/chronos/0/rancher-compose.yml
Normal file
@ -0,0 +1,32 @@
|
||||
.catalog:
|
||||
name: Chronos
|
||||
version: v1
|
||||
description: |
|
||||
Distributed, fault-tolerant cron
|
||||
questions:
|
||||
- variable: ZK_SERVICE
|
||||
description: Choose the Zookeeper service to use.
|
||||
label: Zookeeper Service
|
||||
required: true
|
||||
type: service
|
||||
# a stack type would be nice
|
||||
- variable: MESOS_SERVICE
|
||||
description: Choose the Mesos stack to use.
|
||||
label: Mesos Stack
|
||||
required: true
|
||||
type: service
|
||||
- variable: CHRONOS_HTTP_PORT
|
||||
description: Port to expose Chronos on.
|
||||
label: Chronos Port
|
||||
required: true
|
||||
type: int
|
||||
default: 8080
|
||||
chronos:
|
||||
scale: 1
|
||||
health_check:
|
||||
port: ${CHRONOS_HTTP_PORT}
|
||||
interval: 3000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: '/'
|
||||
response_timeout: 2000
|
40
mesos-templates/chronos/catalogIcon-chronos.svg
Normal file
@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="-338 293 87 20" style="enable-background:new -338 293 87 20;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#00435A;}
|
||||
.st1{fill:#00AEDE;}
|
||||
.st2{fill:#394D54;}
|
||||
.st3{fill:none;}
|
||||
.st4{font-family:'Exo2-Bold';}
|
||||
.st5{font-size:19px;}
|
||||
.st6{fill:#231F20;}
|
||||
.st7{fill:#497288;}
|
||||
.st8{fill:#A2B7C1;}
|
||||
.st9{fill:#466C81;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st9" d="M-315.5,296.6h-2.9c-0.1,0-0.3,0.1-0.3,0.3v4.8h-4.1v-4.8c0-0.1-0.1-0.3-0.3-0.3h-2.9c-0.1,0-0.3,0.1-0.3,0.3
|
||||
v12.4c0,0.1,0.1,0.3,0.3,0.3h2.9c0.1,0,0.3-0.1,0.3-0.3v-4.7h4.1v4.7c0,0.1,0.1,0.3,0.3,0.3h2.9c0.1,0,0.3-0.1,0.3-0.3v-12.4
|
||||
C-315.3,296.7-315.4,296.6-315.5,296.6z"/>
|
||||
<path class="st9" d="M-277.3,297.1h-2.9c-0.1,0-0.3,0.1-0.3,0.3v6.7l-4.1-6.9h-0.3h-2.9h-0.3l0.1,0.1c0,0-0.1,0.1-0.1,0.2v12.4
|
||||
c0,0.1,0.1,0.3,0.3,0.3h2.9c0.1,0,0.3-0.1,0.3-0.3v-6.8l4.1,6.9h0c0,0.1,0.1,0.2,0.2,0.2h2.9c0.1,0,0.2-0.1,0.2-0.2h0l0,0
|
||||
c0,0,0,0,0-0.1v-12.4C-277,297.2-277.2,297.1-277.3,297.1z"/>
|
||||
<path class="st9" d="M-292.6,296.6h-5.6c-1.7,0-3.1,1.4-3.1,3.1v7.1c0,1.7,1.4,3.1,3.1,3.1h5.6c1.7,0,3.1-1.4,3.1-3.1v-7.1
|
||||
C-289.6,298-290.9,296.6-292.6,296.6z M-293,305.9c0,0.6-0.5,1-1,1h-2.8c-0.6,0-1-0.5-1-1v-5.3c0-0.6,0.5-1,1-1h2.8
|
||||
c0.6,0,1,0.5,1,1V305.9z"/>
|
||||
<path class="st9" d="M-337.6,299.9v7.1c0,1.7,1.4,3.1,3.1,3.1l7.1-0.3v-2.7h-5.8c-0.6,0-1-0.5-1-1v-5.3c0-0.6,0.5-1,1-1h5.8v-2.7
|
||||
l-7.1-0.3C-336.2,296.8-337.6,298.2-337.6,299.9z"/>
|
||||
<path class="st9" d="M-267,296.6h-5.6c-1.7,0-3.1,1.4-3.1,3.1v7.1c0,1.7,1.4,3.1,3.1,3.1h5.6c1.7,0,3.1-1.4,3.1-3.1v-7.1
|
||||
C-263.9,298-265.3,296.6-267,296.6z M-267.3,305.9c0,0.6-0.5,1-1,1h-2.8c-0.6,0-1-0.5-1-1v-5.3c0-0.6,0.5-1,1-1h2.8
|
||||
c0.6,0,1,0.5,1,1V305.9z"/>
|
||||
<path class="st9" d="M-302.5,302.8v-3c0-1.7-1.4-3.1-3.1-3.1h-4.8h-0.8h-2.1c-0.1,0-0.3,0.1-0.3,0.3v12.4c0,0.1,0.1,0.3,0.3,0.3
|
||||
h2.9c0.1,0,0.3-0.1,0.3-0.3v-3.4h2.6l-0.4,0.1l2,3.8l3.8-0.1l-2.3-4.1C-303.3,305.2-302.5,304.1-302.5,302.8z M-310.1,302.9v-3.2
|
||||
c0.1,0,0.2,0,0.3,0h2.8c0.6,0,1,0.5,1,1v1.2c0,0.6-0.5,1-1,1h-2.8C-309.9,302.9-310,302.9-310.1,302.9z"/>
|
||||
<path class="st9" d="M-254,301.6h-5.5c-0.1-0.1-0.1-0.2-0.1-0.3v-1c0-0.2,0.1-0.3,0.3-0.3l6.5-0.3c0.1,0,0.2-0.1,0.2-0.2l0-2.2
|
||||
c0-0.1-0.1-0.2-0.2-0.2l-7.8-0.3c-1.5,0-2.7,1.2-2.7,2.7v2.6c0,1.5,1.2,2.7,2.7,2.7h5.3c0,0,0,0,0,0.1v1.2c0,0.2-0.1,0.3-0.3,0.3
|
||||
l-7.1,0.3c-0.1,0-0.3,0.1-0.3,0.3v2.1c0,0.1,0.1,0.3,0.3,0.3l8.6,0.3c1.4,0,2.5-1.1,2.5-2.5v-3.1
|
||||
C-251.5,302.8-252.6,301.6-254,301.6z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.7 KiB |
7
mesos-templates/chronos/config.yml
Normal file
@ -0,0 +1,7 @@
|
||||
name: Chronos
|
||||
description: |
|
||||
Distributed, fault-tolerant cron replacement
|
||||
version: v1
|
||||
category: Frameworks
|
||||
maintainer: James Oliver <joliver@rancher.com>
|
||||
minimum_rancher_version: v1.0.0
|
10
mesos-templates/elasticsearch/0/docker-compose.yml
Normal file
@ -0,0 +1,10 @@
|
||||
scheduler:
|
||||
image: rancher/elasticsearch:latest
|
||||
environment:
|
||||
MESOS_SERVICE: ${MESOS_SERVICE}
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
SCHEDULER_PORT: ${SCHEDULER_PORT}
|
||||
JAVA_OPTS: -Xms256M -Xmx256M
|
||||
NODE_COUNT: ${NODE_COUNT}
|
||||
ports:
|
||||
- "${SCHEDULER_PORT}:${SCHEDULER_PORT}"
|
37
mesos-templates/elasticsearch/0/rancher-compose.yml
Normal file
@ -0,0 +1,37 @@
|
||||
.catalog:
|
||||
name: Elasticsearch
|
||||
version: v1
|
||||
description: |
|
||||
You know, for search
|
||||
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 scheduler on.
|
||||
label: Scheduler Port
|
||||
required: true
|
||||
type: int
|
||||
default: 31100
|
||||
- variable: NODE_COUNT
|
||||
description: Number of Elasticsearch instances to run.
|
||||
label: Node Count
|
||||
required: true
|
||||
type: int
|
||||
default: 3
|
||||
scheduler:
|
||||
scale: 1
|
||||
health_check:
|
||||
port: ${SCHEDULER_PORT}
|
||||
interval: 3000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: '/'
|
||||
response_timeout: 2000
|
102
mesos-templates/elasticsearch/catalogIcon-elasticsearch.svg
Normal file
@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 54.6 69.6" style="enable-background:new 0 0 54.6 69.6;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#50BE9C;}
|
||||
.st1{fill:#8FC640;}
|
||||
.st2{fill:#6CC28A;}
|
||||
.st3{fill:#4276B9;}
|
||||
.st4{fill:#42BAEB;}
|
||||
.st5{fill:#222425;}
|
||||
.st6{fill:#5A833B;}
|
||||
.st7{fill:url(#SVGID_1_);}
|
||||
.st8{fill:url(#SVGID_2_);}
|
||||
.st9{fill:url(#SVGID_3_);}
|
||||
.st10{fill:url(#SVGID_4_);}
|
||||
.st11{fill:url(#SVGID_5_);}
|
||||
.st12{fill:url(#SVGID_6_);}
|
||||
.st13{fill:url(#SVGID_7_);}
|
||||
.st14{fill:url(#SVGID_8_);}
|
||||
.st15{fill:url(#SVGID_9_);}
|
||||
.st16{fill:#5F8C3D;}
|
||||
.st17{fill:#37573A;}
|
||||
.st18{fill:#D5D6D7;}
|
||||
.st19{fill:#848588;}
|
||||
.st20{fill:url(#SVGID_10_);}
|
||||
.st21{fill:url(#SVGID_11_);}
|
||||
.st22{fill:url(#SVGID_12_);}
|
||||
.st23{fill:url(#SVGID_13_);}
|
||||
.st24{fill:url(#SVGID_14_);}
|
||||
.st25{fill:url(#SVGID_15_);}
|
||||
.st26{fill:url(#SVGID_16_);}
|
||||
.st27{fill:url(#SVGID_17_);}
|
||||
.st28{fill:url(#SVGID_18_);}
|
||||
.st29{fill:url(#SVGID_19_);}
|
||||
.st30{fill:url(#SVGID_20_);}
|
||||
.st31{fill:url(#SVGID_21_);}
|
||||
.st32{fill:url(#SVGID_22_);}
|
||||
.st33{fill:url(#SVGID_23_);}
|
||||
.st34{fill:#E6F1FA;}
|
||||
.st35{fill:none;stroke:url(#SVGID_24_);stroke-width:3;stroke-miterlimit:10;}
|
||||
.st36{fill:#CEDCE9;}
|
||||
.st37{fill:#1A4866;}
|
||||
.st38{fill:#5DC3AF;}
|
||||
.st39{fill:#65C5B2;}
|
||||
</style>
|
||||
<g>
|
||||
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="16.8123" y1="42.9904" x2="24.1478" y2="47.2815">
|
||||
<stop offset="0" style="stop-color:#5F8C3D"/>
|
||||
<stop offset="1" style="stop-color:#37573A"/>
|
||||
</linearGradient>
|
||||
<path class="st7" d="M16.8,59.8l15-26l-7.2-4.2l-15,26c-0.3,0.5,1.1,1.8,3.1,3C14.7,59.7,16.5,60.3,16.8,59.8
|
||||
C16.8,59.8,16.8,59.8,16.8,59.8L16.8,59.8z"/>
|
||||
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="20.5288" y1="36.6795" x2="27.919" y2="41.0026">
|
||||
<stop offset="0" style="stop-color:#D5D6D7"/>
|
||||
<stop offset="1" style="stop-color:#848588"/>
|
||||
</linearGradient>
|
||||
<path class="st8" d="M21.5,35L20,37.7c-0.3,0.5,1.1,1.8,3.1,3c2,1.2,3.8,1.7,4.1,1.2c0,0,0,0,0,0l0,0l0.4-0.7l1.5-2.2
|
||||
C26.2,38.3,23.7,36.8,21.5,35z"/>
|
||||
<linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="10.47" y1="53.9054" x2="17.8602" y2="58.2285">
|
||||
<stop offset="0" style="stop-color:#D5D6D7"/>
|
||||
<stop offset="1" style="stop-color:#848588"/>
|
||||
</linearGradient>
|
||||
<path class="st9" d="M11.5,52.2L9.9,55c-0.3,0.5,1.1,1.8,3.1,3c2,1.2,3.8,1.7,4.1,1.2c0,0,0,0,0,0l0,0l0.4-0.7l1.5-2.2
|
||||
C16.2,55.5,13.6,54.1,11.5,52.2z"/>
|
||||
<path d="M11.6,17.2v-4.7H7.4c0,0-4-0.4-4,4s0,11.3,0,11.3s0.5,3.2-3.3,3.2v4.5c0,0,3.3-0.4,3.3,3.3s0,25.8,0,25.8s-0.2,4.9,4.1,4.9
|
||||
s6.6,0,6.6,0V65H9.8c0,0-2.3-0.1-2.3-2.3s0-25.8,0-25.8s0-3.7-3-3.7c0,0,3.2-0.7,3.2-3.2s0-10.7,0-10.7s0.3-2.1,2.1-2.1H11.6z"/>
|
||||
<path d="M16.4,64.9v4.7h28.4c0,0,4,0.4,4-4s0-5.3,0-5.3s-0.5-3.2,3.3-3.2v-4.5c0,0-3.3,0.4-3.3-3.3s0-3.8,0-3.8s0.2-4.9-4.1-4.9
|
||||
s-4.6,0-4.6,0v4.6h2.2c0,0,2.3,0.1,2.3,2.3s0,3.8,0,3.8s0,3.7,3,3.7c0,0-3.2,0.7-3.2,3.2s0,4.7,0,4.7s-0.3,2.1-2.1,2.1H16.4z"/>
|
||||
<g>
|
||||
|
||||
<linearGradient id="SVGID_4_" gradientUnits="userSpaceOnUse" x1="39.7736" y1="102.6877" x2="39.7866" y2="102.6877" gradientTransform="matrix(0.8632 0.5049 -0.5049 0.8632 34.6754 -49.5161)">
|
||||
<stop offset="0" style="stop-color:#5F8C3D"/>
|
||||
<stop offset="1" style="stop-color:#37573A"/>
|
||||
</linearGradient>
|
||||
<path class="st10" d="M17.2,59.2L17.2,59.2C17.2,59.2,17.2,59.2,17.2,59.2L17.2,59.2z"/>
|
||||
|
||||
<linearGradient id="SVGID_5_" gradientUnits="userSpaceOnUse" x1="31.4299" y1="103.5532" x2="39.7895" y2="103.5532" gradientTransform="matrix(0.8632 0.5049 -0.5049 0.8632 34.6754 -49.5161)">
|
||||
<stop offset="0" style="stop-color:#58595B"/>
|
||||
<stop offset="1" style="stop-color:#414042"/>
|
||||
</linearGradient>
|
||||
<path class="st11" d="M9.6,55.6c-0.3,0.5,1.1,1.8,3.1,3c2,1.2,3.8,1.7,4.1,1.2c0,0,0,0,0,0l0,0l0.3-0.5C16.9,59.7,15,59.2,13,58
|
||||
c-2-1.2-3.4-2.5-3.1-3"/>
|
||||
</g>
|
||||
<linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="14.6748" y1="19.9438" x2="54.5625" y2="19.9438">
|
||||
<stop offset="0" style="stop-color:#5F8C3D"/>
|
||||
<stop offset="1" style="stop-color:#37573A"/>
|
||||
</linearGradient>
|
||||
<circle class="st12" cx="34.6" cy="19.9" r="19.9"/>
|
||||
<radialGradient id="SVGID_7_" cx="34.6187" cy="19.9438" r="14.9438" gradientUnits="userSpaceOnUse">
|
||||
<stop offset="0" style="stop-color:#FFFFFF"/>
|
||||
<stop offset="1" style="stop-color:#CEDCE9"/>
|
||||
</radialGradient>
|
||||
<path class="st13" d="M34.6,34.9c-8.2,0-14.9-6.7-14.9-14.9S26.4,5,34.6,5s14.9,6.7,14.9,14.9S42.9,34.9,34.6,34.9z"/>
|
||||
<linearGradient id="SVGID_8_" gradientUnits="userSpaceOnUse" x1="26.5305" y1="28.032" x2="42.7068" y2="11.8557">
|
||||
<stop offset="0.676" style="stop-color:#FFFFFF;stop-opacity:0"/>
|
||||
<stop offset="1" style="stop-color:#FFFFFF"/>
|
||||
</linearGradient>
|
||||
<path class="st14" d="M34.6,31.4c-6.3,0-11.4-5.1-11.4-11.4S28.3,8.5,34.6,8.5s11.4,5.1,11.4,11.4S40.9,31.4,34.6,31.4z M34.6,11.5
|
||||
c-4.7,0-8.4,3.8-8.4,8.4s3.8,8.4,8.4,8.4s8.4-3.8,8.4-8.4S39.3,11.5,34.6,11.5z"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 5.1 KiB |
7
mesos-templates/elasticsearch/config.yml
Normal file
@ -0,0 +1,7 @@
|
||||
name: Elasticsearch
|
||||
description: |
|
||||
You know, for search
|
||||
version: v1
|
||||
category: Frameworks
|
||||
maintainer: James Oliver <joliver@rancher.com>
|
||||
minimum_rancher_version: v1.0.0
|
8
mesos-templates/kafka/0/docker-compose.yml
Normal file
@ -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}"
|
30
mesos-templates/kafka/0/rancher-compose.yml
Normal file
@ -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
mesos-templates/kafka/README.md
Normal 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
|
||||
```
|
6
mesos-templates/kafka/catalogIcon-kafka.svg
Normal file
@ -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
mesos-templates/kafka/config.yml
Normal 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
|
8
mesos-templates/marathon/0/docker-compose.yml
Normal file
@ -0,0 +1,8 @@
|
||||
marathon:
|
||||
image: rancher/marathon:latest
|
||||
environment:
|
||||
MESOS_SERVICE: ${MESOS_SERVICE}
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
MARATHON_HTTP_PORT: ${MARATHON_HTTP_PORT}
|
||||
ports:
|
||||
- "${MARATHON_HTTP_PORT}:${MARATHON_HTTP_PORT}"
|
32
mesos-templates/marathon/0/rancher-compose.yml
Normal file
@ -0,0 +1,32 @@
|
||||
.catalog:
|
||||
name: Marathon
|
||||
version: v1
|
||||
description: |
|
||||
Container orchestration platform for Mesos and DCOS
|
||||
questions:
|
||||
- variable: ZK_SERVICE
|
||||
description: Choose the Zookeeper service to use.
|
||||
label: Zookeeper Service
|
||||
required: true
|
||||
type: service
|
||||
# a stack type would be nice
|
||||
- variable: MESOS_SERVICE
|
||||
description: Choose the Mesos stack to use.
|
||||
label: Mesos Stack
|
||||
required: true
|
||||
type: service
|
||||
- variable: MARATHON_HTTP_PORT
|
||||
description: Port to expose Marathon on.
|
||||
label: Marathon Port
|
||||
required: true
|
||||
type: int
|
||||
default: 8080
|
||||
marathon:
|
||||
scale: 1
|
||||
health_check:
|
||||
port: ${MARATHON_HTTP_PORT}
|
||||
interval: 3000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: '/'
|
||||
response_timeout: 2000
|
86
mesos-templates/marathon/catalogIcon-marathon.svg
Normal file
@ -0,0 +1,86 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="0 0 193.9 33.5" style="enable-background:new 0 0 193.9 33.5;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#50BE9C;}
|
||||
.st1{fill:#8FC640;}
|
||||
.st2{fill:#6CC28A;}
|
||||
.st3{fill:#4276B9;}
|
||||
.st4{fill:#42BAEB;}
|
||||
.st5{fill:#222425;}
|
||||
.st6{fill:#5A833B;}
|
||||
.st7{fill:url(#SVGID_1_);}
|
||||
.st8{fill:url(#SVGID_2_);}
|
||||
.st9{fill:url(#SVGID_3_);}
|
||||
.st10{fill:url(#SVGID_4_);}
|
||||
.st11{fill:url(#SVGID_5_);}
|
||||
.st12{fill:url(#SVGID_6_);}
|
||||
.st13{fill:url(#SVGID_7_);}
|
||||
.st14{fill:url(#SVGID_8_);}
|
||||
.st15{fill:url(#SVGID_9_);}
|
||||
.st16{fill:#5F8C3D;}
|
||||
.st17{fill:#37573A;}
|
||||
.st18{fill:#D5D6D7;}
|
||||
.st19{fill:#848588;}
|
||||
.st20{fill:url(#SVGID_10_);}
|
||||
.st21{fill:url(#SVGID_11_);}
|
||||
.st22{fill:url(#SVGID_12_);}
|
||||
.st23{fill:url(#SVGID_13_);}
|
||||
.st24{fill:url(#SVGID_14_);}
|
||||
.st25{fill:url(#SVGID_15_);}
|
||||
.st26{fill:url(#SVGID_16_);}
|
||||
.st27{fill:url(#SVGID_17_);}
|
||||
.st28{fill:url(#SVGID_18_);}
|
||||
.st29{fill:url(#SVGID_19_);}
|
||||
.st30{fill:url(#SVGID_20_);}
|
||||
.st31{fill:url(#SVGID_21_);}
|
||||
.st32{fill:url(#SVGID_22_);}
|
||||
.st33{fill:url(#SVGID_23_);}
|
||||
.st34{fill:#E6F1FA;}
|
||||
.st35{fill:none;stroke:url(#SVGID_24_);stroke-width:3;stroke-miterlimit:10;}
|
||||
.st36{fill:#CEDCE9;}
|
||||
.st37{fill:#1A4866;}
|
||||
.st38{fill:#5DC3AF;}
|
||||
.st39{fill:#65C5B2;}
|
||||
</style>
|
||||
<g>
|
||||
<g>
|
||||
<path class="st0" d="M16.8,10.8c1.7,0,3.3,0.7,4.4,1.9l8-7.3c-0.3-0.3-0.6-0.7-1-1c-0.8-0.8-1.6-1.4-2.5-2c-0.9-0.6-1.8-1-2.9-1.4
|
||||
s-2-0.7-3.1-0.9C18.6,0.1,17.9,0,16.8,0c-1.1,0-2.1,0.1-3.2,0.3s-2,0.5-3.1,0.9S8.6,2.1,7.6,2.7c-0.9,0.6-1.7,1.2-2.5,2
|
||||
S3.7,6.2,3,7.1S1.9,8.9,1.4,9.9c-0.5,1-0.8,2-1,3C0.2,14.1,0.1,15,0,16.2l10.8,0.4C11,13.4,13.6,10.8,16.8,10.8z"/>
|
||||
<path class="st1" d="M22.5,15.3L33,12.7c-0.3-1.1-0.6-2-1.1-3c-0.5-1-1-1.9-1.6-2.8c-0.4-0.5-0.8-1-1.2-1.4l-8,7.3
|
||||
C21.8,13.5,22.2,14.4,22.5,15.3z"/>
|
||||
<path class="st2" d="M33.5,15.9c-0.1-1.1-0.2-2.1-0.5-3.2l-10.5,2.6c0.1,0.5,0.2,0.9,0.2,1.4c0,2.3-1.3,4.2-3.1,5.2l5.1,9.6
|
||||
c1-0.5,1.8-1.1,2.7-1.8c0.9-0.7,1.6-1.4,2.3-2.3c0.7-0.9,1.1-1.4,1.7-2.4c0.6-1,1-1.9,1.3-2.9c0.4-1.1,0.6-2,0.7-3.1
|
||||
C33.5,18,33.5,17,33.5,15.9z"/>
|
||||
<path class="st3" d="M19.5,22c-0.8,0.4-1.8,0.7-2.8,0.7c-0.6,0-1.1-0.1-1.6-0.2l-3,10.4c1.1,0.3,2,0.5,3.2,0.6
|
||||
c1.1,0.1,2.1,0.1,3.2,0c1.1-0.1,2.1-0.3,3.1-0.6c1.1-0.3,2-0.7,3-1.2L19.5,22z"/>
|
||||
<path class="st3" d="M10.8,16.7c0-0.1,0-0.1,0-0.2L0,16.2c0,1.1,0,2.1,0.2,3.2c0.2,1.1,0.4,2.1,0.8,3.1c0.2,0.5,0.4,1,0.6,1.4
|
||||
l9.8-4.6C11.1,18.5,10.8,17.6,10.8,16.7z"/>
|
||||
<path class="st4" d="M11.4,19.3l-9.8,4.6c0.2,0.4,0.4,0.8,0.7,1.3c0.6,1,1.1,1.8,1.9,2.6s1.4,1.5,2.3,2.2c0.9,0.7,1.7,1.2,2.7,1.7
|
||||
c1,0.5,1.9,0.9,3,1.2l3-10.4C13.5,21.9,12.1,20.8,11.4,19.3z"/>
|
||||
</g>
|
||||
<g>
|
||||
<path class="st5" d="M59.5,27.8h-1.6V10.9l-6.2,14h-1.6l-6.3-14v16.9h-1.6V7.3h1.6L51,23.1l7-15.8h1.6V27.8z"/>
|
||||
<path class="st5" d="M80.3,27.8h-1.7l-1.8-5h-9.6l-1.8,5h-1.7l7.5-20.5h1.4L80.3,27.8z M76.4,21.4L72.1,9.4l-4.3,12.1H76.4z"/>
|
||||
<path class="st5" d="M98.5,27.8h-1.8l-4.9-9.5h-5.6v9.5h-1.6V7.3h7.8c1.1,0,2.1,0.2,3,0.6C96.3,8.4,97,9,97.5,9.8
|
||||
c0.5,0.8,0.8,1.8,0.8,3c0,1.5-0.4,2.7-1.3,3.7c-0.8,1-2,1.6-3.5,1.8L98.5,27.8z M96.7,12.8c0-1.4-0.4-2.4-1.2-3.1
|
||||
c-0.8-0.7-1.9-1.1-3.3-1.1h-6V17h6c0.7,0,1.3-0.1,1.8-0.3c0.6-0.2,1-0.4,1.4-0.8c0.4-0.3,0.7-0.8,0.9-1.3
|
||||
C96.6,14.1,96.7,13.5,96.7,12.8z"/>
|
||||
<path class="st5" d="M118,27.8h-1.7l-1.8-5H105l-1.8,5h-1.7l7.5-20.5h1.4L118,27.8z M114.1,21.4l-4.3-12.1l-4.3,12.1H114.1z"/>
|
||||
<path class="st5" d="M133.8,8.7h-6.1v19.1h-1.6V8.7H120V7.3h13.8V8.7z"/>
|
||||
<path class="st5" d="M152.4,27.8h-1.6v-9.7h-10.7v9.7h-1.6V7.3h1.6v9.5h10.7V7.3h1.6V27.8z"/>
|
||||
<path class="st5" d="M172.7,17.5c0,1.8,0,3.2-0.1,4.1c-0.1,0.9-0.2,1.6-0.5,2.3c-0.3,0.7-0.7,1.3-1.3,1.9
|
||||
c-0.7,0.7-1.4,1.2-2.3,1.5s-1.8,0.5-2.8,0.5c-1,0-1.9-0.2-2.8-0.5c-0.9-0.4-1.7-0.9-2.3-1.5c-0.6-0.6-1-1.3-1.3-1.9
|
||||
c-0.3-0.7-0.4-1.4-0.5-2.3c-0.1-0.9-0.1-2.2-0.1-4.1s0-3.2,0.1-4.1c0.1-0.9,0.2-1.6,0.5-2.3c0.3-0.7,0.7-1.3,1.3-1.9
|
||||
c0.7-0.7,1.4-1.2,2.3-1.5c0.9-0.4,1.8-0.5,2.8-0.5s1.9,0.2,2.8,0.5c0.9,0.4,1.7,0.9,2.3,1.5c0.6,0.6,1,1.3,1.3,1.9
|
||||
c0.3,0.7,0.4,1.4,0.5,2.3C172.7,14.3,172.7,15.7,172.7,17.5z M171.1,17.5c0-1.6,0-2.9-0.1-3.7c-0.1-0.9-0.2-1.6-0.4-2.2
|
||||
c-0.2-0.6-0.6-1.1-1.1-1.6c-0.5-0.5-1.1-0.9-1.8-1.2c-0.7-0.3-1.4-0.4-2.1-0.4c-0.7,0-1.4,0.1-2.1,0.4c-0.7,0.3-1.3,0.7-1.8,1.2
|
||||
c-0.4,0.4-0.6,0.7-0.8,1.1c-0.2,0.4-0.4,0.9-0.5,1.5c-0.1,0.6-0.2,1.3-0.2,2.1c0,0.8,0,1.7,0,2.8c0,1.6,0,2.9,0.1,3.7
|
||||
c0.1,0.8,0.2,1.6,0.4,2.2c0.2,0.6,0.6,1.1,1,1.6c0.5,0.5,1.1,0.9,1.8,1.2c0.7,0.3,1.4,0.4,2.1,0.4c0.7,0,1.4-0.1,2.1-0.4
|
||||
c0.7-0.3,1.3-0.7,1.8-1.2c0.5-0.5,0.8-1,1.1-1.6c0.2-0.6,0.4-1.3,0.4-2.1C171.1,20.4,171.1,19.2,171.1,17.5z"/>
|
||||
<path class="st5" d="M193.9,27.8h-1.6L180.5,10v17.8H179V7.3h1.6l11.8,17.8V7.3h1.6V27.8z"/>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 4.9 KiB |
7
mesos-templates/marathon/config.yml
Normal file
@ -0,0 +1,7 @@
|
||||
name: Marathon
|
||||
description: |
|
||||
A production-grade container orchestration platform
|
||||
version: v1
|
||||
category: Frameworks
|
||||
maintainer: James Oliver <joliver@rancher.com>
|
||||
minimum_rancher_version: v1.0.0
|
31
mesos-templates/mesos/0/docker-compose.yml
Normal file
@ -0,0 +1,31 @@
|
||||
master:
|
||||
image: rancher/mesos-master:latest
|
||||
environment:
|
||||
MESOS_CLUSTER: ${MESOS_CLUSTER}
|
||||
MESOS_QUORUM: ${MESOS_QUORUM}
|
||||
MASTER_PORT: ${MASTER_PORT}
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
ZK_SESSION_TIMEOUT: ${ZK_SESSION_TIMEOUT}
|
||||
ports:
|
||||
- "${MASTER_PORT}:${MASTER_PORT}"
|
||||
labels:
|
||||
mesos: master
|
||||
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
||||
io.rancher.scheduler.affinity:container_label_soft_ne: mesos=slave
|
||||
volumes:
|
||||
- /data
|
||||
slave:
|
||||
image: rancher/mesos-slave:latest
|
||||
environment:
|
||||
SLAVE_PORT: ${SLAVE_PORT}
|
||||
ZK_SERVICE: ${ZK_SERVICE}
|
||||
ports:
|
||||
- "${SLAVE_PORT}:${SLAVE_PORT}"
|
||||
labels:
|
||||
mesos: slave
|
||||
io.rancher.scheduler.affinity:container_label_ne: io.rancher.stack_service.name=$${stack_name}/$${service_name}
|
||||
io.rancher.scheduler.affinity:container_label_soft_ne: mesos=master
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- /data
|
||||
privileged: true
|
69
mesos-templates/mesos/0/rancher-compose.yml
Normal file
@ -0,0 +1,69 @@
|
||||
.catalog:
|
||||
name: Mesos
|
||||
version: v1
|
||||
questions:
|
||||
- variable: ZK_SERVICE
|
||||
description: Choose the Zookeeper service to use.
|
||||
label: Zookeeper Service
|
||||
required: true
|
||||
type: service
|
||||
- variable: ZK_SESSION_TIMEOUT
|
||||
description: You may need to increase this in virtualized environments or else zk requests will fail.
|
||||
label: Zookeeper Session Timeout
|
||||
required: true
|
||||
type: string
|
||||
default: 10secs
|
||||
- variable: MESOS_CLUSTER
|
||||
description: Mesos cluster name to appear in the Master UI.
|
||||
label: Cluster Name
|
||||
required: true
|
||||
type: string
|
||||
default: rancher
|
||||
- variable: MESOS_QUORUM
|
||||
description: Mesos Master quorum count is computed as floor( MESOS_MASTERS / 2 )
|
||||
label: Mesos Master Quorum
|
||||
required: true
|
||||
type: int
|
||||
default: 2
|
||||
- variable: MESOS_MASTERS
|
||||
description: Number of Mesos Master nodes to run.
|
||||
label: Mesos Masters
|
||||
required: true
|
||||
type: int
|
||||
default: 3
|
||||
- variable: MASTER_PORT
|
||||
description: Port to expose Mesos masters on.
|
||||
label: Master Port
|
||||
required: true
|
||||
type: int
|
||||
default: 5050
|
||||
- variable: MESOS_SLAVES
|
||||
description: Number of Mesos Slaves to run.
|
||||
label: Mesos Slaves
|
||||
required: true
|
||||
type: int
|
||||
default: 3
|
||||
- variable: SLAVE_PORT
|
||||
description: Port to expose Mesos slaves on.
|
||||
label: Slave Port
|
||||
required: true
|
||||
type: int
|
||||
default: 5051
|
||||
master:
|
||||
scale: ${MESOS_MASTERS}
|
||||
health_check:
|
||||
port: ${MASTER_PORT}
|
||||
interval: 3000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: '/metrics/snapshot'
|
||||
response_timeout: 2000
|
||||
slave:
|
||||
scale: ${MESOS_SLAVES}
|
||||
health_check:
|
||||
port: ${SLAVE_PORT}
|
||||
interval: 5000
|
||||
unhealthy_threshold: 2
|
||||
healthy_threshold: 2
|
||||
request_line: ''
|
||||
response_timeout: 3000
|
36
mesos-templates/mesos/catalogIcon-mesos.svg
Normal file
@ -0,0 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- Generator: Adobe Illustrator 19.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
viewBox="-323 267 56 64" style="enable-background:new -323 267 56 64;" xml:space="preserve">
|
||||
<style type="text/css">
|
||||
.st0{fill:#00435A;}
|
||||
.st1{fill:#00AEDE;}
|
||||
.st2{fill:#394D54;}
|
||||
</style>
|
||||
<g>
|
||||
<path class="st0" d="M-281.5,306v-13.8l-11.9,6.9L-281.5,306"/>
|
||||
<path class="st1" d="M-282.2,290.8l-11.9-6.9v13.8L-282.2,290.8"/>
|
||||
<path class="st1" d="M-295.7,297.7v-13.8l-12,6.9L-295.7,297.7"/>
|
||||
<path class="st1" d="M-296.5,282.6l-11.9-6.9v13.9L-296.5,282.6"/>
|
||||
<path class="st0" d="M-282.2,307.3l-11.9-6.9v13.8L-282.2,307.3"/>
|
||||
<path class="st0" d="M-295.7,314.3v-13.8l-12,6.9L-295.7,314.3"/>
|
||||
<path class="st1" d="M-267.9,299.1l-12-6.9V306L-267.9,299.1"/>
|
||||
<path class="st1" d="M-310,289.5v-13.9l-12,6.9L-310,289.5"/>
|
||||
<path class="st0" d="M-296.5,315.6l-11.9-6.9v13.8L-296.5,315.6"/>
|
||||
<path class="st1" d="M-310,322.5v-13.8l-12,6.9L-310,322.5"/>
|
||||
<path class="st0" d="M-296.5,299.1l-11.9-6.9V306L-296.5,299.1"/>
|
||||
<path class="st1" d="M-281.5,289.5v-13.9l-11.9,6.9L-281.5,289.5"/>
|
||||
<path class="st0" d="M-294.2,267.4v13.8l11.9-6.9L-294.2,267.4"/>
|
||||
<path class="st0" d="M-307.7,274.3l12,6.9v-13.8L-307.7,274.3"/>
|
||||
<path class="st0" d="M-282.2,323.8l-11.9-6.9v13.8L-282.2,323.8"/>
|
||||
<path class="st0" d="M-295.7,330.8v-13.8l-12,6.9L-295.7,330.8"/>
|
||||
<path class="st1" d="M-267.2,314.3v-13.8l-11.9,6.9L-267.2,314.3"/>
|
||||
<path class="st1" d="M-310,306v-13.9l-12,6.9L-310,306"/>
|
||||
<path class="st1" d="M-310.8,307.3l-12.1-6.9v13.8L-310.8,307.3"/>
|
||||
<path class="st1" d="M-267.2,297.7v-13.8l-11.9,6.9L-267.2,297.7"/>
|
||||
<path class="st1" d="M-267.9,282.6l-12-6.9v13.9L-267.9,282.6"/>
|
||||
<path class="st1" d="M-267.9,315.6l-12-6.9v13.8L-267.9,315.6"/>
|
||||
<path class="st0" d="M-281.5,322.5v-13.8l-11.9,6.9L-281.5,322.5"/>
|
||||
<path class="st1" d="M-310.8,290.8l-12.1-6.9v13.8L-310.8,290.8"/>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.0 KiB |
8
mesos-templates/mesos/config.yml
Normal file
@ -0,0 +1,8 @@
|
||||
name: Mesos
|
||||
description: |
|
||||
Abstract resources away from machines, enabling
|
||||
fault-tolerant and elastic distributed systems
|
||||
version: v1
|
||||
category: System
|
||||
maintainer: James Oliver <joliver@rancher.com>
|
||||
minimum_rancher_version: v1.0.0
|
21
mesos-templates/zookeeper/0/README.md
Normal 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.
|
||||
|
7
mesos-templates/zookeeper/0/docker-compose.yml
Normal file
@ -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}
|
36
mesos-templates/zookeeper/0/rancher-compose.yml
Normal file
@ -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
|
BIN
mesos-templates/zookeeper/catalogIcon-zookeeper.png
Normal file
After Width: | Height: | Size: 42 KiB |
9
mesos-templates/zookeeper/config.yml
Normal 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:
|