nginx emerg balancing method does not support parameter backup 오류
페이지 정보
본문
```
.... emerg balancing method does not support parameter backup ....
```
upstream 의 server 항목에 backup 을 사용할 경우 위와같은 에러가 난다.
이유는, upstream 에 hash 지시자를 사용하는 경우는 backup 을 지정할 수가 없다.
hash 항목을 삭제하면 오류가 나지 않는다.
```
upstream backend {
hash $remote_addr;
server host1.com weight=3;
server host2.com;
server host3.com backup;
}
server {
listen 80;
location / {
proxy_pass http://backend;
}
}
```
# 참고
https://jizard.tistory.com/308
https://nginxstore.com/blog/nginx/nginx-load-balancing-%EC%82%AC%EC%9A%A9-%EC%82%AC%EB%A1%80/
.... emerg balancing method does not support parameter backup ....
```
upstream 의 server 항목에 backup 을 사용할 경우 위와같은 에러가 난다.
이유는, upstream 에 hash 지시자를 사용하는 경우는 backup 을 지정할 수가 없다.
hash 항목을 삭제하면 오류가 나지 않는다.
```
upstream backend {
hash $remote_addr;
server host1.com weight=3;
server host2.com;
server host3.com backup;
}
server {
listen 80;
location / {
proxy_pass http://backend;
}
}
```
# 참고
https://jizard.tistory.com/308
https://nginxstore.com/blog/nginx/nginx-load-balancing-%EC%82%AC%EC%9A%A9-%EC%82%AC%EB%A1%80/
추천0
댓글목록
등록된 댓글이 없습니다.