-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Restore HTTP payload size limit, make it configurable #3130
Conversation
Fixes #2000 Configuration: ```yaml preview_operation_limits: http_max_request_bytes: 2000000 # Default value: 2 MB ```
CI performance tests
|
Open question: config locationI put this in the One way to resolve this might be, when moving this set of features out of preview, rename the section from |
Before increasing this limit significantly consider doing performance testing | ||
in an environment similar to your production, especially if some clients are untrusted. | ||
Many concurrent large requests could can the Router to run out of memory. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chandrikas in case you want to have a look at the wording here. (The same is copied in the changelog.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @SimonSapin. Made some minor edits but looks good overall
Co-authored-by: Chandrika Srinivasan <chandrikas@users.noreply.github.com>
Co-authored-by: Chandrika Srinivasan <chandrikas@users.noreply.github.com>
07e7703
to
492b76d
Compare
492b76d
to
46faa0c
Compare
Follow-up to #3130 <!-- start metadata --> **Checklist** Complete the checklist (and note appropriate exceptions) before a final PR is raised. - [x] Changes are compatible[^1] - [x] Documentation[^2] completed - [x] Performance impact assessed and acceptable - Tests added and passing[^3] - [ ] Unit Tests - [ ] Integration Tests - [ ] Manual Tests **Exceptions** *Note any exceptions here* **Notes** [^1]. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. [^2]. Configuration is an important part of many changes. Where applicable please try to document configuration examples. [^3]. Tick whichever testing boxes are applicable. If you are adding Manual Tests: - please document the manual testing (extensively) in the Exceptions. - please raise a separate issue to automate the test and label it (or ask for it to be labeled) as `manual test`
Fixes #2000
Configuration:
Checklist
Complete the checklist (and note appropriate exceptions) before a final PR is raised.
Exceptions
This change could be a compatibility issue for users who rely on large requests and upgrading from a Router version that didn’t have this limit. However this issue is easily fixed through configuration. The error log (but not the HTTP response) mention the relevant configuration key.
Notes
[^1]. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.
[^2]. Configuration is an important part of many changes. Where applicable please try to document configuration examples.
[^3]. Tick whichever testing boxes are applicable. If you are adding Manual Tests:
- please document the manual testing (extensively) in the Exceptions.
- please raise a separate issue to automate the test and label it (or ask for it to be labeled) as
manual test