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

slurmusersettings MaxWall false alarm #32

Open
ExplorerRay opened this issue Oct 16, 2024 · 2 comments
Open

slurmusersettings MaxWall false alarm #32

ExplorerRay opened this issue Oct 16, 2024 · 2 comments

Comments

@ExplorerRay
Copy link

I set users:MaxWall:30:00 in user_settings.conf and it is already set 00:30:00 in my users' association. However, it still says that User xxx currently has MaxWall=00:30:00 but configuration MaxWall=30 is different.

According to the official document, I think they are the same.

@OleHolmNielsen
Copy link
Owner

OleHolmNielsen commented Oct 16, 2024

Thanks for reporting this! There is a conflict between the syntax of the user_settings.conf file where fields are separated by ":" and a parameter which actually contains ":" as part of the value, such as MaxWall=00:30:00.
The awk command in the slurmusersettings script actually splits fields on ":" field separators:
Syntax of this file is 3, 4 or 5 items separated by ":"
[DEFAULT|NEWUSER|UNIX_group|username]:[Type]:value[:partition[:cluster]]

It would therefore seem difficult for the slurmusersettings script to accommodate a "value" field with ":" in it. I apologize for this shortcoming.
You can alternatively limit the walltime per partition in slurm.conf like this:
PartitionName=pppp Nodes=nnnn MaxTime=00:30:00

I hope this helps.
Ole

@ExplorerRay
Copy link
Author

ExplorerRay commented Oct 17, 2024

Thanks for your response, but I want to set MaxWall for a specific group of users instead of whole partition.
How about switching to another delimiter in config? Because user_settings.conf with new delimiters can be generated by slurmusersettings2conf, I don't think it will affect significantly to old users.

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

No branches or pull requests

2 participants