Edge for Private Cloud v4.18.01
Edge でメモリの問題を回避するため、Router と Message Processor のメッセージ ペイロードのサイズは 10 MB に制限されています。このサイズを超えると、protocol.http.TooBigBody エラーが発生します。
次のプロパティを使用して、Router、Message Processor、またはその両方の上限を変更します。どちらのプロパティも、デフォルト値は 10 MB に対応する「10m」です。
- conf_http_HTTPRequest.body.buffer.limit
- conf_http_HTTPResponse.body.buffer.limit
これらのプロパティを設定するには:
- エディタで router.properties ファイルまたは message-processor.properties ファイルを開きます。ファイルが存在しない場合は作成します。
> vi /opt/apigee/customer/application/router.properties
または
> vi /opt/apigee/customer/application/message-processor.properties - 必要に応じてプロパティを設定します。
conf_http_HTTPRequest.body.buffer.limit=15m
conf_http_HTTPResponse.body.buffer.limit=15m - 変更を保存します。
- プロパティ ファイルが「apigee」ユーザーによって所有されていることを確認します。
> chown apigee:apigee /opt/apigee/customer/application/router.properties
または:
> chown apigee:apigee /opt/apigee/customer/application/message-processor.properties - Edge コンポーネントを再起動します。
> /opt/apigee/apigee-service/bin/apigee-service edge-router restart
または
> /opt/apigee/apigee-service/bin/apigee-service edge-message-processor restart