라우터 제한 시간 구성

API 프록시 요청의 일부로 메시지 프로세서에 액세스할 때 라우터 시간 제한을 구성할 수 있습니다.

에지 라우터는 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
  에지 설치에 여러 메시지 프로세서가 있는 경우 모든 메시지 프로세서의 총 대기 시간을 지정합니다. 기본값은 현재 값인 conf_load_balancing_load.balancing.driver.proxy.read.timeout 또는 57초입니다.

conf_load_balancing_load.balancing.driver.proxy.read.timeout 속성과 마찬가지로 기본값 (초) 이외의 시간 간격을 지정할 수 있습니다.

라우터의 제한 시간을 구성하려면 다음 안내를 따르세요.

  1. /opt/apigee/customer/application/router.properties 파일을 수정합니다. 파일이 없으면 파일을 만듭니다.
  2. 다음 예에서와 같이 구성 파일의 속성을 설정합니다.
    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
  3. 'Apigee' 사용자가 속성 파일을 소유하고 있는지 확인합니다.
    chown apigee:apigee /opt/apigee/customer/application/router.properties
  4. 라우터를 다시 시작합니다.
    /opt/apigee/apigee-service/bin/apigee-service edge-router restart

재시도 옵션을 설정하려면 가상 호스트 구성 속성에 설명된 대로 RetryOption 속성을 사용합니다.