-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathexample.cloudbreak.api.toml
More file actions
73 lines (66 loc) · 2.11 KB
/
Copy pathexample.cloudbreak.api.toml
File metadata and controls
73 lines (66 loc) · 2.11 KB
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
[server]
host = "0.0.0.0"
port = 4000
max-connections = 100
gpa-stream-batch-size = 1000
request-timeout = "60s"
max-multiple-accounts = 100
[database]
url = "postgres://cloudbreak:cloudbreak@localhost:5432/cloudbreak"
api-queries-timeout = 20
[metrics]
host = "0.0.0.0"
port = 8875
# Header used to identify the subscription for per-subscription metrics.
# subscription-id-key = "x-subscription-id"
# Optional per-client-IP egress bandwidth metrics (peak gauge + throughput
# histogram). Off by default.
# client-ip-bandwidth-enabled = false
# Header used to group the per-client-IP bandwidth metrics. When unset (or when
# a request lacks the header) all bandwidth folds into a single "unconfigured"
# label. Set it to a trusted ingress header (e.g. "x-forwarded-for") to group by client IP.
# client-ip-key = "x-forwarded-for"
[query-tracker-client]
endpoint = "http://localhost:4001"
timeout = "5s"
flush-interval = "1m"
[tracing]
enabled = true
endpoint = "http://localhost:4317"
sample-ratio = 0.1
export-interval = 5
max-batch-size = 512
max-queue-size = 2048
track-idle-time = false
span-filter = [
"gpa_rpc",
"gpa_db",
"gpa_encode",
"json_encoding",
"http_request",
"gpa_db_execution",
"http_with_transport",
"gpa_encode2",
"http_connection",
"gtabo_rpc",
"slot_db",
"mint_db",
"mint_data",
"gpa_cache_finalize_query"
]
# How to handle requests with "processed" commitment level.
# "reject" (default) — return an error for processed commitment requests.
# "use-confirmed" — silently respond with confirmed data instead.
# processed-commitment = "reject"
[slot-syncronizer]
enabled = false
interval_ms = 200
# Optional module: cache configuration for the GPA queries.
[gpa-cache]
max-total-bytes = 1_073_741_824 # 1GB
min-bytes-per-query = 1_048_576 # 1MB
# Optional: queries larger than this are pinned and skipped by cleanup.
# max-bytes-query-cleanup = 104_857_600 # 100MB
# Required when max-bytes-query-cleanup is set: max fraction of max-total-bytes
# that pinned queries may collectively hold before the oldest are evicted.
# max-pinned-bytes-ratio = 0.5 # pinned queries capped at 50% of the cache