Skip to content

Conversation

sanketsudake
Copy link
Member

@sanketsudake sanketsudake commented Nov 20, 2023

Description

Earlier we made fixes for #1939 and #2452
As part of the above issues, we added more swift way to handle concurrency #2737
and reduce bursts in pod specialization when initial bulk calls are made to the function.
In the earlier approach, we used all the capacity of a single pod(actual + virtual) and then used to specialize further pods.
This causes failure of requests if specific pod specialization fails.

This PR changes the approach a bit and uses concurrency aggressively until a point it is available(to the limit). Once we exhausted concurrency we consider using the virtual capacity of the pods until specialization finishes.

Combining this and old approach will ensure we specialize pods as much as possible and then switch to virtual capacity up to request per pod limit.

Which issue(s) this PR fixes:

Fixes #1939

Testing

Checklist:

  • I ran tests as well as code linting locally to verify my changes.
  • I have done manual verification of my changes, changes working as expected.
  • I have added new tests to cover my changes.
  • My changes follow contributing guidelines of Fission.
  • I have signed all of my commits.

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
@sanketsudake sanketsudake requested a review from pranoyk November 20, 2023 04:33
Copy link

codecov bot commented Nov 20, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d23ed57) 43.55% compared to head (879374d) 43.55%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2876   +/-   ##
=======================================
  Coverage   43.55%   43.55%           
=======================================
  Files         218      218           
  Lines       22971    22979    +8     
=======================================
+ Hits        10004    10008    +4     
- Misses      11695    11698    +3     
- Partials     1272     1273    +1     
Flag Coverage Δ
unittests 43.55% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
@sanketsudake sanketsudake merged commit b85ba9e into main Nov 21, 2023
@sanketsudake sanketsudake deleted the sanket/concurrency-use branch November 30, 2023 16:51
scott-rc added a commit to gadget-inc/fission that referenced this pull request Feb 20, 2024
scott-rc added a commit to gadget-inc/fission that referenced this pull request Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relaxed concurrency in poolmanager strategy
2 participants