nginx 로드밸런싱
# Web&WAS/Nginx2022. 5. 17. 19:27nginx 로드밸런싱

upstream 만들기 upstream { server : ... server : } upstream balance { server localhost:8080; #tomcat1 server localhost:8090; #tomcat2 #loadbalancer type defualt is roundrobin } server { listen 80; location / { proxy_pass http://balance; } } Load balancing 알고리즘 nginx는 여러가지 Load balancing 알고리즘을 지원한다. 분배하다 기준이 비슷한 정도의 서버가 여러대 있다면 그중에서 Round-robin를 돌린다. ■ hash : 바로 뒤에 따라오는 값에 따라 해싱하여 분배한다. hash $remote..

image