Skip to content
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

allocrunner: ensure alloc state updates are handled correctly. #22

Merged
merged 1 commit into from
Apr 9, 2024

Conversation

jrasell
Copy link
Contributor

@jrasell jrasell commented Apr 8, 2024

Implementing the GetUpdatePriority function is not enough to ensure updates are handling in a similar fashion to real clients.

The alloc runner needs to be careful in how and when it updates its own state. Specifically, we do not want to directly force the client status information and instead have this populated once updates have been sent to the servers. The new functionality helps ensure updates are sent at the correct pacing, and handled in a manner more similar to real clients.

Implementing the GetUpdatePriority function is not enough to
ensure updates are handling in a similar fashion to real clients.

The alloc runner needs to be careful in how and when it updates
its own state. Specifically, we do not want to directly force
the client status information and instead have this populated once
updates have been sent to the servers. The new functionality helps
ensure updates are sent at the correct pacing, and handled in a
manner more similar to real clients.
@jrasell jrasell self-assigned this Apr 8, 2024
Copy link
Contributor

@schmichael schmichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it seems absolutely necessary to simulate staggered hook events which cause task state updates (and therefore rpcs to the server if the updates don't fall within a batch period)...

...but at what point do we just switch to using real alloc and task runners with the mock driver (or similar)?

@jrasell
Copy link
Contributor Author

jrasell commented Apr 9, 2024

Yeah it seems absolutely necessary to simulate staggered hook events which cause task state updates (and therefore rpcs to the server if the updates don't fall within a batch period)...

...but at what point do we just switch to using real alloc and task runners with the mock driver (or similar)?

Yeah good point and I was thinking about this last night. It might even be nice in the future to add a config flag that flips between real alloc/task runner and the bare simulated alloc runner.

@jrasell jrasell merged commit 5277d30 into main Apr 9, 2024
2 checks passed
@jrasell jrasell deleted the f-jrasell-fix-priority-update-handling branch April 9, 2024 07:09
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