Skip to content

Commit

Permalink
[Docs] add starrocks-fe-and-be.yaml example
Browse files Browse the repository at this point in the history
Signed-off-by: yandongxiao <[email protected]>
  • Loading branch information
yandongxiao committed Oct 7, 2023
1 parent 372260a commit d3cf772
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/starrocks/deploy_a_starrocks_cluster_with_cn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ spec:
memory: 64Gi
starRocksCnSpec:
image: starrocks/cn-ubuntu:latest
# replicas: 1 # comment out this line if autoScalingPolicy is enabled.
limits:
cpu: 16
memory: 64Gi
requests:
cpu: 16
memory: 64Gi
autoScalingPolicy: # comment out this section if replicas is set.
# when you use autoscalingPolicy, it is recommended that replicas removed from manifests.
autoScalingPolicy:
maxReplicas: 10
minReplicas: 1
# operator creates an HPA resource based on the following field.
Expand All @@ -44,17 +44,17 @@ spec:
metrics:
- type: Resource
resource:
name: memory
name: memory # The average memory usage of CNs is specified as a resource metric.
target:
averageUtilization: 60
type: Utilization
- type: Resource
resource:
name: cpu
name: cpu # The average CPU utilization of CNs is specified as a resource metric.
target:
averageUtilization: 60
type: Utilization
behavior:
behavior: # The scaling behavior is customized according to business scenarios, helping you achieve rapid or slow scaling or disable scaling.
scaleUp:
policies:
- type: Pods
Expand Down
18 changes: 18 additions & 0 deletions examples/starrocks/starrocks-fe-and-be.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: starrocks.com/v1
kind: StarRocksCluster
metadata:
name: starrockscluster-sample
namespace: starrocks
spec:
starRocksFeSpec:
image: starrocks/fe-ubuntu:latest
replicas: 3
requests:
cpu: 4
memory: 16Gi
starRocksBeSpec:
image: starrocks/be-ubuntu:latest
replicas: 3
requests:
cpu: 4
memory: 8Gi

0 comments on commit d3cf772

Please sign in to comment.