Want more timely Centmin Mod News Updates?
Become a Member

Best way to sync data on two dedicated servers

Discussion in 'System Administration' started by pamamolf, Jan 4, 2015.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    9:21 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Hi


    I am looking for the best way to sync live if it is possible data between two dedicated servers as i don't want to run every minute the Rsync...

    Any ideas?

    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,547
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    5:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    many ways but you're on your own in researching them

    they include
    I usually use one of the first 3 listed above - NFS is most commonly used.

    Just setup 5x server GlusterFS 3.6.1 storage over my 5x VaporNode 512MB KVM VPS :)

    Code:
    [root@g01 ~]# gluster pool list
    UUID                                    Hostname        State
    ed80c169-8ead-46f7-a514-9d45c262837b    g02            Connected
    d0bc3e0f-4957-4793-bd8c-8d8a9ad7159e    g03            Connected
    ce9d8af7-ba58-4f53-8f09-1d3fc92fd3ec    g04            Connected
    be652076-4cec-4c19-a5ef-9ce6e8ffa937    g05            Connected
    1dda8458-01bd-4e57-9d8f-31d491f0123e    localhost       Connected
    
    Code:
    [root@g01 ~]# gluster peer status                                                 
    Number of Peers: 4
    
    Hostname: g02
    Uuid: ed80c169-8ead-46f7-a514-9d45c262837b
    State: Peer in Cluster (Connected)
    
    Hostname: g03
    Uuid: d0bc3e0f-4957-4793-bd8c-8d8a9ad7159e
    State: Peer in Cluster (Connected)
    
    Hostname: g04
    Uuid: ce9d8af7-ba58-4f53-8f09-1d3fc92fd3ec
    State: Peer in Cluster (Connected)
    
    Hostname: g05
    Uuid: be652076-4cec-4c19-a5ef-9ce6e8ffa937
    State: Peer in Cluster (Connected)
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    9:21 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Is GlusterFS able to be used on Centminmod environment or not as i want to use it for the public folder only if it is possible ?
     
    Last edited: Jan 5, 2015
  4. eva2000

    eva2000 Administrator Staff Member

    54,547
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    5:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    GlusterFS can be used in any environment as you configure where and how to configure it. My 5x VaporNode 512MB KVM VPS is using Centmin Mod LEMP stack with .08 beta build
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    9:21 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok one last question :)

    Can i configure it to sync only the public folder or i must set it to sync a partition on the disk?
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,547
    12,221
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,790
    Local Time:
    5:21 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    you can configure it to sync any specific folder or directory you want :) Ideally the directory or folder should be mounted to a separate disk/partition but doesn't have to be.
     
  7. pamamolf

    pamamolf Premium Member Premium Member

    4,084
    428
    83
    May 31, 2014
    Ratings:
    +834
    Local Time:
    9:21 AM
    Nginx-1.25.x
    MariaDB 10.3.x
    Ok great i will try to find out how to so it per directory now without formatting and creating partitions for it :)

    That's great !!!!