openshift-homeroom / workshop-spawner

Multi user spawner for workshop terminals or dashboard.
Apache License 2.0
18 stars 20 forks source link

Add option for having a pool of instances ready and waiting. #5

Open GrahamDumpleton opened 5 years ago

GrahamDumpleton commented 5 years ago

If only have single image option, have a pool of ready and waiting instances mapped for pre-created user names. When new user comes along, grab a username corresponding to instance from the pool of available ones. This will avoid issues with slow startup. When an instance from the pool is used, would be replaced with fresh one so always have spares. This is going to require a process which monitors pool of available instances and use JupyterHub REST API to create user and spawn instances so ready.