Is it possible to have two WordPress instances in two different Virtual machines and share the same database and content directory? I have a WordPress website running on a Linux virtual machine with a MySQL database, which is installed in a separate VM. Now, I am trying to install another WordPress instance on another virtual machine (from a different location) to have a high-availability system. I created an NFS share, copied the wp-content directory to the NFS share, and mounted it with the first instance. I restarted Apache, and it seems to be working fine. I installed another WordPress, configured it with the same database, and mounted the wp-content directory with NFS share. The service is starting, but the issue is it’s redirecting me to the first vm. I know why it’s redirecting to the old instance; it is because the option_value of siteurl and home from the wp_options table is the old instance IP.
Do you know how I can access both instances separately? The goal is to add both instances to the load balancer for HA. I know there is a networking option within WordPress, but that won’t work since I want to have the site on two different physical servers. In that, there won’t be downtime if I patch a server, or just in case of a disaster, I will at least have one instance running. If someone can guide me, I appreciate that.
]]>https://www.ads-software.com/search/Role+intext%3A%22Plugin%3A+Amazon+Web+Services%22/?forums=1
Did not return any results. So I was afraid, this was another dead end like an older plugin:
https://www.ads-software.com/support/topic/aws-iam-roles-for-s3cloudfront-access/
But on the release notes:
https://www.ads-software.com/plugins/amazon-web-services/#developers
IAM Roles have been supported since version 0.3
WAY TO GO.
]]>We saw many posts about people sharing wp-content via NFS/EFS in its entirity, but they are not versioning the containers properly. If all content is inside EFS, the containers works like ‘dumb’ instances of wordpress, so you don’t have control of what is new at content level, and most important: you don’t have control in a rollback situation.
So, in our setup, we’re experiencing problems like:
– Session logout: I log into wp-admin. Then I click in some link (then ELB points traffic to a different container), then my session goes down (because it’s a different container).
– Mis-configurations: we enable a plugin, then few seconds after, it’s disable (because ELB pointed to a different container).
What is the best way to control these situations in a high-availability environment (many instances of wordpress) as Kubernetes?
]]>We’re about to complete at setup for running about 5.000 individual wordpress blogs.
My problem merely rely in the word of high availability. We want to put the blog across 2 to 3 webservers which are running at different locations around the world.
My question is, currently we have a command and control server which serves as the administration server. All changes to this server is synced through rsync to the webservers, but i kinda like to remove this single point of failure from our setup. My idea is to simply install W3 Total Cache and host all images on our CDN – all caching is done to a central memcache server. Is it then correct that no files are actually saved on the webservers because all media content will be on the CDN, pages and such will be in the database which is shared across all webservers?
I want to hear your ideas to make the blog running on multiple webservers to ensure high availability.
]]>With multiple Apache servers (load balanced) in a farm, each running WordPress instance for high availability + single DB server, what is a better architecture, out of following, for storage of files (documents, images etc.) uploaded by authors:
1) NAS/SAN drive: Please provide pointers/more information on how to configure this in WordPress.
2) Primary server’s file system –> then periodic replication of files to rest of the servers in the farm: Need to ensure that addition/editing of files happen through only the primary server in this case. Please provide pointers/more info on implementation of the same.
3) Any other alternative?
Apprecitate your help.
Regards,
Darshan.