Skip to content

Instantly share code, notes, and snippets.

@maauso
Last active January 30, 2017 19:52
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maauso/fa61c3427c00c44210e970fa4f245b43 to your computer and use it in GitHub Desktop.
Save maauso/fa61c3427c00c44210e970fa4f245b43 to your computer and use it in GitHub Desktop.
vamp {
persistence {
database.type = "elasticsearch"
database.elasticsearch.url = ${vamp.pulse.elasticsearch.url}
key-value-store {
type = "zookeeper"
zookeeper.servers = ${VAMP_PERSISTENCE_KEY_VALUE_STORE_ZOOKEEPER_SERVERS}
}
}
container-driver {
type = "marathon"
mesos.url = ${VAMP_CONTAINER_DRIVER_MESOS_URL}
marathon.url = ${VAMP_CONTAINER_DRIVER_MARATHON_URL}
}
gateway-driver {
host = "172.17.0.1"
logstash.host = "elasticsearch-executor.elasticsearch.mesos"
}
http-api.ui {
directory = "/usr/local/vamp/ui"
index = ${VAMP_WORKFLOW_DRIVER_VAMP_URL}"/index.html"
}
workflow-driver {
type = "marathon" # if chronos is installed: "marathon,chronos"
vamp-url: ${VAMP_WORKFLOW_DRIVER_VAMP_URL}
workflow {
deployable = {
type = "container/docker"
definition = "magneticio/vamp-workflow-agent:katana"
}
environment-variables = [
"VAMP_KEY_VALUE_STORE_TYPE=zookeeper",
"VAMP_KEY_VALUE_STORE_CONNECTION=${VAMP_PERSISTENCE_KEY_VALUE_STORE_ZOOKEEPER_SERVERS}"
"WORKFLOW_EXEUTION_PERIOD=0"
"WORKFLOW_EXEUTION_TIMEOUT=0"
]
scale {
instances = 1
cpu = 0.1
memory = 128MB
}
network = "HOST"
}
}
pulse.elasticsearch.url = ${VAMP_PULSE_ELASTICSEARCH_URL}
operation {
synchronization.period = 3 seconds
check {
cpu: true
memory: true
instances: true
}
deployment {
scale {
instances: 1
cpu: 0.2
memory: 256MB
}
arguments: [
"privileged=true"
]
}
}
lifter.artifact {
files = [
"/usr/local/vamp/artifacts/breeds/vga.js",
"/usr/local/vamp/artifacts/workflows/vga.yml"
]
resources = [
"breeds/health.js",
"workflows/health.yml",
"breeds/metrics.js",
"workflows/metrics.yml",
"breeds/kibana.js",
"workflows/kibana.yml"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment