Skip to content

Postgres migration orchestration #119

Closed Answered by kevinmcconnell
olimart asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @olimart,

You're on the right track here I think. As you say, there are proxy features for pausing and maintenance mode, but we haven't exposed them in Kamal yet. You can use them, you just need to run the proxy commands directly. You can do that from a deploy hook, or you can put them in a script and run the script yourself (assuming the PG upgrade is not tied to another code change that you're deploying).

kamal-proxy pause does wait for existing requests to complete, so that you can avoid causing them to fail. But it accepts a --drain-timeout option that sets the maximum time for it to wait on the requests (30s by default, but can be whatever you want), and if that elapses it'll cut…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by olimart
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants