This repository has been archived by the owner on Jan 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
.rr.yaml
84 lines (71 loc) · 2.53 KB
/
.rr.yaml
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
# GRPC service configuration
grpc:
# socket to listen
listen: "tcp://localhost:9001"
# proto root file
proto: "test.proto"
# max send limit (MB)
MaxSendMsgSize: 50
# max receive limit (MB)
MaxRecvMsgSize: 50
# MaxConnectionIdle is a duration for the amount of time after which an
# idle connection would be closed by sending a GoAway. Idleness duration is
# defined since the most recent time the number of outstanding RPCs became
# zero or the connection establishment.
MaxConnectionIdle: 0s
# MaxConnectionAge is a duration for the maximum amount of time a
# connection may exist before it will be closed by sending a GoAway. A
# random jitter of +/-10% will be added to MaxConnectionAge to spread out
# connection storms.
MaxConnectionAge: 0s
# MaxConnectionAgeGrace is an additive period after MaxConnectionAge after
# which the connection will be forcibly closed.
MaxConnectionAgeGrace: 0s
# MaxConnectionAgeGrace is an additive period after MaxConnectionAge after
# which the connection will be forcibly closed.
MaxConcurrentStreams: 10
# After a duration of this time if the server doesn't see any activity it
# pings the client to see if the transport is still alive.
# If set below 1s, a minimum value of 1s will be used instead.
PingTime: 1s
# After having pinged for keepalive check, the server waits for a duration
# of Timeout and if no activity is seen even after that the connection is
# closed.
Timeout: 200s
# worker and pool configuration
workers:
command: "php worker.php"
pool:
numWorkers: 1
maxJobs: 1
metrics:
# prometheus client address (path /metrics added automatically)
address: localhost:2112
# list of metrics to collect from application
collect:
# metric name
app_metric:
# type [gauge, counter, histogram, symnmary]
type: histogram
# short description
help: "Custom application metric"
# metric groups/tags
labels: ["type"]
# for histogram only
buckets: [0.1, 0.2, 0.3, 1.0]
# monitors rr server(s)
limit:
# check worker state each second
interval: 1
# custom watch configuration for each service
services:
# monitor http workers
grpc:
# maximum allowed memory consumption per worker (soft)
maxMemory: 100
# maximum time to live for the worker (soft)
TTL: 0
# maximum allowed amount of time worker can spend in idle before being removed (for weak db connections, soft)
idleTTL: 0
# max_execution_time (brutal)
execTTL: 60