Auto Scale Out - TheOpenCloudEngine/uEngine-cloud GitHub Wiki
1. Kubenetes Auto Scale
> kubectl autoscale deploy class-course --min=2 --max=10 --cpu-percent=50
> kubectl get po -l run=class-course -w
# 상태 계속 보기
2. 로드 제네레이터 Siege
1. Install
> curl -C - -O http://download.joedog.org/siege/siege-latest.tar.gz
> tar -xvf siege-latest.tar.gz
> cd siege-2.70/
> ./configure
> make
> sudo make install
3. Siege의 사용
> siege -r 2000 -c 200 -v http://<course 서비스의 ip>:8080/courses
> kubectl get hpa class-course -o yaml # hpa = HorizontalPodAutoscaler