We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37654
    • 39 Posts
    Hi

    Is it possible to use multiple front http servers sharing the same database?
    Let's say i have a simple dns round robin setup with 2 http servers runing Revo in front of a mysql server.
    Will i run into problems?

    Thanks
    • I don't see any reason why you couldn't setup database replication and run a second front end server, granted keeping the files/addons in sync will also be important.
        Patrick | Server Wrangler
        About Me: Website | TweetsMODX Hosting
        • 37654
        • 39 Posts
        To keep things a simple as possible, my idea was to use one single DB server behind two http fronts.
        So each server would access the DB through the network.
        Even though my bandwidth is limited to 100Mbit per server (server >> internet), they have 10G NIC (fully usable inside my vlan) so at worst, it will induce a few ms of latency...

        Only one front would be used for manager access. There is the cache problem, but should a periodic rsync of the cache directory do the trick?

        Do you think that mysql replication is preferable, with one local db on each server?

        Thanks.
        • I'm guessing your goal is just to divide the frontend load without any additional redundancy? If so that setup should work fine, granted you will need to watch your sessions/cookies, but that shouldn't be a huge issue.

          If you wanted some redundancy then adding replication would help should one of the servers go offline. I would watch the database server closely in that configuration as it's a single point of failure for both web servers.

          I don't think you need to go out of your way to sync the cache folder, outside of clearing the cache folder.
            Patrick | Server Wrangler
            About Me: Website | TweetsMODX Hosting