systemdspawner
systemdspawner copied to clipboard
Spawn JupyterHub single-user notebook servers with systemd
This PR introduces two changes: 1. New configuration option `cpu_weight`. This sets the systemd property `CPUWeight`, which causes available CPU time to be sliced in proportion to each process' weight....
Hi, I've added two configuration parameters: - `user_without_quotas `will overwrite mem_limit/cpu_limit. Users in this list will have unlimited RAM and CPU. - `special_user_quotas `will overwrite mem_limit and cpu_limit for a...
Here are the details of the dynamic user created. ``` (base) [root@jupyter jupyterenv]# getent passwd jupyter-someuser-singleuser jupyter-someuser-singleuser:*:65492:65492:Dynamic User:/:/sbin/nologin (base) [root@jupyter jupyterenv]# ``` And here is one of the issues it...
Protects against vulnerabilities such as https://arstechnica.com/information-technology/2022/01/a-bug-lurking-for-12-years-gives-attackers-root-on-every-major-linux-distro/ or the previous sudo vulnerability. Equivalent of https://github.com/jupyterhub/kubespawner/pull/545 This should be counted as a braking change.
https://github.com/jupyterhub/systemdspawner/blob/e75caddd7f310c591f642cdd559107c171a1e657/systemdspawner/systemd.py#L158 `systemctl is-active` outputs a warning and exits with `0` when run in a chroot environment ([by "design", to quote the designer](https://bugzilla.redhat.com/show_bug.cgi?id=1110675#c2)), after which `jupyterhub` attempts to stop a non-existent...
The example jupyterhub.service file is out of date and has a mistake anyway (readwrite set on /var/lib/jupyterhub but workingdir /var/local/lib) On the other hand it would be great to get...
Any Spawner working against JupyterHub 1.4.1 and later can now optionally implement use of a `delete_forever` function. If implemented, the spawner can do cleanup work associated with a JupyterHub admin...
I'm having problems where if I leave a hub running for an extended period of time (weeks or longer) it becomes slow to respond and sometimes unable to start a...
__Bug description__ The class cpu_limit doesn't work. I've applied but the maximum number of CPUs used are 0.25 (in a server with 192) __Expected behaviour__ The handling of cpu_limit, allowing...
Here are some typical maintenance action points I figure we should address. - [ ] Setup GitHub Actions based CI automation - [ ] Setup a workflow to run existing...