-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Increase max-content-length to 50 MB #4059
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4059 +/- ##
==========================================
- Coverage 86.07% 81.16% -4.91%
==========================================
Files 147 147
Lines 7173 7173
Branches 449 449
==========================================
- Hits 6174 5822 -352
- Misses 999 1351 +352
Continue to review full report at Codecov.
|
@@ -349,6 +349,10 @@ public static boolean onLinux() { | |||
return osname.equalsIgnoreCase("linux"); | |||
} | |||
|
|||
public static int getMaxActionSizeMB(){ | |||
return Integer.parseInt(getProperty("whisk.action.size.max", "10")); |
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.
@chetanmeh, where is whisk.action.size.max
set?
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.
Currently its not set and hence defaults to 10 MB. I wish to configure this (via system property) when we run system basic test against out setup with the max value that the cluster supports.
@dubee @markusthoemmes Please review |
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.
LGTM.
With current setup reading code attachment more than 8 MB results in error (#4028). Increase
max-content-length
to 50 MB allows reading code attachments upto maximum allowed 48 MBDescription
Akka uses max-content-length to ensure limits on incoming request entities. By default it is 8 MB while OpenWhisk allows max code upto 48 MB. To enable such large action code as attachment increase the max-content-length to 50 MB
Basic Test
This PR also adds a system basic test to ensure that such large actions can be created. Due to constrained resource on travis test only create action code upto 10 MB. However it can be increased via config by setting system property
whisk.action.size.max
(in MB)This test would also help to validate if the proxy and other settings are properly configured. See #3712 for details on which all settings need to be configured
Related issue and scope
My changes affect the following components
Types of changes
Checklist: