Difference between revisions of "Monitorix-sync-daemon"

From ArchWiki
Jump to navigation Jump to search
(Use anything-sync-daemon instead since it is updated to work with systemd)
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Scripts (English)]]
#REDIRECT [[anything-sync-daemon]]
[[Category:Daemons and system services (English)]]
{{Article summary start}}
{{Article summary text|{{AUR|Monitorix-sync-daemon}} (msd) is a tiny shell script designed to manage your [[Monitorix]] databases in tmpfs and to periodically sync them back to your physical disc (HDD/SSD).  This is accomplished via a symlinking step and an innovative use of rsync to maintain back-up and synchronization between the two.  One of the major design goals of msd is a completely transparent user experience.}}
{{Article summary heading|Related}}
{{Article summary wiki|Monitorix}}
{{Article summary end}}
== Benefits of Msd ==
Running this daemon is beneficial for two reasons:
#Reduced wear to physical discs
Since the rrd databases relocated into tmpfs, the corresponding I/O associated with using [[Monitorix]] is also redirected from the physical disc to RAM, thus reducing wear to the physical disc and also greatly improving the update time.  The access time of RAM is on the order of nanoseconds while the access time of physical discs is on the order of milliseconds.  This is a difference of six orders of magnitude or 1,000,000 times faster.
==Setup and Installation==
{{AUR|Monitorix-sync-daemon}} is available for download from the [[Arch User Repository|AUR]].  Build it and install like any other package. 
=== Using msd ===
The initial synchronization will occur when the daemon starts.  Additionally, cron (if running on your system) will call it to ''sync'' or update once per hour.  Finally, msd will sync back a final time when it is called to stop.
Users can call the daemon to start, stop, or restart (sync) like any standard Arch daemon:
# rc.d command msd
It is ''highly'' recommended to start/stop the daemon at boot/shutdown.  This is accomplished by adding '''msd''' to the DAEMONS array in {{ic|/etc/rc.conf}} like so:
DAEMONS=(... msd ...)
=== Sync at More Frequent Intervals (Optional) ===
Users wishing to have syncs occur more frequently can simply add a line to the root crontab to call the ''sync'' function of msd like so:
# crontab -e
Example syncing once every ten minutes:
  */10 * * * *    rc.d sync msd &> /dev/null
{{Note|This step is NOT required.  Again, msd will update once per hour on its own.}}
== Support ==
Post in the [https://bbs.archlinux.org/viewtopic.php?pid=1026974 discussion thread] with comments or concerns.
== Source ==
Source is available on github at [[https://github.com/graysky2/monitorix-sync-daemon/tree/master/msd-source this url]].

Latest revision as of 14:40, 22 September 2012