-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
config.yml
100 lines (98 loc) · 2.46 KB
/
config.yml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
database:
dialect: sqlite3
host: 0.0.0.0
port: 9999
username: sumo
password: demo
database: "file:account?mode=memory&cache=shared&_fk=1"
max_open_conns: 1
max_idle_conns: 1
conn_max_lifetime: 1h
logging: true
email:
username: yourGmailUsername
password: yourGmailAppPassword
email_server: smtp.gmail.com
port: 587
from: from@gmail.com
services:
account:
authority: "account-service"
version: v0.1.0
endpoint: dns:///localhost:8080
metadata:
tenant_id: sumanth
greeter:
authority: "greeter-service"
version: v0.1.0
endpoint: dns:///localhost:8081
# endpoint: unix:///tmp/greeter.sock
service_config: |
{
"loadBalancingPolicy": "round_robin",
"methodConfig": [
{
"name": [
{
"service": "mkit.service.greeter.v1.GreeterService",
"method": "Hello"
}
],
"waitForReady": false,
"retryPolicy": {
"maxAttempts": 3,
"initialBackoff": "2.1s",
"maxBackoff": "2.2s",
"backoffMultiplier": 3,
"retryableStatusCodes": [
"UNAVAILABLE",
"RESOURCE_EXHAUSTED"
]
}
}
],
"retryThrottling": {
"maxTokens": 10,
"tokenRatio": 0.1
}
}
emailer:
authority: "emailer-service"
version: v0.1.0
endpoint: http://localhost:8082
recorder:
authority: "recorder-service"
version: v0.1.0
endpoint: http://localhost:8083
play:
authority: "play-service"
version: v0.1.0
endpoint: http://localhost:8084
features:
metrics:
enabled: false
backend: prometheus # stdout, prometheus, gcp
# :0 indicate you're not specifying an exact port, but you want a free, available port selected by the system.
# In config.production.yml, we use fixed :9213 address
endpoint: ":0"
sampling_fraction: 1.0
collect_period: 10s
# histogram_distribution: [.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10]
tracing:
enabled: false
backend: stdout
endpoint: "jaeger:6831"
sampling_fraction: 1.0
tls:
cert_file: config/certs/upstream-localhost-cert.pem
key_file: config/certs/upstream-localhost-key.pem
ca_file: config/certs/upstream-ca-cert.pem
server_name: "localhost"
enabled: true
validator:
enabled: true
rpclog:
enabled: true
translog:
topic: mkit.service.recorder
enabled: true