Configure DO VPS to toggle from proxying cluster to local site #14
Comments
So... Not sure if I'm going to try to automate this entire process. The cluster is handling things nicely (see #6), but before I commit to making it easy to switch back and forth, I want more data and more time to test. For now, the process I followed to switch from my VPS host to the cluster is:
Bingo! |
See: geerlingguy/jeffgeerling-com#141 Had to revert some stuff, change a lot, etc. But site is back up and running now. |
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution! Please read this blog post to see the reasons why I mark issues as stale. |
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details. |
After #6 is complete, I would like to document the process of making it easy (and as automatic as possible) to switch the actual Nginx config between proxying PHP-FPM running on the local server vs. Kubernetes on the Pi cluster through the SSH tunnel.
There are a few moving parts to the transition, since Drupal is a stateful application (assuming a 'blue' server and a 'green' server):
And the opposite would apply switching back from green to blue.
Worst case, as long as I have a DB backup, I could just switch back to the VPS if there are issues with the cluster (e.g. huge load from HN slashdotting, or something like that), and sort out any comments or content edits later by hand.
The text was updated successfully, but these errors were encountered: