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

[FEATURE] Restore memory based partitions #261

Closed
cartalla opened this issue Oct 16, 2024 · 3 comments · Fixed by #263
Closed

[FEATURE] Restore memory based partitions #261

cartalla opened this issue Oct 16, 2024 · 3 comments · Fixed by #263
Assignees

Comments

@cartalla
Copy link
Contributor

cartalla commented Oct 16, 2024

Is your feature request related to a problem? Please describe.

PR #235 changed the way that AWS ParallelCluster (APC) partitions and compute resources (CRs) were created and named.

Previously, a CR could contain multiple instance types with the same number of cores and amount of memory.
The CR name was (od|sp)-\d+-gb-[\d+]-cores.

CRs with the same amount of memory were grouped into a single APC queue.
The queue name was (od|sp)-\d+-gb.

The new partition naming convention is (od|sp)--. For example, od-c7i-4xl.

Users prefer to have memory-based partitions that use total memory, not available memory and then constrain the number of required cores.

Form older version, the partitions would look like:

PARTITION   AVAIL  TIMELIMIT  NODES  STATE NODELIST
od-4-gb        up   infinite     10  idle~ od-4-gb-dy-od-4gb-1-cores-[1-10]
sp-4-gb        up   infinite     10  idle~ sp-4-gb-dy-sp-4gb-1-cores-[1-10]
od-8-gb        up   infinite     29  idle~ od-8-gb-dy-od-8gb-1-cores-[2-20],od-8-gb-dy-od-8gb-2-cores-[1-10]

So a user could submit a job like the following:

sbatch -p od-8-gb -c 1 job.sh

Note that the current version does support specifying memory and cores.

sbatch -c 1 --mem 7700M -p on-demand job.sh

Proposal

Configure the memory and purchase model partitions.

Add constraints for on-demand and spot to give a non-partition-based way of selecting the purchase model.

Also add constraint on nodes with the amount of total memory, not available memory.

@cartalla cartalla changed the title [FEATURE] Concise and Descriptive Issue Title [FEATURE] Restore memory based partitions Oct 16, 2024
@cartalla cartalla self-assigned this Oct 16, 2024
@gwolski
Copy link

gwolski commented Oct 16, 2024

Will you be adding slurm constraints (features), so I would use would use
--constraint=MEM32,SPOT

If I wanted a 32G machine and spot? Something like that?

Or are you thinking of modifying the pcluster files so the memory is the physical memory of the machine so I can use --mem?

@cartalla
Copy link
Contributor Author

cartalla commented Oct 16, 2024 via email

@cartalla
Copy link
Contributor Author

cartalla commented Oct 16, 2024 via email

cartalla added a commit that referenced this issue Oct 16, 2024
Default Exclude only works correctly with default includes because it excludes
instance types to keep the total instance types down.
If user specifies any includes, then the default EDA excludes may exclude
instance types that they are trying to include.
Only use the default EDA includes and excludes if no includes or excludes
are configured.

Clean up the defaults to be less opinionated.
The EDA configuration is opinionated and meant to be a starting point.
But the defaults are wide open and will fail because they select too many instance types.
So, the errors will give guidance on winnowing down the instance types.

Resolves #262

Restore memory based partitions.

Related to #235.

Create partitions that include the purchase option (sp|od) and the amount of instance memory.
This maintains backward compantibility for those using partitions to select
the purchase option and amount of total memory.

Resolves #261
cartalla added a commit that referenced this issue Oct 16, 2024
Default Exclude only works correctly with default includes because it excludes
instance types to keep the total instance types down.
If user specifies any includes, then the default EDA excludes may exclude
instance types that they are trying to include.
Only use the default EDA includes and excludes if no includes or excludes
are configured.

Clean up the defaults to be less opinionated.
The EDA configuration is opinionated and meant to be a starting point.
But the defaults are wide open and will fail because they select too many instance types.
So, the errors will give guidance on winnowing down the instance types.

Resolves #262

Restore memory based partitions.

Related to #235.

Create partitions that include the purchase option (sp|od) and the amount of instance memory.
This maintains backward compantibility for those using partitions to select
the purchase option and amount of total memory.

Resolves #261

Add UseOnDemand configuration option that defaults to true so that you could
create a cluster with only spot instances.
Currently you always had to configure on-demand instances and only spot was optional.
Make both purchase options optional, but require at least one.
cartalla added a commit that referenced this issue Oct 16, 2024
Default Exclude only works correctly with default includes because it excludes
instance types to keep the total instance types down.
If user specifies any includes, then the default EDA excludes may exclude
instance types that they are trying to include.
Only use the default EDA includes and excludes if no includes or excludes
are configured.

Clean up the defaults to be less opinionated.
The EDA configuration is opinionated and meant to be a starting point.
But the defaults are wide open and will fail because they select too many instance types.
So, the errors will give guidance on winnowing down the instance types.

Resolves #262

Restore memory based partitions.

Related to #235.

Create partitions that include the purchase option (sp|od) and the amount of instance memory.
This maintains backward compantibility for those using partitions to select
the purchase option and amount of total memory.

Resolves #261

Add UseOnDemand configuration option that defaults to true so that you could
create a cluster with only spot instances.
Currently you always had to configure on-demand instances and only spot was optional.
Make both purchase options optional, but require at least one.
cartalla added a commit that referenced this issue Oct 16, 2024
Default Exclude only works correctly with default includes because it excludes
instance types to keep the total instance types down.
If user specifies any includes, then the default EDA excludes may exclude
instance types that they are trying to include.
Only use the default EDA includes and excludes if no includes or excludes
are configured.

Clean up the defaults to be less opinionated.
The EDA configuration is opinionated and meant to be a starting point.
But the defaults are wide open and will fail because they select too many instance types.
So, the errors will give guidance on winnowing down the instance types.

Resolves #262

Restore memory based partitions.

Related to #235.

Create partitions that include the purchase option (sp|od) and the amount of instance memory.
This maintains backward compantibility for those using partitions to select
the purchase option and amount of total memory.

Resolves #261

Add UseOnDemand configuration option that defaults to true so that you could
create a cluster with only spot instances.
Currently you always had to configure on-demand instances and only spot was optional.
Make both purchase options optional, but require at least one.
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 a pull request may close this issue.

2 participants