182 lines
3.9 KiB
YAML
182 lines
3.9 KiB
YAML
|
|
# 高可用 StarRocks 集群配置
|
|||
|
|
# 基于现有的 values.yaml,配置高可用特性
|
|||
|
|
|
|||
|
|
# 设置时区
|
|||
|
|
timeZone: UTC
|
|||
|
|
|
|||
|
|
# 部署 StarRocks 集群
|
|||
|
|
starrocksCluster:
|
|||
|
|
# 集群名称
|
|||
|
|
name: "freeleaps-starrocks"
|
|||
|
|
# 命名空间
|
|||
|
|
namespace: "freeleaps-data-platform"
|
|||
|
|
# 启用 BE 和 CN 组件
|
|||
|
|
enabledBe: true
|
|||
|
|
enabledCn: true
|
|||
|
|
|
|||
|
|
# 全局组件配置
|
|||
|
|
componentValues:
|
|||
|
|
# 镜像版本
|
|||
|
|
image:
|
|||
|
|
tag: "3.3-latest"
|
|||
|
|
# 时区
|
|||
|
|
timeZone: UTC
|
|||
|
|
|
|||
|
|
# FE 组件配置
|
|||
|
|
starrocksFESpec:
|
|||
|
|
# 副本数 - 高可用需要至少3个
|
|||
|
|
replicas: 3
|
|||
|
|
# 镜像
|
|||
|
|
image:
|
|||
|
|
repository: starrocks/fe-ubuntu
|
|||
|
|
tag: "3.3-latest"
|
|||
|
|
# 资源配置
|
|||
|
|
resources:
|
|||
|
|
requests:
|
|||
|
|
cpu: 2
|
|||
|
|
memory: 4Gi
|
|||
|
|
limits:
|
|||
|
|
cpu: 4
|
|||
|
|
memory: 8Gi
|
|||
|
|
# 存储配置
|
|||
|
|
storageSpec:
|
|||
|
|
name: "fe"
|
|||
|
|
storageClassName: "azure-disk-std-ssd-lrs"
|
|||
|
|
storageSize: 20Gi
|
|||
|
|
logStorageClassName: "azure-disk-std-ssd-lrs"
|
|||
|
|
logStorageSize: 10Gi
|
|||
|
|
# 服务配置
|
|||
|
|
service:
|
|||
|
|
type: "ClusterIP"
|
|||
|
|
# 环境变量
|
|||
|
|
feEnvVars:
|
|||
|
|
- name: TZ
|
|||
|
|
value: UTC
|
|||
|
|
# 配置文件
|
|||
|
|
config: |
|
|||
|
|
LOG_DIR = ${STARROCKS_HOME}/log
|
|||
|
|
DATE = "$(date +%Y%m%d-%H%M%S)"
|
|||
|
|
JAVA_OPTS="-Dlog4j2.formatMsgNoLookups=true -Xmx4g -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
|
|||
|
|
# Pod 反亲和性 - 确保高可用
|
|||
|
|
affinity:
|
|||
|
|
podAntiAffinity:
|
|||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|||
|
|
- labelSelector:
|
|||
|
|
matchExpressions:
|
|||
|
|
- key: app.kubernetes.io/component
|
|||
|
|
operator: In
|
|||
|
|
values:
|
|||
|
|
- fe
|
|||
|
|
topologyKey: "kubernetes.io/hostname"
|
|||
|
|
|
|||
|
|
# BE 组件配置
|
|||
|
|
starrocksBeSpec:
|
|||
|
|
# 副本数 - 高可用需要至少3个
|
|||
|
|
replicas: 3
|
|||
|
|
# 镜像
|
|||
|
|
image:
|
|||
|
|
repository: starrocks/be-ubuntu
|
|||
|
|
tag: "3.3-latest"
|
|||
|
|
# 资源配置
|
|||
|
|
resources:
|
|||
|
|
requests:
|
|||
|
|
cpu: 4
|
|||
|
|
memory: 8Gi
|
|||
|
|
limits:
|
|||
|
|
cpu: 8
|
|||
|
|
memory: 16Gi
|
|||
|
|
# 存储配置
|
|||
|
|
storageSpec:
|
|||
|
|
name: "be"
|
|||
|
|
storageClassName: "azure-disk-std-ssd-lrs"
|
|||
|
|
storageSize: 50Gi
|
|||
|
|
logStorageClassName: "azure-disk-std-ssd-lrs"
|
|||
|
|
logStorageSize: 20Gi
|
|||
|
|
# 服务配置
|
|||
|
|
service:
|
|||
|
|
type: "ClusterIP"
|
|||
|
|
# 环境变量
|
|||
|
|
beEnvVars:
|
|||
|
|
- name: TZ
|
|||
|
|
value: UTC
|
|||
|
|
# 配置文件
|
|||
|
|
config: |
|
|||
|
|
be_port = 9060
|
|||
|
|
webserver_port = 8040
|
|||
|
|
heartbeat_service_port = 9050
|
|||
|
|
brpc_port = 8060
|
|||
|
|
sys_log_level = INFO
|
|||
|
|
default_rowset_type = beta
|
|||
|
|
# Pod 反亲和性 - 确保高可用
|
|||
|
|
affinity:
|
|||
|
|
podAntiAffinity:
|
|||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|||
|
|
- labelSelector:
|
|||
|
|
matchExpressions:
|
|||
|
|
- key: app.kubernetes.io/component
|
|||
|
|
operator: In
|
|||
|
|
values:
|
|||
|
|
- be
|
|||
|
|
topologyKey: "kubernetes.io/hostname"
|
|||
|
|
|
|||
|
|
# CN 组件配置
|
|||
|
|
starrocksCnSpec:
|
|||
|
|
# 副本数 - 弹性计算节点
|
|||
|
|
replicas: 2
|
|||
|
|
# 镜像
|
|||
|
|
image:
|
|||
|
|
repository: starrocks/cn-ubuntu
|
|||
|
|
tag: "3.3-latest"
|
|||
|
|
# 资源配置
|
|||
|
|
resources:
|
|||
|
|
requests:
|
|||
|
|
cpu: 2
|
|||
|
|
memory: 4Gi
|
|||
|
|
limits:
|
|||
|
|
cpu: 4
|
|||
|
|
memory: 8Gi
|
|||
|
|
# 存储配置
|
|||
|
|
storageSpec:
|
|||
|
|
name: "cn"
|
|||
|
|
storageClassName: "azure-disk-std-ssd-lrs"
|
|||
|
|
storageSize: 20Gi
|
|||
|
|
logStorageClassName: "azure-disk-std-ssd-lrs"
|
|||
|
|
logStorageSize: 10Gi
|
|||
|
|
# 服务配置
|
|||
|
|
service:
|
|||
|
|
type: "ClusterIP"
|
|||
|
|
# 环境变量
|
|||
|
|
cnEnvVars:
|
|||
|
|
- name: TZ
|
|||
|
|
value: UTC
|
|||
|
|
# 配置文件
|
|||
|
|
config: |
|
|||
|
|
sys_log_level = INFO
|
|||
|
|
thrift_port = 9060
|
|||
|
|
webserver_port = 8040
|
|||
|
|
heartbeat_service_port = 9050
|
|||
|
|
brpc_port = 8060
|
|||
|
|
# Pod 反亲和性 - 确保高可用
|
|||
|
|
affinity:
|
|||
|
|
podAntiAffinity:
|
|||
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|||
|
|
- labelSelector:
|
|||
|
|
matchExpressions:
|
|||
|
|
- key: app.kubernetes.io/component
|
|||
|
|
operator: In
|
|||
|
|
values:
|
|||
|
|
- cn
|
|||
|
|
topologyKey: "kubernetes.io/hostname"
|
|||
|
|
|
|||
|
|
# 监控配置
|
|||
|
|
metrics:
|
|||
|
|
serviceMonitor:
|
|||
|
|
enabled: true
|
|||
|
|
interval: 15s
|