nginx emerg balancing method does not support parameter backup 오류 > 개발

본문 바로가기
사이트 내 전체검색

개발

nginx emerg balancing method does not support parameter backup 오류

페이지 정보

profile_image
작성자 관리자 (119.♡.119.69)
댓글 0건 조회 10회 작성일 25-01-10 18:53

본문

```
.... 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

댓글목록

등록된 댓글이 없습니다.

Total 399건 1 페이지
  • RSS
개발 목록
번호 제목 조회 추천 날짜
열람중11001-10
39810001-10
397162010-31
396172010-28
395459009-23
3941152007-06
3931126007-02
392998006-23
3911200006-23
390970006-20
389843006-15
388771006-15
387955005-27
3861269004-07
3852139002-02
3842229001-09
3832464012-25
3822030012-15
3811705012-10
3801293012-03

검색


사이트 정보

Copyright © Baragi.Net. All rights reserved.