Private Cloud용 Edge v. 4.17.09
에지 라우터는 Nginx 라우터를 사용하여 구현됩니다. Edge 업그레이드 프로세스 중
라우터 구성을 변경할 때 Nginx 구성 오류가 표시될 수 있습니다. 날짜
오류가 발생하면 Edge는 문제를 일으킨 Nginx 구성 파일을
/opt/nginx/conf.d
그런 다음
Nginx configtest
도구를 사용하여
오류의 원인을 파악할 수 있습니다
예를 들어 /opt/nginx/conf.d
를 검사하면 다음이 표시됩니다.
파일:
-rw-r--r-- 1 apigee apigee 522 Jul 20 08:41 0-default.conf.bad -rw-r--r-- 1 apigee apigee 577 Jul 20 08:42 0-fallback.conf -rw-r--r-- 1 apigee apigee 1062 Jul 20 08:18 0-map.conf -rw-r--r-- 1 apigee apigee 1887 Jul 20 08:42 custorg_test_default.conf.bad
.bad 접미사가 있는 파일이 몇 개 있습니다.
일반적으로 이러한 오류는
/opt/apigee/customer/application/router.properties
가상 호스트를 잘못 변경했을 수 있습니다. 예를 들어 다음을 추가했습니다.
conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size=32k
이 값은 허용되지 않습니다.
오류를 해결하는 방법은 다음과 같습니다.
- 파일 이름에서 .bad 접미사를
폴더
/opt/nginx/conf.d
개 따라서 .conf로 끝납니다. - Nginx
configtest
를 실행합니다. 도구를 사용하여 실패 이유를 표시합니다./opt/nginx/scripts/apigee-nginx configtest
출력이 다음과 같은 형식으로 표시됩니다.
nginx: [emerg] "proxy_busy_buffers_size" must be equal to or greater than the maximum of the value of "proxy_buffer_size" and one of the "proxy_buffers" in /opt/nginx/conf/nginx.conf:47
- 설정하려면
/opt/apigee/customer/application/router.properties
을(를) 수정하세요.conf_load_balancing_load.balancing.driver.proxy.busy.buffer.size
~128k입니다. /opt/nginx/conf.d
디렉터리를 삭제했습니다.rm -rf /opt/nginx/conf.d
- 라우터를 다시 시작합니다.
/opt/apigee/apigee-service/bin/apigee-service edge-router restart
/opt/nginx/conf.d
에 더 이상 잘못된 구성 파일이 표시되지 않습니다. 있습니다.