-
Notifications
You must be signed in to change notification settings - Fork 386
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Use gRPC streaming calls to run jobs
Serf queries works over UDP sending messages to nodes and expecting a response, there is no guarantee or verification of the message delivery. This was causing some job executions to be lost, around 1%-2% on edge cases. Solution Agents will listen to gRPC calls from the servers, using server-side streaming, the other way around as currently, agents will send Execution progress as now. Servers will actively order nodes to run the jobs, so we can verify the job is actually being executed or report an error in case it's not. This maintains the same guarantees in job status reporting and streaming, also adding the possibility to cancel an execution in the future.
- Loading branch information
Victor Castell
committed
May 6, 2020
1 parent
90d7caa
commit a9cf417
Showing
18 changed files
with
738 additions
and
549 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.