프라이빗 클라우드용 Edge v4.18.01
API 프록시 요청의 일부로 메시지 프로세서에 액세스할 때 라우터 제한 시간을 구성할 수 있습니다.
Edge 라우터는 API 프록시를 통해 요청을 처리하는 과정에서 메시지 프로세서에 액세스하려고 시도할 때 기본 제한 시간이 57초입니다. 제한 시간이 만료되면 라우터는 다른 메시지 프로세서(사용 가능한 경우)에 연결을 시도합니다. 그렇지 않으면 오류가 반환됩니다.
다음 두 속성은 라우터 제한 시간을 제어합니다.
| 속성 | 설명 |
|---|---|
conf_load_balancing_load.balancing.driver.proxy.read.timeout |
|
| 단일 라우터의 대기 시간을 지정합니다. 기본값은 57초입니다.
다음 표기법을 사용하여 시간 간격을 초 이외의 값으로 설정할 수 있습니다. ms: milliseconds s: seconds (default) m: minutes h: hours d: days w: weeks M: months (length of 30 days) y: years (length of 365 days) 예를 들어 대기 시간을 2시간으로 설정하려면 다음 값 중 하나를 사용할 수 있습니다. conf_load_balancing_load.balancing.driver.proxy.read.timeout=2h # 2 hours OR conf_load_balancing_load.balancing.driver.proxy.read.timeout=120m # 120 minutes |
|
conf_load_balancing_load.balancing.driver.nginx.upstream_next_timeout |
|
Edge 설치에 여러 메시지 프로세서가 있는 경우 모든 메시지 프로세서의 총 대기 시간을 지정합니다. 기본값은 conf_load_balancing_load.balancing.driver.proxy.read.timeout의 현재 값 또는 57초입니다.
|
|
라우터 제한 시간을 구성하려면 다음 안내를 따르세요.
/opt/apigee/customer/application/router.properties파일을 수정합니다. 파일이 없으면 만듭니다.- 다음 예시와 같이 구성 파일에서 속성을 설정합니다.
conf_load_balancing_load.balancing.driver.proxy.read.timeout=1800000ms # 1800000 milliseconds conf_load_balancing_load.balancing.driver.nginx.upstream_next_timeout=1d # 1 day
- 속성 파일이 'apigee' 사용자의 소유인지 확인합니다.
chown apigee:apigee /opt/apigee/customer/application/router.properties
- 라우터를 다시 시작합니다.
/opt/apigee/apigee-service/bin/apigee-service edge-router restart
재시도 옵션을 설정하려면 가상 호스트 구성 속성에 설명된 대로 RetryOption 속성을 사용합니다.