Difference between revisions of "Monitorix-sync-daemon"

From ArchWiki
Jump to navigation Jump to search
(the article summary is not meant for that use, see Help_talk:Style/Article_summary_templates for the related discussion)
Line 1: Line 1:
[[Category:Scripts (English)]]
[[Category:Scripts (English)]]
[[Category:Daemons and system services (English)]]
[[Category:Daemons and system services]]

Revision as of 14:10, 23 April 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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.

Benefits of Msd

Running this daemon is beneficial for two reasons:

  1. Reduced wear to physical discs
  2. 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
Note: This step is NOT required. Again, msd will update once per hour on its own.


Post in the discussion thread with comments or concerns.

Source on Github