Difference between revisions of "Monitorix-sync-daemon"
(the article summary is not meant for that use, see Help_talk:Style/Article_summary_templates for the related discussion) |
Kynikos.bot (talk | contribs) (remove language suffix from Category:Daemons and system services (English), see Talk:Table of Contents#English Category Names: Capitalization and Conflict with i18n) |
||
Line 1: | Line 1: | ||
[[Category:Scripts (English)]] | [[Category:Scripts (English)]] | ||
− | [[Category:Daemons and system services | + | [[Category:Daemons and system services]] |
{{i18n|Monitorix-sync-daemon}} | {{i18n|Monitorix-sync-daemon}} | ||
Revision as of 14:10, 23 April 2012
Template:Article summary start Template:Article summary text Template:Article summary heading Template:Article summary wiki Template:Article summary end
Monitorix-sync-daemonAUR (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.
Contents
Benefits of Msd
Running this daemon is beneficial for two reasons:
- Reduced wear to physical discs
- Speed
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
Monitorix-sync-daemonAUR (msd) is available for download from the 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 /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
Support
Post in the discussion thread with comments or concerns.