Menyetel batas ukuran pesan di Router atau Pemroses Pesan

Edge for Private Cloud v. 4.17.01

Untuk mencegah masalah memori di Edge, ukuran payload pesan di Router dan Message Processor dibatasi hingga 10 MB. Melebihi ukuran tersebut akan menyebabkan error protocol.http.TooBigBody.

Gunakan properti berikut untuk mengubah batas pada Router, Message Processor, atau keduanya. Kedua properti memiliki nilai default "10m" yang sesuai dengan 10 MB:

  • conf_http_HTTPRequest.body.buffer.limit
  • conf_http_HTTPResponse.body.buffer.limit

Untuk menetapkan properti ini:

  1. Buka file router.properties atau file message-processor.properties di editor. Jika file tidak ada, buat file tersebut::
    > vi /opt/apigee/customer/application/router.properties

    atau:
    > vi /opt/apigee/customer/application/message-processor.properties
  2. Tetapkan properti sesuai keinginan:
    conf_http_HTTPRequest.body.buffer.limit=15m
    conf_http_HTTPResponse.body.buffer.limit=15m
  3. Simpan perubahan.
  4. Pastikan file properti dimiliki oleh pengguna 'apigee':
    > chown apigee:apigee /opt/apigee/customer/application/router.properties
    atau:
    > chown apigee:apigee /opt/apigee/customer/application/message-processor.properties
  5. Mulai ulang komponen Edge:
    > /opt/apigee/apigee-service/bin/apigee-service edge-router restart

    atau:
    > /opt/apigee/apigee-service/bin/apigee-service edge-message-processor restart