Menyetel batas ukuran pesan di Router atau Pemroses Pesan

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

Gunakan properti berikut untuk mengubah batas pada Router, Pemroses Pesan, atau keduanya. Kedua properti memiliki nilai default "10m" setara 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 message-processor.properties {i>file<i} 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 "apigee" pengguna:
    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