You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide/deployments-administration/deploy-on-kubernetes/configure-frontend-groups.md
+29-34Lines changed: 29 additions & 34 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,57 +31,52 @@ The configuration structure has changed between chart versions:
31
31
Always refer to the latest [values.yaml](https://github.com/GreptimeTeam/helm-charts/blob/main/charts/greptimedb-cluster/values.yaml) in the Helm chart repository for the most up-to-date configuration structure.
32
32
:::
33
33
34
-
When defining the frontend groups, you must specify the name field for each frontend instance. Below is an example configuration that creates read and write frontend replicas:
34
+
When configuring frontend groups, ensure that each group includes a `name` field. The following `values.yaml` example demonstrates how to define separate frontend groups for read and write operations:
35
35
36
36
```yaml
37
-
apiVersion: greptime.io/v1alpha1
38
-
kind: GreptimeDBCluster
39
-
metadata:
40
-
name: greptimedb
41
-
namespace: default
42
-
spec:
43
-
initializer:
44
-
image: greptime/greptimedb-initializer:latest
45
-
base:
46
-
main:
47
-
image: greptime/greptimedb:latest
48
-
frontendGroups:
37
+
frontend:
38
+
enabled: false # Disable default frontend group
39
+
40
+
frontendGroups:
49
41
- name: read
50
-
replicas: 2
51
-
config: |
52
-
default_timezone = "UTC"
53
-
[http]
54
-
timeout = "60s"
55
-
- name: write
56
42
replicas: 1
57
43
config: |
58
44
default_timezone = "UTC"
59
45
[http]
60
46
timeout = "60s"
61
-
meta:
62
-
replicas: 1
63
-
backendStorage:
64
-
etcd:
65
-
endpoints:
66
-
- "etcd.etcd-cluster.svc.cluster.local:2379"
67
-
datanode:
47
+
template:
48
+
main:
49
+
resources:
50
+
limits:
51
+
cpu: 2000m
52
+
memory: 2048Mi
53
+
- name: write
68
54
replicas: 1
55
+
56
+
meta:
57
+
replicas: 1
58
+
backendStorage:
59
+
etcd:
60
+
endpoints:
61
+
- "etcd.etcd-cluster.svc.cluster.local:2379"
62
+
63
+
datanode:
64
+
replicas: 1
65
+
```
66
+
67
+
You can use the following command to apply the configuration:
Copy file name to clipboardExpand all lines: i18n/zh/docusaurus-plugin-content-docs/current/user-guide/deployments-administration/deploy-on-kubernetes/configure-frontend-groups.md
0 commit comments