hit-lacus edited a comment on pull request #1182:
URL: https://github.com/apache/kylin/pull/1182#issuecomment-619862739


   ## Scale Out/In Query Service
   
   - https://kubernetes.io/docs/tasks/run-application/scale-stateful-set/
   
   - Modify replica(from 1 to 3)
   ```shell
   
root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment# 
vim kylin-job/kylin-job-statefulset.yaml
   
root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment# 
kubectl apply -f kylin-job/
   ```
   
   
   ```shell
   
root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment# 
kubectl get pod -n kylin-example
   NAME                READY   STATUS    RESTARTS   AGE
   kylin-job-0         2/2     Running   0          27s
   kylin-job-1         2/2     Running   0          69s
   kylin-job-2         2/2     Running   0          67s
   kylin-memcached-0   1/1     Running   0          131m
   kylin-query-0       2/2     Running   0          66m
   root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment#
   root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment#
   root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment#
   
root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment# 
kubectl get pod -n kylin-example
   NAME                READY   STATUS    RESTARTS   AGE
   kylin-job-0         2/2     Running   0          34s
   kylin-job-1         2/2     Running   0          76s
   kylin-job-2         2/2     Running   0          74s
   kylin-memcached-0   1/1     Running   0          131m
   kylin-query-0       2/2     Running   0          66m
   
root@open-source:/home/ubuntu/kylin-kubernetes/kubernetes/example/deployment# 
kubectl get statefulset -n kylin-example
   NAME              READY   AGE
   kylin-job         3/3     115m
   kylin-memcached   1/1     131m
   kylin-query       1/1     66m
   ```
   
   <img width="1189" alt="image" 
src="https://user-images.githubusercontent.com/14030549/80381674-dcaca380-88d3-11ea-9b43-96ffc452b319.png";>
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to