본문 바로가기

리눅스

HAProxy Statistics Page(Statistics Dashboard)

반응형

HAProxy Statistics Page(Statistics Dashboard)

대시보드 활성화

vim /etc/haproxy/haproxy.cfg
listen stats
    bind *:8404
    mode http
    stats enable
    stats uri /
    stats hide-version
    stats realm Haproxy\ Statistics
    stats refresh 10s
    stats show-node
    stats auth admin:admin
    stats admin if TRUE
http://{Server IP}:8404

Statistics Dashboard

728x90

부하 테스트

단일 슬롯

redis-benchmark -h 192.168.0.111 -p 6379 -a mypassword \
	-t set,get -n 1000000 -c 50 -r 1 -k 1
docker run --rm redis:latest redis-benchmark -h 192.168.0.111 -p 6379 -a mypassword \
	-t set,get -n 100000 -c 50

클러스터 모드

sudo apt install -y memtier-benchmark
memtier_benchmark \
	--server=192.168.0.110 --port=6379 -a mypassword \
	--cluster-mode \
	--threads=4 \
	--clients=50 \
	--test-time=60 \
	--ratio=1:1
  • 총 요청 수 기준 : --requests=100000
  • 시간 기준 : --test-time=60

 

참고URL

- haproxy documentation : Statistics dashboard

- haproxy documentation : HAProxy Configuration Manual(version 2.7.12)

- haproxy blog : HAProxy Stats Page: A Complete Guide to All Metrics

 

728x90
반응형