Can we instantiate a postgres sql server using requirements.yml for hub.db.type = postgres?
will you be interested by this feature?
Can you explain a bit more by what you mean? Installing and maintaining a postgres db ourselves? What advantage would this give over just using sqlite?
If you want to use postgres, my current recommendation is to maintain that separately and configure the hub to use it, rather than install and maintain it as part of this chart.
actually, i did this modification and was surprised how easy it is to instantiate a full postgresql server using helm requirements. The main advantage i see over sqlite it is that it allow rolling update of the hub.
of course, this could be done under a condition, typically a value such as postgres.enabled that can instantiate a postgre helm automatically for the user (without pod name colision, of course). could use, or not, a pvc, etc.
Even when not using a pvc (so data is not persistant when the pg pod restarts), it is very stable since postgres crash is really rare. So the hub is always available (thx rolling update)
I'll propose a pull request and you tell me if you like it :)
I think we should not do this in the chart here :) Running a database is serious business, and I don't think we should get ourselves into it. We could possibly provide instructions somewhere on people who want to install and maintain one themselves, but I don't think we should put it directly in this chart. It's pretty easy to have your own 'deployment chart' that has as its requirements both the JupyterHub chart and the postgres chart, if you so wish.
Can you explain a bit more on what you mean by 'Rolling Update' here? Doesn't that already happen with the current default setup?
can we at least provide the option, it is commonly found on helm charts:
I appreciate the links and the thought you have put into it! However, given that:
I don't think we should add a postgres server to this chart. I do think we should add a lot more documentation on how to do this, however - there's almost none on how to configure non-sqlite databases.
I hope this makes sense?
i try again :) Adding it as an example would help, but i agree a cleaner warning for user that postgres on kube with high availability is hard.
But i must admit since i have enabled it against z2jh, our hub is much more stable (sqlite does not allow rolling update).
I'm always +1 on adding more documentation in lieu of making the underlying
On Mon, Mar 12, 2018 at 8:52 PM Gaetan Semet notifications@github.com
wrote:
i try again :) Adding it as an example would help, but i agree a cleaner
warning for user that postgres on kube with high availability is hard.
But i must admit since i have enabled it against z@jh, our hub is much
stable.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/jupyterhub/zero-to-jupyterhub-k8s/issues/567#issuecomment-372458436,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABwSHZbFj3r6qreZ3UAL0KriBYyV2WUWks5tduALgaJpZM4Sgm_V
.
To clarify my previous comment a bit. It sounds like both of the following points are true:
I think that part of the problem here is that z2jh is both "total n00b" docs as well as "fancier deployment" docs. I think we should keep it aimed at the "total n00b" crowd, and link out to other resources (for now, ones that we don't maintain) for more complex deployments. So I think we should do:
What do folks think?
Closing this issue now as discussion since have aligned towards not letting z2jh grow further by adding other chart dependencies, and that I personally believe it is a bit to hard for z2jh maintainers to keep docs updated about this.
Most helpful comment
To clarify my previous comment a bit. It sounds like both of the following points are true:
I think that part of the problem here is that z2jh is both "total n00b" docs as well as "fancier deployment" docs. I think we should keep it aimed at the "total n00b" crowd, and link out to other resources (for now, ones that we don't maintain) for more complex deployments. So I think we should do:
What do folks think?