Join the community today
Register Now

Sysadmin Load balancer

Discussion in 'System Administration' started by ahmed, Jul 29, 2020.

  1. ahmed

    ahmed Active Member

    338
    47
    28
    Feb 21, 2017
    Ratings:
    +59
    Local Time:
    5:02 AM
    I'm trying to set up google load balancer using this guide
    Best Performance WordPress with Google Cloud CDN and Load Balancing

    but looks like I have to use the centmin WordPress install as HTTP not https, am I correct?

    if so, How can I move from SSL.conf to the not SSL conf?

    best.
     
  2. eva2000

    eva2000 Administrator Staff Member

    44,731
    10,196
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,804
    Local Time:
    1:02 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    From that guide they enable both non-HTTPS port 80 and HTTPS port 443 on web server
     
  3. ahmed

    ahmed Active Member

    338
    47
    28
    Feb 21, 2017
    Ratings:
    +59
    Local Time:
    5:02 AM
    one pro advise, I'm new to load balancer thing, I only want it for CDN and DDOS to replace Cloudflare

    When I create it, I found 2 VPS (the original) and the new one created by the balancer

    is that the minimum?

    also, can I just stop the original VPS and depend on the (image) created.
    so what if I need to update a plugin on WordPress frontend and I stopped the original VPS will it update it once I start it again?

    thx
     
  4. eva2000

    eva2000 Administrator Staff Member

    44,731
    10,196
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,804
    Local Time:
    1:02 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation or configurations to the web stack components - nginx, php-fpm, mariadb mysql, csf firewall etc or web app specific configurations are left to the Centmin Mod user to deal with. So I do not provide any free support for such.

    However, Centmin Mod users are free to help each other out and ask questions or give answers on this community forum. My hopes are that this community forum evolves so that more veteran long time Centmin Mod users help new Centmin Mod users out :)

    With that said, if you only use Google CDN, you probably only need the load balancer contented to the single instance backend origin server. But for Google Cloud CDN I have no experience with as it's just too expensive to use/test with bandwidth costs up to US$90-200/TB. If you use 30TB per month, bandwidth costs alone would be between US$2,700 - US$6,000 per month !!!

    So best place is to read the official Google CDN documentation at Cloud CDN documentation  |  Google Cloud

    If you have more than one origin backend server, then you need to figure out how to sync your files and database data so changes on one backend reflect/update on all others. This has been discussed in several threads at
     
  5. ahmed

    ahmed Active Member

    338
    47
    28
    Feb 21, 2017
    Ratings:
    +59
    Local Time:
    5:02 AM
    LOL...My max per month for all my sites is $20

    I can not imagine how can I reach 30 TB traffic? but that is crazy pricing!
     
  6. ahmed

    ahmed Active Member

    338
    47
    28
    Feb 21, 2017
    Ratings:
    +59
    Local Time:
    5:02 AM
  7. buik

    buik “Winners never quit, and quitters never win.” Premium Member

    1,293
    348
    83
    Apr 29, 2016
    Ratings:
    +1,051
    Local Time:
    5:02 AM
    With a start-up budget.
    You could tweak Centminmod with the Linode guide for High Availability WordPress Hosting.
    You could use it with Linode's load balancer as written in the article or the equivalent from Digital Ocean or Vultr.

    If your budget is max $20 for all your sites.
    The question is whether you need a load balancer?
    Could you give more information about this?
     
  8. ahmed

    ahmed Active Member

    338
    47
    28
    Feb 21, 2017
    Ratings:
    +59
    Local Time:
    5:02 AM
    My websites now are mainly for an online presence with an average 2000 visitors per month

    I'm exploring the options for expansions, just in case I needed an upgrade

    I'm currently using azure CDN and my bill there is around 1-2 $ but there are some problems with headers and CORS that lead me to explore other options

    just in case I made an advertisement and had users spikes during that promo
     
  9. buik

    buik “Winners never quit, and quitters never win.” Premium Member

    1,293
    348
    83
    Apr 29, 2016
    Ratings:
    +1,051
    Local Time:
    5:02 AM
    Usually i would advice load balancing for +-20, 30 requests per second and millions of unique users on on a monthly basis.

    Do you have visitors from all over the world?
    For $ 20 budget per month and 2000 visitors per month.
    I Wouldn't use load balancing, neither CDN.

    Analyze where most visitors come from, grab a stable VPS server on the location nearby your visitors hotspot, and you are good to go is my advise.
     
  10. eva2000

    eva2000 Administrator Staff Member

    44,731
    10,196
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,804
    Local Time:
    1:02 PM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    If you origin server is not in Indian region, then Cloudflare Pro or higher plans would give you the best bang for the buck for CDN caching. For Indian region origin server, you'd need Cloudflare Business or Enterprise.