Difference between revisions of "Monitorix-sync-daemon"

From ArchWiki
Jump to: navigation, search
m (Source)
Line 42: Line 42:
 
Post in the [https://bbs.archlinux.org/viewtopic.php?id=132085 discussion thread] with comments or concerns.
 
Post in the [https://bbs.archlinux.org/viewtopic.php?id=132085 discussion thread] with comments or concerns.
  
== Source ==
+
== Source on Github ==
Source is available on github at [https://github.com/graysky2/monitorix-sync-daemon/tree/master/msd-source this url].
+
*[https://github.com/graysky2/monitorix-sync-daemon/tree/master/msd-source]

Revision as of 18:49, 18 December 2011

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

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 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.

Support

Post in the discussion thread with comments or concerns.

Source on Github