Sersync使用指南


  • #1 written by LSX
    about 7 months ago

    一直在用,最近发现点小问题,情况是这样的
    我查看同步日志rsync_fail_log.sh 发现,近期有些文件传输失败,查看原因发现,是因为rsync 如果加上参数 u 它会产生一个小问题,例如从A点同步到B点,如果A点的时间晚于B点时间,那这个文件就不会被同步,加上u参数就会对比时间,但内容却是不同的,这样就产生一个问题,在我恢复老版本的文件的时候,就会产生部分文件无法同步过去,我是想,如果可以在同步失败的时侯把rsync 的u参数去下来,这样就完美了,当然也可以配置一个开关,我试失败文件不会太多,这样也不会造成数据量大的因素。

    • #2 written by johntech
      about 7 months ago

      如果是互相同步 推荐使用csync 可以google到

  • #3 written by feigu
    about 6 months ago

    [root@mysqlserver sersync]# ./sersync2 -d
    set the system param
    execute:echo 50000000 > /proc/sys/fs/inotify/max_user_watches
    execute:echo 327679 > /proc/sys/fs/inotify/max_queued_events
    parse the command param
    option: -d run as a daemon
    daemon thread num: 10
    parse xml config file
    host ip : localhost host port: 8008
    now the filter work ,if you set the crontab,you have to set crontab filter
    Open debug, you will see debug infomation
    daemon start,sersync run behind the console
    terminate called after throwing an instance of ‘std::logic_error’
    what(): basic_string::_S_construct NULL not valid
    烦求解

    • #4 written by johntech
      about 6 months ago

      感觉是你filter正则写的有问题啊…

      • #5 written by feigu
        about 6 months ago

        我之前把这个 加了 “<!–"注销符 现在去掉就好了 ,是有几次同步出错 弄得系统好卡,下次碰到在贴给你

        • #6 written by johntech
          about 6 months ago

          有新版本的了,防止cpu100%

No trackbacks yet.