cofyc / dmirror Goto Github PK
View Code? Open in Web Editor NEWThis project forked from sprewellkobe/dmirror
Directory Mirror Project
This project forked from sprewellkobe/dmirror
Directory Mirror Project
# What is DMirror - DMirror is a real-time directory sync tool, used for local and remote file sync. Compare to DRBD, DMirror has these features: - 1, DMirror is built on application level, on the top of file system - 2, DMirror's slave can be read, even write - 3, DMirror can switch master with slave very easy - 4, DMirror has a monitor HTTP display page # How to use - 0.1, set /proc/sys/fs/inotify/max_user_watches and /proc/sys/fs/inotify/max_queued_events to proper number - 0.2, set local and remote rsync dir - 1, start master, ./dmirror mainbase dmirror1.ini - 2, start slave, ./dmirror mainbase dmirror2.ini - 3, curl "http://your_master_ip:your_master_port/setmaster" to start master-slave sync - 4, when you want to switch master-slave, curl "http://your_slave_ip:your_slave_port/setmaster" to start a new slave-master sync # How DMirror works - depend on rsync(recommend 3.0.9),inotify(kernal 2.6.13+), and file system - DMirror has 3 process roles: 1, mainbase: accepet HTTP command, communicate with other processes by UNIX socket, monitor other processes, and control all state-transition 2, watcher: use inotify to watch what file created,deleted,modified and write to RLog 3, sender: read from RLog and send rsync command to remote # Supported HTTP command - setmaster - setslave - getstate - getstatus(HTML) - showconf - updateconf # Author kobe, feedback [email protected] thanks renzhong to test
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.