Repository navigation
Expand file tree
/
Copy pathDeployConfig.json
More file actions
174 lines (174 loc) · 6.01 KB
/
Copy pathDeployConfig.json
File metadata and controls
174 lines (174 loc) · 6.01 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
{
"description": "mod-erm-usage configuration template",
"moduleDefaults": {
"resources": [
{
"name": "cpu",
"value": "64",
"description": "CPU request/limit for container"
},
{
"name": "memory",
"value": "3000",
"description": "Memory hard limit for container (MiB)"
},
{
"name": "memoryReservation",
"value": "2625",
"description": "Memory reservation / soft limit (MiB)"
}
],
"java": [
{
"name": "xmx",
"value": "1980m",
"description": "Maximum Java heap size, 66% of the container memory, leaving room for metaspace, code cache, threads and direct buffers"
},
{
"name": "MaxMetaspaceSize",
"value": "128m",
"description": "Maximum Java metaspace size"
}
],
"deployment": {
"isHaSupported": true,
"replicasRecommendedCount": 2,
"description": "Stateless: no timers or background jobs, every request is independent, so replicas can be added freely."
},
"kong": {
"timeouts": {
"connect": "60s",
"send": "60s",
"read": "60s"
},
"description": "Default timeouts. Report exports and uploads answer only when finished and take longer with larger date ranges and reports, so very large ones can exceed the read timeout. Raise it if they do, keeping the sidecar's REQUEST_TIMEOUT (in milliseconds, 60000 when unset) at least as high."
},
"EnvVars": [
{
"name": "DB_HOST",
"value": null,
"description": "PostgreSQL host for writes and, unless a read-only replica is configured, for reads.",
"type": "DB",
"essential": true
},
{
"name": "DB_PORT",
"value": "5432",
"description": "PostgreSQL port; the database client uses 5432 when unset.",
"type": "DB",
"essential": false
},
{
"name": "DB_USERNAME",
"value": null,
"description": "PostgreSQL user that owns the tenant schemas, supplied through secret management.",
"type": "DB",
"essential": true
},
{
"name": "DB_PASSWORD",
"value": null,
"description": "Password of the PostgreSQL user, supplied through secret management.",
"type": "DB",
"essential": true
},
{
"name": "DB_DATABASE",
"value": null,
"description": "PostgreSQL database that holds the tenant schemas.",
"type": "DB",
"essential": true
},
{
"name": "DB_HOST_READER",
"value": null,
"description": "Host of a synchronously replicated read-only replica for read queries, which the write instance must list in synchronous_standby_names; takes effect only together with DB_PORT_READER, otherwise reads go to DB_HOST.",
"type": "DB",
"essential": false
},
{
"name": "DB_PORT_READER",
"value": null,
"description": "Port of the synchronously replicated read-only replica; takes effect only together with DB_HOST_READER.",
"type": "DB",
"essential": false
},
{
"name": "DB_SERVER_PEM",
"value": null,
"description": "PEM certificate or certificate chain to verify the PostgreSQL server; when set, connections require TLS 1.3 and hostname verification, when unset they are unencrypted.",
"type": "DB",
"essential": false
},
{
"name": "DB_QUERYTIMEOUT",
"value": "0",
"description": "Query timeout in milliseconds that RMB applies only when the module passes it to a query; this module does not, so the setting has no effect.",
"type": "DB",
"essential": false
},
{
"name": "DB_MAXPOOLSIZE",
"value": "4",
"description": "Maximum number of concurrent database connections per tenant in one module instance.",
"type": "DB",
"essential": false
},
{
"name": "DB_MAXSHAREDPOOLSIZE",
"value": null,
"description": "Maximum number of concurrent database connections in one module instance, shared by all tenants; when set, DB_MAXPOOLSIZE is ignored and one tenant can block others, so leave it unset unless that is wanted.",
"type": "DB",
"essential": false
},
{
"name": "DB_CONNECTIONRELEASEDELAY",
"value": "60000",
"description": "Milliseconds after which an idle database connection is closed; 0 keeps idle connections open.",
"type": "DB",
"essential": false
},
{
"name": "DB_MAX_LIFETIME",
"value": "1800000",
"description": "Maximum lifetime of a database connection in milliseconds, after which it is closed once idle; 0 means unlimited.",
"type": "DB",
"essential": false
},
{
"name": "DB_RECONNECTATTEMPTS",
"value": "0",
"description": "Number of retries after a failed database connection attempt; 0 disables reconnecting.",
"type": "DB",
"essential": false
},
{
"name": "DB_RECONNECTINTERVAL",
"value": "1000",
"description": "Milliseconds between database reconnection attempts; relevant only when reconnecting is enabled.",
"type": "DB",
"essential": false
},
{
"name": "DB_EXPLAIN_QUERY_THRESHOLD",
"value": "1000",
"description": "Query duration in milliseconds above which RMB logs an EXPLAIN ANALYZE of searches; raise it to reduce the extra load.",
"type": "DB",
"essential": false
}
]
},
"sidecarDefaults": {
"resources": [],
"java": [],
"EnvVars": [
{
"name": "QUARKUS_HTTP_LIMITS_MAX_BODY_SIZE",
"value": "200M",
"description": "Maximum request body size the sidecar accepts, raised from the 10 MB default to the module's own 200 MB upload limit because COUNTER report uploads exceed 10 MB.",
"type": "QUARKUS",
"essential": false
}
]
}
}