1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

One BIG Server or Multiple Servers?

Discussion in 'Server Configuration and Hosting' started by trizz, Sep 28, 2016.

  1. trizz

    trizz Active Member

    Doing some hardware migrations relatively soon, and am looking at either deploying one BIG box (multiple SSDs, 128g/memory, 2xE5 CPUs) to host both web+DB or multiple smaller servers (32gig memory, single E5v3 CPU, SSD) to host web and DB independently.

    Should I go with one big honking box, fronted with cloud flare? Or a dedicated box just for DB, 2 boxes just for web, and front that with cloud flare?

    Stats - 500-2000 users online at a given time.
     
  2. Alex - A2Hosting

    Alex - A2Hosting Active Member

    One big box is probably the easiest but personally, I would consider putting the DB on it's own server when factoring in the DBs growth at that many users online at once.

    How did you decide on the setup of smaller multiple servers? They wouldn't have to match identically in hardware as they will be doing different jobs so it might be best to allocate more to the DB server. But this depends entirely on your needs / knowing more about your current setup.
     
    Pierce likes this.
  3. Pierce

    Pierce Active Member

    I've 3 servers, 2db and one php.

    The 2nd db is replication for backup without upsetting the master.

    The front facing server that has php needs enough memory to run x threads at 256mb

    So 10 threads requires 2.5gb of ram
     
  4. trizz

    trizz Active Member

    how active is your community?
     
  5. trizz

    trizz Active Member

    great question - initially was looking at just memory+CPU footprint for web frontend boxes versus a ton of memory+fast SSD disks for the DB box.

    2-3 boxes with 32gig of memory for http only frontends should be plenty, along with a box dedicated to DB if i go that route.
     
  6. Pierce

    Pierce Active Member

    It would be around the 1500 all users active at peek time. (members, guests, robots).

    I am working hard on increasing that activity but the biggest month is always January and this time of year is not as busy.
     
  7. Joeychgo

    Joeychgo Well-Known Member

    Why not multiple drives and a raid 10?
     
  8. eva2000

    eva2000 Well-Known Member

    single properly configured and optimised server should be able to handle that. I have a client with 5+ million posts and 2,500+ users average on XF on a single server and even that only using around 20-25% of cpu normally and more at time of backups (as expected due to multi-threaded backup and compression in use). But sizing and configuring a server really depends on your web app(s) usage requirements at peak and not just their averages.
     
    SneakyDave and trizz like this.
  9. Pierce

    Pierce Active Member

    Because raid isn't backup.

    And you still have to do mysqldump which freezes the site for the 5-10 min it does backup. So do it on the replication server.

    Also if one of the 2 servers die, you can move around to the spare.
     
    thedude likes this.
  10. teletubbi

    teletubbi Active Member

  11. duderuud

    duderuud Active Member

    As above. Xtrabackup is a great tool, we use it for years now to backup our db (around 60gb).
     
  12. WSWD

    WSWD Well-Known Member

    I would echo the first reply. For ease of use, 1 server. For future expansion, multiple servers.
     
  13. Xon

    Xon Well-Known Member

    Good single-thread performance matter for XenForo. Especially if your usebase (ab)use's complex bbcode.
     
    eva2000 likes this.
  14. TheBigK

    TheBigK Well-Known Member

    We typically have about 1500 - 2000 online most of the times; and we do just fine with just 8GB box. The server does just fine even with 5000 of them online.
     
  15. Pierce

    Pierce Active Member

    It's probably excess due to the vbulletin days.

    I am looking to reduce server costs. But would still keep the 3 server layout.
     
  16. Pierce

    Pierce Active Member

    Cool link. Percona is doing a lot for the mysql community.

    Unfortunately the backup company uses mysqldump.

    So I can't get around this. My db is around 5db I think.
     
  17. eva2000

    eva2000 Well-Known Member

    Cheapest and easiest solution setup automated backups to trigger a maintenance page to close off your forums for the length of time it takes to backup your forums. Big banks and other commercial institutions implement maintenance times, why not for forums :) This is where sizing your server for peak usage/task loads helps. i.e. If you can get 30GB database to backup in 2 minutes, you only need a maintenance page to last for 3-5 minutes at most :)

    Cheaper than raid or replication = saving your $100s of dollars per month :D

    Centmin Mod 123.09beta01 beta has such a feature built in if folks want to enable it https://community.centminmod.com/threads/sitestatus-maintenance-mode.5599/ :)

    demo'd

    centminmod-sitestatus-01.gif

    FYI, 5-6GB database on a properly configured and sized server shouldn't take more than 20-60 seconds to backup.
     
    Last edited: Sep 29, 2016
    trizz and WSWD like this.
  18. Blandt

    Blandt Well-Known Member

    Dedicated MySql server is easier to maintain and your site is less prone to "accidents" and more importantly more secure. I'd go with that if I were you:
    4GB Mysql
    2GB web server (nginx preferably)
     

Share This Page