scaled number as question; added health check; set a concrete image version

This commit is contained in:
rdin021 2017-11-15 15:20:33 -05:00
parent f7286cd5f0
commit 0a52999092
2 changed files with 20 additions and 5 deletions

View File

@ -1,7 +1,7 @@
version: '2' version: '2'
services: services:
eventstore: eventstore:
image: eventstore/eventstore image: eventstore/eventstore:4.0.3
entrypoint: /bin/bash entrypoint: /bin/bash
command: command:
- -c - -c
@ -15,7 +15,7 @@ services:
/entrypoint.sh' /entrypoint.sh'
environment: environment:
- EVENTSTORE_CLUSTER_SIZE=3 - EVENTSTORE_CLUSTER_SIZE=${number_of_nodes}
- EVENTSTORE_CLUSTER_DNS=eventstore - EVENTSTORE_CLUSTER_DNS=eventstore
- EVENTSTORE_CLUSTER_GOSSIP_PORT=${internal_http_port} - EVENTSTORE_CLUSTER_GOSSIP_PORT=${internal_http_port}
- EVENTSTORE_INT_HTTP_PREFIXES=http://*:${internal_http_port}/ - EVENTSTORE_INT_HTTP_PREFIXES=http://*:${internal_http_port}/

View File

@ -1,9 +1,9 @@
version: '2' version: '2'
.catalog: .catalog:
name: GES name: GES
version: 0.0.1.0-ges version: 0.0.2.0-ges
description: | description: |
(Experimental) GES Cluster. (Experimental) GES
minimum_rancher_version: v0.59.0 minimum_rancher_version: v0.59.0
maintainer: "Jérôme Rx <jerome@rouaix.eu>" maintainer: "Jérôme Rx <jerome@rouaix.eu>"
uuid: ges-0 uuid: ges-0
@ -28,9 +28,24 @@ version: '2'
required: true required: true
default: 1113 default: 1113
type: "int" type: "int"
- variable: "number_of_nodes"
label: "Number of nodes"
required: true
default: 1
type: "int"
services: services:
eventstore: eventstore:
scale: 3 scale: ${number_of_nodes}
start_on_create: true start_on_create: true
health_check:
port: ${external_http_port}
request_line: OPTIONS /gossip HTTP/1.0
interval: 2000
initializing_timeout: 60000
reinitializing_timeout: 60000
unhealthy_threshold: 3
strategy: none
healthy_threshold: 2
response_timeout: 2000