Page MenuHomePhabricator

[reports-service] Increase RAM and JSON payload size
ClosedPublic

Authored by bartek on Nov 8 2023, 6:03 AM.
Tags
None
Referenced Files
F2168278: D9762.id33109.diff
Tue, Jul 2, 8:52 AM
Unknown Object (File)
Sun, Jun 30, 2:36 AM
Unknown Object (File)
Mon, Jun 24, 11:07 AM
Unknown Object (File)
Mon, Jun 24, 11:07 AM
Unknown Object (File)
Mon, Jun 24, 11:07 AM
Unknown Object (File)
Mon, Jun 24, 11:07 AM
Unknown Object (File)
Mon, Jun 24, 11:06 AM
Unknown Object (File)
Mon, Jun 24, 11:01 AM
Subscribers

Details

Summary

Attempt to fix ENG-5682. Increased reports service payload limit to be at least MAX_REPORT_LENGTH from lib/utils/report-utils.js. Also increased service RAM to 512MB to avoid potential OOM errors.

Test Plan

None, I'll deploy this and see if it fixes the issue.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Change makes sense, but from our chat it seems like the test plan failed

This revision is now accepted and ready to land.Nov 8 2023, 11:51 AM

Applied short-term solution discussed in ENG-5682,

  • Moved reports service from EC2 to Fargate backend - for easier memory scaling (we don't have to care about instance memory)
  • Increased service memory limit
  • Made max report size configurable by env var, to avoid rebuilding docker image each time

Test plan: deployed this to prod, my 130MB report was successfully processed.