Real-time synchronization of a large number of small files in sersync2

Source: Internet
Author: User
Sersync2 can synchronize a directory on a machine to multiple machines in real time, which is very suitable for a large number of small files such as web pages. 1. configure the synchronization target server # vi/etc/rsyncd. confuidrootgidrootmaxconnections36000usechroot...

Sersync2 can synchronize a directory on a machine to multiple machines in real time, which is very suitable for a large number of small files such as web pages.
1. configure the target synchronization server
# Vi/etc/rsyncd. conf
Uid = root
Gid = root
Max connections = 36000
Use chroot = no
Log file =/var/log/rsyncd. log
Pid file =/var/run/rsyncd. pid
Lock file =/var/run/rsyncd. lock
[Rsync] # synchronization name
Path =/opt/rsync
Comment = test files
Ignore error = yes
Read only = no
Hosts allow = 192.168.0.254
Hosts deny = *
Note: '/etc/rsyncd. Conf' does not exist. you need to create it by yourself. configure multiple target machines as shown above.
2. start the target server rsync to prepare for receiving data
# Rsync -- daemon
3. install and configure sersync on the master server
# Tar xf sersync2.5_64bit_binary_stable_final.tar.gz
# Cd GNU-Linux-x86/
# Vi confxml. xml, modify the following line

# Local synchronization target
# Directory server IP address and synchronization name


4. run sersync
#./Sersync2-d-r

Author "William's memory fragments"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.