Skip to content

POC: how to use jupyterhub api to determine active/inactive users #245

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

asmacdo
Copy link
Member

@asmacdo asmacdo commented Mar 6, 2025

Just a POC so we dont lose this work

@yarikoptic
Copy link
Member

good to know, but as @satra pointed out this would just work for the duration of the instance and we would not have information persist across restarts of the hub. If it is correct, we can close unless we add some persistence to it - e.g. dumping those into some file to be reloaded upon start etc. Is that easily doable?

@asmacdo
Copy link
Member Author

asmacdo commented Jun 9, 2025

This info is stored in the JupyterHub database, which is persistent across restarts—but not if the hub is fully torn down and the database is lost. Since the DB lives on EBS, we could create backups or snapshots and restore from those if needed. That seems feasible, though I’m not familiar with the full restore workflow.

FWIW, I think it’s reasonable to leave DB backup/restore out for now. In practice, we shouldn’t need to tear down the entire hub often. And even in the rare cases that we do, the only effect would be potentially carrying a some extra data for 30–45 days afterward.

That said, having a DB backup/restore process would be nice to have—especially before upgrades—but probably not a high priority since this data is only relevant for cleanup and isn’t critical to core functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants