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

PBS alloc checker #381

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

User3574
Copy link
Contributor

Closes: #174

Copy link
Collaborator

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

The check has to be performed on the server, not on the client, because the client might not even have PBS available (or it might be a different PBS than on the server). Therefore we also need to return the error in a different way rather than logging it.

Currently, returning errors is quite basic in the client/server RPC, it would be really nice to use e.g. tarpc or some better RPC approach to solve this first.

crates/hyperqueue/src/client/commands/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/client/commands/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/client/commands/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/server/client/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/server/client/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/server/client/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/server/client/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/server/client/autoalloc.rs Outdated Show resolved Hide resolved
crates/hyperqueue/src/server/client/autoalloc.rs Outdated Show resolved Hide resolved
match get_value_by_key_json(queue, String::from(backlog)) {
Ok(value) => Some(
value
.to_string()
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this is_numeric filter here? What data is returned by PBS here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Backlog has specific format in our qstat: "max_queued":"[u:PBS_GENERIC=5]"

@User3574 User3574 changed the title WIP: hq alloc checker PBS alloc checker Mar 11, 2022
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.

Display warning if autoalloc options seem suspicious.
2 participants