본문 바로가기

VMware/AVI

(DK) AVI Autosaclling with Tanzu

728x90

https://huntedhappy.github.io/avi/#1-tanzu%EC%97%90%EC%84%9C-cluster-servicetype-%EB%B3%80%EA%B2%BD

 

The Documentation vSphere Tanzu with AVI Load Balancer

VMware Tanzu with AVI

huntedhappy.github.io

SE의 성능으로 오토스케일링이 필요 할 경우 아래와 같이 동작을 한다.

기본 구조

AutoScalling을 사용하기 위해 Controller로 접속 후 Auto_rebalance를 실행 시켜준다.

## AVI Controller SSH접속 
switchto tenant admin
switchto cloud Default-Cloud
auto_rebalance
save

configure serviceenginegroup Default-Group

auto_rebalance_interval interval-value 
auto_rebalance_criteria option
auto_rebalance_capacity_per_se integer-value

예시: auto_rebalance_interval 300

## auto_rebalance_criteria 의 옵션 값은 아래와 같음
se_auto_rebalance_cpu
se_auto_rebalance_mbps
se_auto_rebalance_open_conns
se_auto_rebalance_pps

예시: auto_rebalance_capacity_per_se 200000

max_cpu_usage value
min_cpu_usage value

## 종합 
switchto tenant Avi
switchto cloud azure
configure serviceenginegroup Default-Group
auto_rebalance_interval 300
auto_rebalance_criteria se_auto_rebalance_pps
auto_rebalance_capacity_per_se 200000
max_cpu_usage 70
min_cpu_usage 30
save

Auto_rebalance 

auto_rebalance 변경 전
auto_rebalance 변경 후

## 테스트, 아파치에서 제공하는 tool사용

ab -c 300 -n 30000 -f TLS1.2 https://hello.avi.tkg.io/

아래와 같이 자동으로 SE가 배포 되는 것을 확인 할 수 있다.

반응형

'VMware > AVI' 카테고리의 다른 글

(DK) AVI GATEWAYCLASS with Tanzu  (0) 2022.04.08
(DK) AVI BGP with Tanzu  (0) 2022.04.08
(DK) AVIINFRASETTING with Tanzu  (0) 2022.04.08