Commit Graph

13 Commits

Author SHA1 Message Date
25d78df557 Restore existing jobs and fix rebase (7c99eff3) issues 2021-06-15 11:37:35 +02:00
c7d59810e5 Use Nomad jobs as runners instead of allocations
As we can't control which allocations are destroyed when downscaling a job, we decided
to use Nomad jobs as our runners. Thus for each runner we prewarm for an environment,
a corresponding job is created in Nomad. We create a default job that serves as a template
for the runners. Using this, already existing execution environments can easily be restored,
once Poseidon is restarted.
2021-06-15 11:35:54 +02:00
7bbd7b7bae Fix task group name
Previously when creating a job, Poseidon would still use the old
task group name format instead of default-group as expected.
2021-06-09 18:22:28 +02:00
32fe47d669 Implement linting issues and merge request comments 2021-06-09 08:35:20 +00:00
66821dbfc8 Add query options to Nomad API queries to make sure we query the correct namespace 2021-06-09 08:35:20 +00:00
630a006258 Use more uints
Previously we accepted int values although only uint values made sense.
We adjusted this to accept uints where appropriate.
2021-06-03 13:21:49 +00:00
3afcdeaba8 Execute commands in runner via WebSocket
This enables executing commands in runners and forwarding input and
output between the runner and the websocket to the client.

Co-authored-by: Maximilian Paß <maximilian.pass@student.hpi.uni-potsdam.de>
2021-05-31 12:32:51 +02:00
4c3cc0cc4c Move Nomad job creation logic to environment manager 2021-05-28 06:52:38 +00:00
1f921b2ce2 Resolve merge conflicts 2021-05-12 12:02:12 +02:00
cee5eee622 Rename job scale functions to be consistent in naming 2021-05-12 10:46:15 +02:00
dfd34144f8 Store default Nomad job in apiClient to cache it 2021-05-12 07:52:22 +00:00
9a5d982dfc Parse default job on client side 2021-05-12 07:52:22 +00:00
1aaad5c5fe Add default Nomad job and job creation 2021-05-12 07:52:22 +00:00