-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.toml
63 lines (59 loc) · 2.14 KB
/
config.toml
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
[api.http]
# bind socket for the http server
bind = "0.0.0.0:9001"
[api.grpc]
# bind socket for the grpc server
bind = "0.0.0.0:50052"
# whether to enable gRPC
enabled = true
# whether to enable gRPC reflection(introspection)
enable-reflection = true
# which compression encodings does the server accept for requests
accept-compressed = "Gzip"
# which compression encodings might the server use for responses
send-compressed = "Gzip"
# limits the maximum size of a decoded message. Defaults to 50MB
max-decoding-message-size = 52428800
# limits the maximum size of an encoded message. Defaults to 50MB
max-encoding-message-size = 52428800
# limits the maximum size of streaming channel
max-channel-size = 128
# set a timeout on for all request handlers in seconds. Defaults to 60s
timeout = 60
# sets the maximum frame size to use for HTTP2(must be within 16,384 and 16,777,215). Defaults to 16MB
max-frame-size = 16777215
# set the concurrency limit applied to on requests inbound per connection. Defaults to 32
concurrency-limit-per-connection = 32
# sets the SETTINGS_MAX_CONCURRENT_STREAMS spec option for HTTP2 connections
max-concurrent-streams = 1024
# set the value of `TCP_NODELAY` option for accepted connections. Enabled by default
tcp-nodelay = true
# max number of future periods considered during requests
draw-lookahead-period-count = 10
# set whether HTTP2 Ping frames are enabled on accepted connections. Default is no HTTP2 keepalive (`None`)
http2-keepalive-interval = 60
# sets a timeout for receiving an acknowledgement of the keepalive ping. Default is 20 seconds
http2-keepalive-timeout = 20
[orderbook]
# The `arena_capacity` parameter represents the number of orders that will
# be pre-allocated.
arena-capacity = 10_000
# The `queue_capacity` parameter represents the capacity of each vector
# storing orders at the same price point.
queue-capacity = 100
[amqp]
# bind socket for the amqp server
bind = "127.0.0.1:5672"
# username
username = "rabbitmq"
# password
password = "rabbitmq"
[db]
host = "localhost"
port = 5432
username = "postgres"
password = "postgres"
database = "orders"
min-connections = 5
max-connections = 10
application-name = "orderbook-db"