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

@User3574 User3574 force-pushed the hq_autoalloc_check branch from 3d0501f to be617d4 Compare March 2, 2022 11:48
@User3574 User3574 requested a review from Kobzol March 4, 2022 12:20
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.

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 force-pushed the hq_autoalloc_check branch from eda6703 to ec9a6e0 Compare March 9, 2022 14:55
@User3574 User3574 force-pushed the hq_autoalloc_check branch from 5d6dab7 to 167715c Compare March 11, 2022 07:39
@User3574 User3574 changed the title WIP: hq alloc checker PBS alloc checker Mar 11, 2022
@Kobzol Kobzol force-pushed the main branch 5 times, most recently from 5de53cd to 4f5c720 Compare September 30, 2022 15:21
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