CarletonComputerScienceSociety / auto-grader

Apache License 2.0
2 stars 3 forks source link

Allow for multiple flavours of resources to pick from #1

Open AngelOnFira opened 2 years ago

AngelOnFira commented 2 years ago

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

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.