Scooter-2022 / AI-HPA

딥러닝 기반 Kubernetes Autoscaler 성능 개선 프로젝트
1 stars 3 forks source link

테스트 시각화 #15

Open hellouz818 opened 2 years ago

hellouz818 commented 2 years ago

내용

Prometheus - Grafana를 사용하여 그래프로서 시각화

아래의 두가지 방식을 시도해볼 예정

작업 내용

참고 사항

asd3638 commented 2 years ago

내용

Prometheus - Grafana를 사용하여 그래프로서 시각화

아래의 세가지 방식 시도

작업 내용

참고 사항

deploy 별로 쿼리가 변경되므로 그래프를 확인하기 위해선 확인할 deploy를 명시해야하는데 테스트니까 상관없을 것으로 예상

asd3638 commented 2 years ago

내용

가상 부하 생성 & autoscaler test

아래의 방식 시도

kubectl apply -f https://k8s.io/examples/application/php-apache.yaml
kubectl autoscale deployment php-apache --cpu-percent=50 --min=1 --max=10
kubectl get hpa
kubectl run -i --tty load-generator --rm --image=busybox:1.28 --restart=Never -- /bin/sh -c "while sleep 0.01; do wget -q -O- http://php-apache; done"

참고 사항

부하를 발생시키고 변화를 deployment 별로 시각화하여 나타내는 것이 1차 목표

asd3638 commented 2 years ago

haproxy-export 설정해봐도 뭔가 exporter 단위로 http request metric 수집하는 것 같아서.. 이거만 너무 오래 잡고 있는 것 같네;;

헬프미... @hellouz818

asd3638 commented 2 years ago

내용

haproxy exporter 설정

아래의 방식 시도 ❌ 실패 ❌

helm repo add haproxytech https://haproxytech.github.io/helm-charts
helm repo update
helm install haproxy-ingress haproxytech/kubernetes-ingress

kubectl patch deployment haproxy-ingress-kubernetes-ingress \
    -p '{"spec":{"template":{"metadata":{"annotations":{"prometheus.io/scrape": "true", "prometheus.io/port": "1024", "prometheus.io/path": "/metrics"}}}}}'

kubectl apply -f sysdig-agent-config.yaml
asd3638 commented 2 years ago

@hellouz818 @bconfiden2 haproxy-ingress LoadBalancer 198.19.225.187 ingress-con-haproxy-ingr-58d0c-11784249-1b54c24e0ce5.kr.lb.naverncp.com 80:30928/TCP,443:31420/TCP 4h40m haproxy-ingress-metrics ClusterIP 198.19.185.0 9101/TCP,10254/TCP 117m haproxy-ingress-stats ClusterIP 198.19.178.129 1936/TCP 117m