Get the most out of your Centmin Mod LEMP stack
Become a Member

VPS geo dispersed VPS cluster

Discussion in 'System Administration' started by HydeWing, Jun 1, 2016.

  1. HydeWing

    HydeWing New Member

    8
    2
    3
    May 31, 2016
    Ratings:
    +2
    Local Time:
    5:00 AM
    1.19.11
    10.1
  2. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    Centmin Mod is provide as is, so short of scripted related bugs or issues, any further optimisation 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 setups.

    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, easiest way is use CDN service like KeyCDN. For static file only sites, csync2 and lsyncd would be better tools for cross datacenter usage or NFS within same datacenter. But I just use a private git repo to keep sites in sync for centminmod.com as it's just static files on main site :)
     
    Last edited: Jun 1, 2016
  3. HydeWing

    HydeWing New Member

    8
    2
    3
    May 31, 2016
    Ratings:
    +2
    Local Time:
    5:00 AM
    1.19.11
    10.1
    Thanks Eva, but I'm more interested how did you setup your 16+ VPS cluster.

     
  4. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    as outlined i used Amazon Route53 Geo Latency based DNS :)
     
  5. HydeWing

    HydeWing New Member

    8
    2
    3
    May 31, 2016
    Ratings:
    +2
    Local Time:
    5:00 AM
    1.19.11
    10.1
    Lol I Know you are using Amazon Route53.

    I'm more interested on the back-end stuffs... like

    MYSQL - I have multiple servers that all need to act as masters, as if one fails the next server kicks in and takes over. I'm just wondering what the best way to replicate is. All servers are in different data centers.

    File Syncronization Between The Web Nodes: Should I use lysncd and cesync2? Is this is good solution? Especially if you have 5 servers and I'm planning to add more in the future.

    Cheers,
    HydeWing
     
  6. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:00 AM
    Nginx 1.13.x
    MariaDB 5.5
  7. HydeWing

    HydeWing New Member

    8
    2
    3
    May 31, 2016
    Ratings:
    +2
    Local Time:
    5:00 AM
    1.19.11
    10.1
    Cheers for the fast reply Eva.

    Out of those 4 MYSQL methods. Which method is employed on your 16+ VPS cluster?

    Oh yeah Btw, did you host your web server + database server on the same node?

    Warmly,
    Hyde Wing
     
  8. eva2000

    eva2000 Administrator Staff Member

    30,945
    6,915
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,413
    Local Time:
    7:00 AM
    Nginx 1.13.x
    MariaDB 5.5
    centminmod.com doesn't use mysql - pure static files only :D
     
  9. HydeWing

    HydeWing New Member

    8
    2
    3
    May 31, 2016
    Ratings:
    +2
    Local Time:
    5:00 AM
    1.19.11
    10.1
    haha. Ok you got me.