This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
/
config-minimesos.edn
52 lines (39 loc) · 2.05 KB
/
config-minimesos.edn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
; ---------- Cluster ----------
:zookeeper {:connect-string #config/env "WAITER_ZOOKEEPER_CONNECT_STRING"}
; ---------- Metrics - Internal ----------
:metrics-config {
:codahale-reporters {
:graphite {
:factory-fn waiter.reporter/graphite-reporter
:filter-regex #config/regex "^jvm.*|^waiter.*"
:host "localhost"
:period-ms 6000
:pickled? true
:prefix "waiter-internal"
:port #config/env-int "GRAPHITE_SERVER_PORT"}}}
; ---------- Network ----------
;; Set the bind address to a specific IP:
:host "127.0.0.1"
;; Set the port:
:port #config/env-int "WAITER_PORT"
; ---------- Security ----------
:authenticator-config {:kind :one-user
:one-user {;; The user account used to launch services:
:run-as-user #config/env "WAITER_AUTH_RUN_AS_USER"}}
; ---------- Scheduling ----------
:scheduler-config {
;; Use Marathon for scheduling instances:
:kind :marathon
:marathon {
;; The URL for your Marathon HTTP API:
:url #config/env "WAITER_MARATHON"
:mesos-slave-port 5051
:http-options {:conn-timeout 10000
:socket-timeout 10000
:spnego-auth false}
:marathon-descriptor-builder {:factory-fn waiter.scheduler.marathon/default-marathon-descriptor-builder}}}
; ---------- CORS ----------
:cors-config {:kind :allow-all}
;; Require fewer failed health checks
:health-check-config {:failed-check-threshold 2}}