-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathdeploy_a_starrocks_cluster_with_custom_configurations.yaml
106 lines (99 loc) · 2.6 KB
/
deploy_a_starrocks_cluster_with_custom_configurations.yaml
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
# This manifest deploys a StarRocks cluster with FE, BE, CN, and mount their own config
# By default, the StarRocks cluster will use the default configuration file.
# This configuration might not be apt for your specific environment; for instance, the
# default -Xmx8192m setting for FE could potentially lead to JVM Out Of Memory issues.
# FE default config: https://github.com/StarRocks/starrocks/blob/main/conf/fe.conf
# BE default config: https://github.com/StarRocks/starrocks/blob/main/conf/be.conf
# CN default config: https://github.com/StarRocks/starrocks/blob/main/conf/cn.conf
apiVersion: starrocks.com/v1
kind: StarRocksCluster
metadata:
name: a-starrocks-with-custom-config # change the name if needed.
spec:
starRocksFeSpec:
image: starrocks/fe-ubuntu:latest
replicas: 3
limits:
cpu: 8
memory: 16Gi
requests:
cpu: 8
memory: 16Gi
configMapInfo:
configMapName: starrockscluster-sample-fe-cm
resolveKey: fe.conf
starRocksBeSpec:
image: starrocks/be-ubuntu:latest
replicas: 3
limits:
cpu: 16
memory: 64Gi
requests:
cpu: 16
memory: 64Gi
configMapInfo:
configMapName: starrockscluster-sample-be-cm
resolveKey: be.conf
starRocksCnSpec:
image: starrocks/cn-ubuntu:latest
replicas: 1
limits:
cpu: 16
memory: 64Gi
requests:
cpu: 16
memory: 64Gi
configMapInfo:
configMapName: starrockscluster-sample-cn-cm
resolveKey: cn.conf
---
# fe config
apiVersion: v1
kind: ConfigMap
metadata:
name: starrockscluster-sample-fe-cm
labels:
cluster: starrockscluster-sample
data:
fe.conf: |
LOG_DIR = ${STARROCKS_HOME}/log
DATE = "$(date +%Y%m%d-%H%M%S)"
JAVA_OPTS="-Dlog4j2.formatMsgNoLookups=true -Xmx8192m -XX:+UseG1GC -Xlog:gc*:${LOG_DIR}/fe.gc.log.$DATE:time"
http_port = 8030
rpc_port = 9020
query_port = 9030
edit_log_port = 9010
mysql_service_nio_enabled = true
sys_log_level = INFO
---
# be config
apiVersion: v1
kind: ConfigMap
metadata:
name: starrockscluster-sample-be-cm
labels:
cluster: starrockscluster-sample
data:
be.conf: |
be_port = 9060
webserver_port = 8040
heartbeat_service_port = 9050
brpc_port = 8060
sys_log_level = INFO
default_rowset_type = beta
---
# cn config
apiVersion: v1
kind: ConfigMap
metadata:
name: starrockscluster-sample-cn-cm
labels:
cluster: starrockscluster-sample
data:
cn.conf: |
sys_log_level = INFO
# ports for admin, web, heartbeat service
thrift_port = 9060
webserver_port = 8040
heartbeat_service_port = 9050
brpc_port = 8060