-
Notifications
You must be signed in to change notification settings - Fork 8
/
.rr-grpc-rq-tls-rootca.yaml
70 lines (55 loc) · 1.99 KB
/
.rr-grpc-rq-tls-rootca.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
version: '3'
rpc:
listen: "tcp://127.0.0.1:6001"
server:
command: "php php_test_files/worker-grpc.php"
relay: "pipes"
relay_timeout: "20s"
logs:
mode: development
level: error
# GRPC service configuration
grpc:
# socket to listen
listen: "tcp://127.0.0.1:9003"
tls:
key: "test-certs/localhost+2-key.pem"
cert: "test-certs/localhost+2.pem"
root_ca: "test-certs/rootCA.pem"
client_auth_type: require_and_verify_client_cert
# proto root file
proto: [ "proto/service/service.proto" ]
# max send limit (MB)
max_send_msg_size: 50
# max receive limit (MB)
max_recv_msg_size: 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.
max_connection_idle: 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.
max_connection_age: 0s
# MaxConnectionAgeGrace is an additive period after MaxConnectionAge after
# which the connection will be forcibly closed.
max_connection_age_grace: 0s
# MaxConnectionAgeGrace is an additive period after MaxConnectionAge after
# which the connection will be forcibly closed.
max_concurrent_streams: 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.
ping_time: 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
# Usual workers pool configuration
pool:
num_workers: 2
max_jobs: 0
allocate_timeout: 60s
destroy_timeout: 60s