Skip to content

Commit 265d33c

Browse files
committed
Update tests and docs
1 parent a69e976 commit 265d33c

File tree

4 files changed

+1
-89
lines changed

4 files changed

+1
-89
lines changed

docs/modules/trino/pages/usage-guide/configuration.adoc

Lines changed: 1 addition & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -108,36 +108,7 @@ workers:
108108

109109
Here too, overriding properties such as `http-server.https.port` will lead to broken installations.
110110

111-
== Resources
112-
113-
=== Storage for data volumes
114-
115-
You can mount a volume where data (config and logs of Trino) is stored by specifying https://kubernetes.io/docs/concepts/storage/persistent-volumes[PersistentVolumeClaims] for each individual role or role group:
116-
117-
[source,yaml]
118-
----
119-
workers:
120-
config:
121-
resources:
122-
storage:
123-
data:
124-
capacity: 2Gi
125-
roleGroups:
126-
default:
127-
config:
128-
resources:
129-
storage:
130-
data:
131-
capacity: 3Gi
132-
----
133-
134-
In the above example, all Trino workers in the default group store data (the location of the property `--data-dir`) on a `3Gi` volume.
135-
Additional role groups not specifying any resources inherit the config provided on the role level (`2Gi` volume).
136-
This works the same for memory or CPU requests.
137-
138-
By default, in case nothing is configured in the custom resource for a certain role group, each Pod has a `2Gi` large local volume mount for the data location containing mainly logs.
139-
140-
=== Resource Requests
111+
== Resource Requests
141112

142113
include::home:concepts:stackable_resource_requests.adoc[]
143114

@@ -161,9 +132,6 @@ spec:
161132
max: '2000m'
162133
memory:
163134
limit: '4Gi'
164-
storage:
165-
data:
166-
capacity: '1Gi'
167135
workers:
168136
config:
169137
resources:
@@ -172,9 +140,6 @@ spec:
172140
max: '4000m'
173141
memory:
174142
limit: '4Gi'
175-
storage:
176-
data:
177-
capacity: '1Gi'
178143
----
179144

180145
WARNING: The default values are _most likely_ not sufficient to run a proper cluster in production.

examples/simple-trino-cluster-resource-limits.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ spec:
1818
replicas: 1
1919
config:
2020
resources:
21-
storage:
22-
data:
23-
capacity: 3Gi
2421
cpu:
2522
min: 300m
2623
max: "2"

tests/templates/kuttl/resources/10-assert.yaml.j2

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,6 @@ status:
2626
readyReplicas: 1
2727
replicas: 1
2828
---
29-
apiVersion: v1
30-
kind: PersistentVolumeClaim
31-
metadata:
32-
name: data-trino-coordinator-resources-default-0
33-
spec:
34-
accessModes:
35-
- ReadWriteOnce
36-
resources:
37-
requests:
38-
storage: 1Gi
39-
---
4029
apiVersion: apps/v1
4130
kind: StatefulSet
4231
metadata:
@@ -60,17 +49,6 @@ status:
6049
readyReplicas: 1
6150
replicas: 1
6251
---
63-
apiVersion: v1
64-
kind: PersistentVolumeClaim
65-
metadata:
66-
name: data-trino-worker-resources-from-role-0
67-
spec:
68-
accessModes:
69-
- ReadWriteOnce
70-
resources:
71-
requests:
72-
storage: 3Gi
73-
---
7452
apiVersion: apps/v1
7553
kind: StatefulSet
7654
metadata:
@@ -94,17 +72,6 @@ status:
9472
readyReplicas: 1
9573
replicas: 1
9674
---
97-
apiVersion: v1
98-
kind: PersistentVolumeClaim
99-
metadata:
100-
name: data-trino-worker-resources-from-role-group-0
101-
spec:
102-
accessModes:
103-
- ReadWriteOnce
104-
resources:
105-
requests:
106-
storage: 4Gi
107-
---
10875
apiVersion: apps/v1
10976
kind: StatefulSet
11077
metadata:
@@ -127,14 +94,3 @@ spec:
12794
status:
12895
readyReplicas: 1
12996
replicas: 1
130-
---
131-
apiVersion: v1
132-
kind: PersistentVolumeClaim
133-
metadata:
134-
name: data-trino-worker-resources-from-pod-overrides-0
135-
spec:
136-
accessModes:
137-
- ReadWriteOnce
138-
resources:
139-
requests:
140-
storage: 3Gi

tests/templates/kuttl/resources/10-install-trino.yaml.j2

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@ spec:
3030
logging:
3131
enableVectorAgent: {{ lookup('env', 'VECTOR_AGGREGATOR') | length > 0 }}
3232
resources:
33-
storage:
34-
data:
35-
capacity: 3Gi
3633
cpu:
3734
min: 300m
3835
max: 600m
@@ -45,9 +42,6 @@ spec:
4542
replicas: 1
4643
config:
4744
resources:
48-
storage:
49-
data:
50-
capacity: 4Gi
5145
cpu:
5246
min: 400m
5347
max: 800m

0 commit comments

Comments
 (0)