"Web farm" supported?

Discussion in 'Installation/Configuration' started by SilkBC, Jun 12, 2025.

  1. SilkBC

    SilkBC Member

    Hello,
    We currently have a 3-server setup with:
    • Dedicated control panel
    • (1) web server (also has databases on it)
    • (1) "mail" server (but is only used as an SMTP relay host, but we are able to use ISPConfig to setup users to relay through via authentication)
    We are wanting to expand the setup a little bit by doing the following:
    • Add an additional web server as a "loadbalance" partner to our existing web server. There would obviously be a loadbalancer in front of these web servers
    • Move website storage and databases to another server (website directories would be shared out via NFS
    I know that having the website directories on a separate server shared out via NFS is supported as I have seen a couple of posts about it, and what we would need to do in ISPConfig to make that happen. What I haven't been able to find anything about is whether or not the two web servers can in fact work in tandem, where the websites added in ISPConfig would be configured on both hosts.

    Once the website is created initially (after choosing what web host to put it on), I thought that maybe adding the website again but choosing the "other" host would work, but of course it doesn't, as ISPConfig doesn't let you add a site for a domain when a website already exists.

    It isn't as easy as just creating the symlinks on the "other" server, either, as there are entries made in the '/etc/passwd' and '/etc/group' files, but I suppose those could be synchronized over periodically?

    Is this something that could be done within ISPConfig, or was it not really designed with that kind of setup in mind?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Yes, that's called mirroring and is supported by ISPConfig. You must configure the second web server to be a mirror of the first one right after installing it under System> Server Services.
     
  3. SilkBC

    SilkBC Member

    Ah, missed that :-(

    Followup question: if I added a 3rd, 4th, etc. web server, would they all have to mirrors of the "first" server? Presumably if the "first" server were ever replaced/decommissioned, I could just make the other servers a mirror of one fo the remaining ones?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    yes.

    No, if you decommission the first server (hardware), you must move its installation to a new hardware to keep the setup intact.
     
  5. SilkBC

    SilkBC Member

    How would the "installation" of the first server get moved to another? is it something like setup the new server, copy specific files form the "first server" to the new one?
     

Share This Page