Culler for JupyterHub
Project description
SwanCuller
JupyterHub service that checks and cleans user sessions. It also calls bash scripts to check/renew kerberos tokens for the users, if their sessions still exist, or remove them if not in use.
Requirements
This module requires and installs Tornado.
Installation
Install the package:
pip install swanculler
Usage
Call the binary and specify configuration parameters:
swanculler --cull_every=600
Configuration parameters:
- url: The JupyterHub API URL (default=$JUPYTERHUB_API_URL)
- timeout: The idle timeout (in seconds) (default=600)
- cull_every: The interval (in seconds) for checking for idle servers to cull (default=0)
- max_age: The maximum age (in seconds) of servers that should be culled even if they are active (default=0)
- cull_users: Cull users in addition to servers (default=False)
- concurrency: Limit the number of concurrent requests made to the Hub (default=10)
- hooks_dir: Path to the directory for the krb tickets script (check_ticket.sh) (default="/srv/jupyterhub/culler)
- disable_hooks: Whether to call the krb tickets scripts or not (default=False)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
swanculler-1.0.0.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file swanculler-1.0.0.tar.gz
.
File metadata
- Download URL: swanculler-1.0.0.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06eeba584262b8c33f927a7ff11a26ee187bde08fac6e1d25d96690d0054fcbc |
|
MD5 | 5546712335a408cfb820ec4b19d9b37b |
|
BLAKE2b-256 | 45b1db9614f2aca71bc02112d355d6cb6442911eeebe16db259f739969af30e6 |
File details
Details for the file swanculler-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: swanculler-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7553c39c4b58d9e5cdd7ac3d5d24b59b75e406992b80cbe1de2a8e36db57a97b |
|
MD5 | e8f146216497c2552fd169d33a60b50e |
|
BLAKE2b-256 | 78d3a8bf00c7d85f358be7556d00288cb19c987e905a64e3eb79cb4109652bdb |