Want to subscribe to topics you're interested in?
Become a Member

Sysadmin How do you manage multiple servers ?

Discussion in 'System Administration' started by GASTAN, Dec 16, 2018.

  1. GASTAN

    GASTAN Member

    63
    11
    8
    Jun 28, 2017
    Ratings:
    +15
    Local Time:
    8:22 PM
    @eva2000 what do u use to keep of track of zillions server you must have control over?
    for example, for my WordPress sites I use Sync from iThemes.
    it shows updates per server, I can do backups, and I can update all servers with 2 button clicks.
    Is there something like this?
     
    Last edited: Dec 16, 2018
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    41,998
    9,471
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,575
    Local Time:
    5:22 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    yum-cron Automatic nightly YUM updates with yum-cron + SecureCRT ssh client supports running single command to multiple ssh window sessions so I can update centmin mod servers 100s at a time with one command line to update 123.09beta01 = cmupdate and one single command set for running centmin.sh menu option 4/5 etc. For example, i can update centmin mod nginx on 100+ servers within 2-5 minutes with a single command line set.

    also centmin mod 123.09beta01 servers can be configured to auto update the code at least see Upgrade Centmin Mod - CentminMod.com LEMP Nginx web stack for CentOS - that is for 123.08stable. For 123.09beta01 just setup cronjob to run cmupdate command too.

    also 123.09beta01 has AUTO_GITUPDATE='n' option default, which when set to AUTO_GITUPDATE='y' can also auto update
    Code (Text):
    # With AUTO_GITUPDATE='y' if centmin mod code install 
    # directory has been setup with git environment via 
    # centmin.sh menu option 23 # submenu option 1, then 
    # allow centmin.sh to auto update # the centmin mod 
    # code at /usr/local/src/centminmod 
    # silently in background
    #
    # if you want to retain local centmin mod code changes
    # made to files in /usr/local/src/centminmod for variables
    # in centmin.sh, use persistent config file you create
    # or append to at /etc/centminmod/custom_config.inc as
    # outlined on official site at 
    # https://centminmod.com/upgrade.html#persistent
    AUTO_GITUPDATE='n'
    
     
    Last edited: Dec 16, 2018
    • Informative Informative x 1
  3. eva2000

    eva2000 Administrator Staff Member

    41,998
    9,471
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,575
    Local Time:
    5:22 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    example with SecureCRT with just 2 servers managed by single command line

    centminmod-securecrt-01.gif

    running cmupdate on both servers via single command

    centminmod-securecrt-02.gif
     
    Last edited: Dec 16, 2018
    • Like Like x 1
  4. GASTAN

    GASTAN Member

    63
    11
    8
    Jun 28, 2017
    Ratings:
    +15
    Local Time:
    8:22 PM
    nice, thx.
    so it's considered safe to run yum autoupdate on prod sites?
    I guess from update email (if it comes) I can see if kernel was updated and I need to reboot

    running multiple CRT session is great idea!

    PS:
    Did I open new thread? I believe was in Cockpit thread (that's what reminded me I wanted to ask this for some time)
     
  5. eva2000

    eva2000 Administrator Staff Member

    41,998
    9,471
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,575
    Local Time:
    5:22 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    moved posts to own thread :)

    yes possibility of stuff breaking though with 100s of servers only a few had issues and it is usually with package conflicts which need to manually sort out - hence handy to use SecureCRT ssh sessions as you can see first hand the issues and send just that server's ssh window to a new ssh window by itself to focus on issues while rest of servers' ssh sessions are grouped together. SecureCRT makes it very easy for me to manage servers etc.
     
  6. eva2000

    eva2000 Administrator Staff Member

    41,998
    9,471
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +14,575
    Local Time:
    5:22 AM
    Nginx 1.17.x
    MariaDB 5.5/10.x
    SecureCRT command options

    securecrt-send-commands.png
     
    • Like Like x 1
  7. GASTAN

    GASTAN Member

    63
    11
    8
    Jun 28, 2017
    Ratings:
    +15
    Local Time:
    8:22 PM
    cool deal, thx.
    I ended up with MobaXterm free, since I just hobbying around and it is enough for now in free version
     
  8. Kintaro

    Kintaro Member

    63
    3
    8
    Dec 2, 2016
    Italy
    Ratings:
    +14
    Local Time:
    8:22 PM
    1.15.x
    MariaDB 10
    Who are on macOS can use iTerm2 (opensource).
    CMD+ALT+I activates the magic.
     
  9. buik

    buik Well-Known Member

    1,199
    320
    83
    Apr 29, 2016
    Ratings:
    +940
    Local Time:
    8:22 PM
    You could use puppet if you want to manage large amount of servers.
    How Puppet works
     
    • Informative Informative x 1
  10. buik

    buik Well-Known Member

    1,199
    320
    83
    Apr 29, 2016
    Ratings:
    +940
    Local Time:
    8:22 PM
    For a few servers.
    Default SSH via the command line or Putty (Windows) does the job as it should be.
    There can't go much wrong, as long as there are fresh back-ups available.