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

Allow for multiple flavours of resources to pick from #1

Open
AngelOnFira opened this issue Mar 30, 2022 · 0 comments
Open

Allow for multiple flavours of resources to pick from #1

AngelOnFira opened this issue Mar 30, 2022 · 0 comments
Assignees

Comments

@AngelOnFira
Copy link
Member

AngelOnFira commented Mar 30, 2022

For certain courses/assignments, there may be restrictions on how many resources should be provided to each job. Say an algorithms course needs to make sure a run doesn't last too long, they might want fewer resources to make sure this is the case. Similarly, a course that uses threading might want more resources, and a course that requires larger compilations might require more ram.

I think several "flavours" should allow for this. The following are in units of CPU power/MB ram

  • 100/100
    Simple Python scripts, or small compilations. The benefit of this is that 100+ containers can be run together quite easily across the cluster, and only take 10000/10000(+) resources.
  • 1000/1000
    This should work for most courses, unless more ram is needed for certain tasks.
  • 2000/4000
    This flavour implies some amount of parallelism, since each CPU thread only provides 1000 units of CPU. It also contains enough for presumably any job.

I do wonder if there is a way to allow for the creation of these flavours dynamically. As far as I know, each would have to be its own group in the Nomad file, although there might be ways to get around this. For now, the scope of this issue should just be allowing several defined flavours in the Nomad file, and the choice between them on the backend.

@AngelOnFira AngelOnFira changed the title There are multiple flavours of resources to pick from Allow for multiple flavours of resources to pick from Mar 30, 2022
@AngelOnFira AngelOnFira moved this to Todo in Auto-grader Jun 8, 2022
@AngelOnFira AngelOnFira moved this to Todo in Dev Project Tasks Jun 8, 2022
@AngelOnFira AngelOnFira self-assigned this Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Todo
Archived in project
Development

No branches or pull requests

1 participant