-
Notifications
You must be signed in to change notification settings - Fork 6
/
erateserver.yml
35 lines (33 loc) · 1.19 KB
/
erateserver.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
common:
# Cluster may be specified either:
# * as a list of erlang nodes (you may specify only name@ or @host)
# * {DiscoveryModule: DiscoveryArg} -- in this case DiscoveryModule:cluster(DiscoveryArg) must return a list of nodes.
cluster: [ers1@, ers2@, @somenode]
spare_hosts: 2
cookie: test_ers_coo
http:
port: 2880
pool_size: 30
log_access: true
groups:
erate_100:
rps: 100
burst: 50
ttl: 20000
slow:
# We can set per-group cluster and explicit shard count
cluster: [ers1@, ers3@, ers4@, ers5@]
shard_count: 2
# This group's couners are virtual queues of size 1:
rps: 0.2 # one hit per 5 seconds
burst: 1 # no simultaneous hits
default_wait: 5000 # request is blocked if needed
disco:
# Define a cluster as a call to discovery module.
# Here a list of nodes will be got by calling `ers_discovery:cluster([{"names",["ers1","ers2"]},{"hosts",["__myhost__","otherhost"]}])`.
cluster: {ers_discovery: {names: [ers1, ers2], hosts: [__myhost__, otherhost]}}
shard_count: 1
rps: 1
burst: 1
adhoc:
mode: adhoc