[
https://issues.apache.org/jira/browse/KYLIN-4446?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17093553#comment-17093553
]
ASF GitHub Bot commented on KYLIN-4446:
---------------------------------------
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]
> Kylin on kubernetes in a quickstart env
> ---------------------------------------
>
> Key: KYLIN-4446
> URL: https://issues.apache.org/jira/browse/KYLIN-4446
> Project: Kylin
> Issue Type: Sub-task
> Components: Integration
> Reporter: Xiaoxiang Yu
> Assignee: Xiaoxiang Yu
> Priority: Major
> Labels: kubernetes
> Fix For: v3.1.0
>
> Original Estimate: 48h
> Time Spent: 2h
> Remaining Estimate: 46h
>
> For a quick-start/PoC purpose, please consider use this template, it will
> only deploy one Kylin instance with role {color:#de350b}*ALL* {color}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)