HTTP 요청/응답 헤더 한도 설정

에지 라우터와 메시지 프로세서에는 요청/응답 헤더의 크기와 줄 크기에 대한 사전 정의된 한도가 있습니다.

라우터 한도 구성

라우터의 경우 /opt/apigee/customer/application/router.properties에서 다음 속성을 수정하여 기본값을 변경합니다.

# Request buffers
  # default:
  # conf_load_balancing_load.balancing.driver.large.header.buffers=8 16k
  # new value:
  conf_load_balancing_load.balancing.driver.large.header.buffers=8 32k

  # Response buffers
  # default:
  # conf_load_balancing_load.balancing.driver.proxy.buffer.size=64k
  # new value:
  conf_load_balancing_load.balancing.driver.proxy.buffer.size=128k

이 파일이 없으면 새로 만듭니다.

conf_load_balancing_load.balancing.driver.large.header.buffers의 경우 첫 번째 매개변수는 버퍼 수를 지정하고 두 번째 매개변수는 각 버퍼의 크기를 지정합니다. 버퍼는 동적으로 할당되며 사용 후에 해제됩니다. 이 설정은 요청 헤더가 1KB를 초과하는 경우에만 사용됩니다. 헤더 요청 URI가 1KB 미만인 요청에는 큰 버퍼도 사용되지 않습니다.

conf_load_balancing_load.balancing.driver.proxy.buffer.size의 경우 응답 버퍼의 크기를 지정합니다.

에지 라우터는 Nginx를 사용하여 구현됩니다. 이러한 속성에 대한 자세한 내용은 다음을 참조하세요.

다음 속성을 변경한 후에는 라우터를 다시 시작해야 합니다.

/opt/apigee/apigee-service/bin/apigee-service edge-router restart

메시지 프로세서 제한 구성

백엔드 서비스로 나가는 요청을 처리하는 메시지 프로세서의 경우 /opt/apigee/customer/application/message-processor.properties에서 다음 속성을 수정하여 이러한 기본값을 변경합니다.

conf/http.properties+HTTPRequest.line.limit=7k
conf/http.properties+HTTPRequest.headers.limit=25k
conf/http.properties+HTTPResponse.line.limit=2k
conf/http.properties+HTTPResponse.headers.limit=25k

이 파일이 없으면 새로 만듭니다.

다음 속성을 변경한 후에는 메시지 프로세서를 다시 시작해야 합니다.

/opt/apigee/apigee-service/bin/apigee-service edge-message-processor restart