Multiple Apache Servers, One Database (6 posts)

  1. deschutesc
    Posted 10 years ago #


    I would like to know whether or not WordPress would still function correctly if I installed it on two different Apache servers and pointed both to the same database perhaps on a third machine.

    It seems to me like there shouldn't be any problems. But I would also like to use the staticize reloaded plugin (wp-cache 2.0 comes up with an error on the options menu). So how does a cache pluggin affect this scenario? Would I have to make the cache folder available to both using an NFS or something similar?

    Thanks for your comments!

  2. skippy
    Posted 10 years ago #

    In theory, each Apache server would hold its own cached copy of the content, so you wouldn't need to use NFS.

    If the two servers aren't load-balancing a common domain, then you'll likely have trouble with respect to permalinks and such.

  3. deschutesc
    Posted 10 years ago #

    Thanks for your reply!

    The servers would be load balancing a common domain.

    I guess I am confused as to how the staticize pluggin works. When does it update a cached file? The readme says you can flush the cache by editing a post/comment. I am worried that one will update its cache because of a user action, and the other will not.

    Thanks again for your help!

  4. skippy
    Posted 10 years ago #

    I've not used any of the caching plugins, but yes, editing something causes the cache to be rebuilt. In your scenario, using seperate caches would cause only the cache on the server from which you edited a post to be refreshed. So perhaps an NFS shared cache would be suitable.

    What kind of volume are you expecting? What are the server specs? This draft aims to evaluate some of the issues involved with hosting WordPress in a high-traffic scenario. Remember, it's a draft; it should be read as a guideline, and not as a definitive recommendation.

  5. deschutesc
    Posted 10 years ago #

    I've been given the task by my company to offer a blogging solution. Initially the traffic shouldn't be that great, but I have to make sure that things will perform well when the site becomes popular(1,000,000 visitors/month?).

    We don't have the servers yet, but I would guess they will be something like 2 - 3Ghz+ Xeon, >1GB ram. We'll be running some sort of load balancer. We will have other websites hosted on these servers as well so they will come down on me if I bring things down :). Sitting behind these two servers will be a dedicated machine for our database.

    Thanks for your comments.

  6. deschutesc
    Posted 10 years ago #

    I think that a better solution than having an NFS would be to expire the cached pages after a certain amount of time. Isn't this how wp-cache works?

Topic Closed

This topic has been closed to new replies.

About this Topic