nebari icon indicating copy to clipboard operation
nebari copied to clipboard

[META] - Separate out jhub-apps from hub pod for better scaling

Open aktech opened this issue 1 year ago • 3 comments

Feature description

jhub-apps at the moment runs as a subprocess in the jupyterhub pod, which limits scaling it beyond the hub pod. If we create a separate service independent of hub, then it would be easier to scale it independently. This issue comprises of two tasks:

  • [ ] separate pod for jhub-apps
  • [ ] implement autoscaling for jhub-apps to be able to scale it based on load.

Value and/or benefit

jhub-apps will be able to process lot more concurrent requests, hence improving the user experience.

Anything else?

No response

aktech avatar Aug 28 '24 12:08 aktech

Please include @tylergraff in a discussion to capture the current architecture and the proposed architecture.

tylergraff avatar Aug 28 '24 15:08 tylergraff

currently available diagrams on jhub-apps for ref. https://jhub-apps.nebari.dev/docs/concepts/infrastructure-architecture

viniciusdc avatar Aug 28 '24 15:08 viniciusdc

@krassowski comments:
There are some old stress testing scripts which might or might not be helpful:
https://github.com/IBM/jupyter-tools/blob/master/docs/stress-test.md
https://github.com/yuvipanda/hubtraf

tylergraff avatar Aug 28 '24 15:08 tylergraff