Bava Multi-Region Cluster Cause I Can!

This is a test to see if I can post after having migrated this blog to a WordPress multi-region setup on Reclaim Cloud, which means the primary blog hosted in the UK is being replicated to Toronto, Canada and the West Coast of the USA. If there should be an issue in the primary data center in the UK the site will fail over to Canada or the US. I have not configured that entirely yet, but I did want to see if posting works before I get too excited (last time I tried this I could not post, hence I retreated to the stand-alone instance).

Is this overkill for my purposes? Absolutely. Is it a blast to play with? Absolutely.

I had some issues getting my embeds to work on this new setup given the Content Security Policy through Litespeed was set quite strict. It took me some time to hunt all that down, and I am not sure I have it set ideally yet, but I was able to find the vhconf.xml file in /var/www/conf and modify it to specify what URLs are allowed to be embedded. I imagine this is safer, but also wondering how many embeds are now broken on this blog of just one post shy of 3600!

Here is the bit for the content-security-policy in virtualhost conf file that I added for frame-ancestors and frame-src:

Content-Security-Policy "frame-ancestors data:;frame-src https://bava.tv https://youtube.com https://twitter.com https://platform.twitter.com https://www.youtube.com https://bavatuesdays.com;"

I am going to be playing more with this until Wednesday when I present my findings to the rest of the Reclaim Hosting team, but in the interim let’s just see if this post works….

This entry was posted in Reclaim Cloud, WordPress and tagged , , . Bookmark the permalink.

10 Responses to Bava Multi-Region Cluster Cause I Can!

  1. Reverend says:

    Can I still post a comment, and if so will it populate on primary instance once that starts up?

    • Reverend says:

      It worked! So when the primary cluster is down it can still write to the database of a secondary cluster, so it stands to reason that one could still write a blog post when primary instance goes down. The last piece of this small puzzle is will this comment populate in the primary instances database once that cluster is restarted? Let’s give that a test….

  2. Reverend says:

    Will this be considered comment #3?

  3. Reverend says:

    Testing the syncing of comments across multiple region’s databases yet again

  4. Pingback: WordPress Multi-Region | bavatuesdays

  5. Pingback: bavaweekly 3-13-2022 | bavatuesdays

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.