Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Jul 4, 2023

In this PR we move the HTTP endpoint to request function executions, and their execution status, from the worker to the planner. This means that the worker's endpoint doesn't serve any more requests.

I will ompletely remove the worker endpoint in a separate PR, as the endpoint (in SIGNAL mode) is what keeps the worker process (i.e. in pool_runner) in the foreground, so it is a rather big change.

In this PR the planner blindly forwards requests to a registered worker picked at random. In subsequent PRs the planner will keep track of in-flight requests, and will make scheduling decisions. Doing so keeps this PR simple, as it already has a lot of consequences downstream (in terms of the interaction with a running cluster, and the k8s/compose deployments).

@csegarragonz csegarragonz self-assigned this Jul 5, 2023
@csegarragonz csegarragonz marked this pull request as ready for review July 6, 2023 12:58
@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Merging #330 (5209f76) into main (9b90d3f) will increase coverage by 0.05%.
The diff coverage is 95.45%.

@@            Coverage Diff             @@
##             main     #330      +/-   ##
==========================================
+ Coverage   82.61%   82.66%   +0.05%     
==========================================
  Files          98       98              
  Lines        7861     7874      +13     
==========================================
+ Hits         6494     6509      +15     
+ Misses       1367     1365       -2     
Impacted Files Coverage Δ
src/endpoint/FaabricEndpointHandler.cpp 0.00% <0.00%> (-98.77%) ⬇️
src/planner/Planner.cpp 92.71% <88.88%> (-0.95%) ⬇️
src/planner/PlannerEndpointHandler.cpp 85.03% <100.00%> (+11.91%) ⬆️
src/scheduler/FunctionCallServer.cpp 79.68% <100.00%> (+2.10%) ⬆️
src/util/batch.cpp 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

@csegarragonz csegarragonz merged commit fa0d07d into main Jul 18, 2023
@csegarragonz csegarragonz deleted the invoke-planner branch July 18, 2023 09:51
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.

2 participants