|
1 | 1 | # trino
|
2 | 2 |
|
3 |
| -   |
| 3 | +   |
4 | 4 |
|
5 | 5 | Fast distributed SQL query engine for big data analytics that helps you explore your data universe
|
6 | 6 |
|
@@ -175,65 +175,79 @@ Fast distributed SQL query engine for big data analytics that helps you explore
|
175 | 175 | ```
|
176 | 176 | * `resourceGroups` - object, default: `{}`
|
177 | 177 |
|
178 |
| - Resource groups file is mounted to /etc/trino/resource-groups/resource-groups.json |
179 |
| - Example: |
| 178 | + [Resource groups control](https://trino.io/docs/current/admin/resource-groups.html) |
| 179 | + Set the type property to either: |
| 180 | + * `configmap`, and provide the Resource groups file contents in `resourceGroupsConfig`, |
| 181 | + * `properties`, and provide configuration properties in `properties`. |
| 182 | + Properties example: |
| 183 | + ```yaml |
| 184 | + type: properties |
| 185 | + properties: | |
| 186 | + resource-groups.configuration-manager=db |
| 187 | + resource-groups.config-db-url=jdbc:mysql://trino-mysql.mysql.svc.cluster.local:3306/resource_groups |
| 188 | + resource-groups.config-db-user=username |
| 189 | + resource-groups.config-db-password=password |
| 190 | + ``` |
| 191 | + Config map example: |
180 | 192 | ```yaml
|
| 193 | + type: configmap |
| 194 | + # Resource groups file is mounted to /etc/trino/resource-groups/resource-groups.json |
181 | 195 | resourceGroupsConfig: |-
|
182 |
| - { |
183 |
| - "rootGroups": [ |
184 |
| - { |
185 |
| - "name": "global", |
186 |
| - "softMemoryLimit": "80%", |
187 |
| - "hardConcurrencyLimit": 100, |
188 |
| - "maxQueued": 100, |
189 |
| - "schedulingPolicy": "fair", |
190 |
| - "jmxExport": true, |
191 |
| - "subGroups": [ |
192 |
| - { |
193 |
| - "name": "admin", |
194 |
| - "softMemoryLimit": "30%", |
195 |
| - "hardConcurrencyLimit": 20, |
196 |
| - "maxQueued": 10 |
197 |
| - }, |
198 |
| - { |
199 |
| - "name": "finance_human_resources", |
200 |
| - "softMemoryLimit": "20%", |
201 |
| - "hardConcurrencyLimit": 15, |
202 |
| - "maxQueued": 10 |
203 |
| - }, |
204 |
| - { |
205 |
| - "name": "general", |
206 |
| - "softMemoryLimit": "30%", |
207 |
| - "hardConcurrencyLimit": 20, |
208 |
| - "maxQueued": 10 |
209 |
| - }, |
210 |
| - { |
211 |
| - "name": "readonly", |
212 |
| - "softMemoryLimit": "10%", |
213 |
| - "hardConcurrencyLimit": 5, |
214 |
| - "maxQueued": 5 |
215 |
| - } |
216 |
| - ] |
217 |
| - } |
218 |
| - ], |
219 |
| - "selectors": [ |
220 |
| - { |
221 |
| - "user": "admin", |
222 |
| - "group": "global.admin" |
223 |
| - }, |
224 |
| - { |
225 |
| - "group": "finance|human_resources", |
226 |
| - "group": "global.finance_human_resources" |
227 |
| - }, |
228 |
| - { |
229 |
| - "user": "alice", |
230 |
| - "group": "global.readonly" |
231 |
| - }, |
232 |
| - { |
233 |
| - "group": "global.general" |
234 |
| - } |
235 |
| - ] |
236 |
| - } |
| 196 | + { |
| 197 | + "rootGroups": [ |
| 198 | + { |
| 199 | + "name": "global", |
| 200 | + "softMemoryLimit": "80%", |
| 201 | + "hardConcurrencyLimit": 100, |
| 202 | + "maxQueued": 100, |
| 203 | + "schedulingPolicy": "fair", |
| 204 | + "jmxExport": true, |
| 205 | + "subGroups": [ |
| 206 | + { |
| 207 | + "name": "admin", |
| 208 | + "softMemoryLimit": "30%", |
| 209 | + "hardConcurrencyLimit": 20, |
| 210 | + "maxQueued": 10 |
| 211 | + }, |
| 212 | + { |
| 213 | + "name": "finance_human_resources", |
| 214 | + "softMemoryLimit": "20%", |
| 215 | + "hardConcurrencyLimit": 15, |
| 216 | + "maxQueued": 10 |
| 217 | + }, |
| 218 | + { |
| 219 | + "name": "general", |
| 220 | + "softMemoryLimit": "30%", |
| 221 | + "hardConcurrencyLimit": 20, |
| 222 | + "maxQueued": 10 |
| 223 | + }, |
| 224 | + { |
| 225 | + "name": "readonly", |
| 226 | + "softMemoryLimit": "10%", |
| 227 | + "hardConcurrencyLimit": 5, |
| 228 | + "maxQueued": 5 |
| 229 | + } |
| 230 | + ] |
| 231 | + } |
| 232 | + ], |
| 233 | + "selectors": [ |
| 234 | + { |
| 235 | + "user": "admin", |
| 236 | + "group": "global.admin" |
| 237 | + }, |
| 238 | + { |
| 239 | + "group": "finance|human_resources", |
| 240 | + "group": "global.finance_human_resources" |
| 241 | + }, |
| 242 | + { |
| 243 | + "user": "alice", |
| 244 | + "group": "global.readonly" |
| 245 | + }, |
| 246 | + { |
| 247 | + "group": "global.general" |
| 248 | + } |
| 249 | + ] |
| 250 | + } |
237 | 251 | ```
|
238 | 252 | * `additionalNodeProperties` - list, default: `[]`
|
239 | 253 |
|
|
0 commit comments