1.官方地址 2.lsyncd介绍 lsyncd简介 css Lysncd 实际上是lua语言封装了 inotify 和 rsync 工具,采用了 Linux 内核(2.6.13 及以后)里的 inotify 触发机制,然后通过rsync去差异同步,达到实时的效果。我认为它最令人称道的特性是,完美解 ...
分类:
其他好文 时间:
2020-02-19 16:53:16
阅读次数:
70
在实际项目中,Mycat 服务也需要考虑高可用性,如果 Mycat 所在服务器出现宕机,或 Mycat 服 务故障,需要有备机提供服务,需要考虑 Mycat 集群。 1、 高可用方案 使用 HAProxy + Keepalived 配合两台 Mycat 搭起 Mycat 集群,实现高可用性。 HAP ...
分类:
其他好文 时间:
2020-02-19 13:29:13
阅读次数:
92
rsync基于ssh协议实现高效率远程或本地文件复制,传输速度比scp快。复制文件时会比对本地文件与远程主机的文件,仅复制有差异的文件。 常用选项 -q,--quiet:suppress non-error messages 静默模式 -v,--verbose:increase verbosity ...
分类:
其他好文 时间:
2020-02-17 19:28:01
阅读次数:
63
[root@localhost ~]# systemctl start zebra [root@localhost ~]# vtysh Hello, this is Quagga (version 0.99.22.4). Copyright 1996-2005 Kunihiro Ishiguro, ...
分类:
其他好文 时间:
2020-02-17 17:41:43
阅读次数:
144
As we said, sqlsever fail over cluster is perviously version of always on. The HA was guarenteed by OS not database. Therefor, we can not use windows ...
分类:
数据库 时间:
2020-02-16 20:20:37
阅读次数:
110
Last time, we talk about separate under one cluster backup into two diffetent AG backup. Does it works ? How is it ? Let we it this time: Unfortunatel ...
分类:
数据库 时间:
2020-02-16 17:56:16
阅读次数:
109
1.前言 为什么需要内部yum源呢,有可能是业务内部的服务器对外是不通了,居于一些安全方面的考虑。内部yum源又有什么好处呢,第一,速度快;第二,内网可控,外网有问题也不影响内网包的下载和安装等。 2.部署 2.1 创建yum仓库目录 2.2 镜像同步公网yum源 上游yum源必须要支持rsync协 ...
分类:
其他好文 时间:
2020-02-16 16:20:54
阅读次数:
68
4、设置mysql多实例启动脚本:(1)3306: [root@backup application]# cat /data/3306/mysql#!/bin/sh. /etc/init.d/functionsexport PATH=/application/mysql/bin/:/usr/loca... ...
分类:
数据库 时间:
2020-02-16 13:20:55
阅读次数:
92
示例代码 创建schedule_tasks.py文件 from celery import Celery from celery.schedules import crontab app = Celery("SchedulerTasks", broker='pyamqp://admin:admin@ ...
分类:
其他好文 时间:
2020-02-15 23:37:14
阅读次数:
100
rsync -avz B(root@目标IP::wwwroot) A(/opt/*)
A是客户端,B是服务器
实验2:rsync+inotify实时同步:
分类:
其他好文 时间:
2020-02-15 17:08:17
阅读次数:
82