Discussion:
[BackupPC-devel] [patch] [4.0.0alpha2] Pool graphs
Alexander Moisseev
2013-10-08 13:05:18 UTC
Permalink
This patch adds the pool size graphs on the server status page for privileged users.
RRDtool required to store pool size statistics and show graphs.
If RRDtool not installed, status page looks as usual without graphs.
The graphs updates during the 'backuppc nightly' run.

Main difference from V3:
V3 draws pool+cpool as one area (http://sourceforge.net/mailarchive/message.php?msg_id=30758627);
V4 draws nonempty pools (poolv3, cpoolv3, poolv4, cpoolv4) as stack of areas (see attached BackupPC_Pool_Size.png).

Attachedpatch-4.0.0alpha2-rrd.tar.gz contains patches against bin/BackupPC and lib/BackupPC/CGI/GeneralInfo.pm

Note that RRD data sources (DS) renamed and 3 new DS added.
If you have existing RRD created by BackupPC V3, execute conversion script rrd_2_v4.pl in directory where the pool.rrd resides, usually $LogDir (/var/log/BackupPC). You will need RRD::Simple to run rrd_2_v4.pl.

--
Alexander
Tyler J. Wagner
2013-10-08 13:21:37 UTC
Permalink
Awesome work, Alexander.

Regards,
Tyler
Post by Alexander Moisseev
This patch adds the pool size graphs on the server status page for privileged users.
RRDtool required to store pool size statistics and show graphs.
If RRDtool not installed, status page looks as usual without graphs.
The graphs updates during the 'backuppc nightly' run.
V3 draws pool+cpool as one area
(http://sourceforge.net/mailarchive/message.php?msg_id=30758627);
V4 draws nonempty pools (poolv3, cpoolv3, poolv4, cpoolv4) as stack of
areas (see attached BackupPC_Pool_Size.png).
Attachedpatch-4.0.0alpha2-rrd.tar.gz contains patches against bin/BackupPC
and lib/BackupPC/CGI/GeneralInfo.pm
Note that RRD data sources (DS) renamed and 3 new DS added.
If you have existing RRD created by BackupPC V3, execute conversion script
rrd_2_v4.pl in directory where the pool.rrd resides, usually $LogDir
(/var/log/BackupPC). You will need RRD::Simple to run rrd_2_v4.pl.
--
Alexander
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-devel mailing list
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
--
"I am not an advocate for frequent changes in laws and constitutions. But
laws and institutions must go hand in hand with the progress of the
human mind. As that becomes more developed, more enlightened, as new
discoveries are made, new truths discovered and manners and opinions
change, with the change of circumstances, institutions must advance also
to keep pace with the times. We might as well require a man to wear still
the coat which fitted him when a boy as civilized society to remain ever
under the regimen of their barbarous ancestors."
-- Thomas Jefferson
Craig Barratt
2013-11-18 05:51:48 UTC
Permalink
Alexander,

Thanks for the patch. I've included this in 4.0.0, and it will be in the
next alpha3 version, which hopefully I will release next weekend.

I implemented it slightly differently, including moving all the rrd code to
a new utility that BackupPC executes daily (after BackupPC_nightly) in the
background (to avoid blocking by doing a system()), but it is largely based
on your code. It also generates and saves the graphs, rather than creating
them on-the-fly.

I also changed the existing status reporting to use GiB (2^30) and MiB
(2^20) to match the numbers in the graphs.

Craig
Post by Tyler J. Wagner
Awesome work, Alexander.
Regards,
Tyler
Post by Alexander Moisseev
This patch adds the pool size graphs on the server status page for privileged users.
RRDtool required to store pool size statistics and show graphs.
If RRDtool not installed, status page looks as usual without graphs.
The graphs updates during the 'backuppc nightly' run.
V3 draws pool+cpool as one area
(http://sourceforge.net/mailarchive/message.php?msg_id=30758627);
V4 draws nonempty pools (poolv3, cpoolv3, poolv4, cpoolv4) as stack of
areas (see attached BackupPC_Pool_Size.png).
Attachedpatch-4.0.0alpha2-rrd.tar.gz contains patches against
bin/BackupPC
Post by Alexander Moisseev
and lib/BackupPC/CGI/GeneralInfo.pm
Note that RRD data sources (DS) renamed and 3 new DS added.
If you have existing RRD created by BackupPC V3, execute conversion
script
Post by Alexander Moisseev
rrd_2_v4.pl in directory where the pool.rrd resides, usually $LogDir
(/var/log/BackupPC). You will need RRD::Simple to run rrd_2_v4.pl.
--
Alexander
------------------------------------------------------------------------------
Post by Alexander Moisseev
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
from
Post by Alexander Moisseev
the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
Post by Alexander Moisseev
_______________________________________________
BackupPC-devel mailing list
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
--
"I am not an advocate for frequent changes in laws and constitutions. But
laws and institutions must go hand in hand with the progress of the
human mind. As that becomes more developed, more enlightened, as new
discoveries are made, new truths discovered and manners and opinions
change, with the change of circumstances, institutions must advance also
to keep pace with the times. We might as well require a man to wear still
the coat which fitted him when a boy as civilized society to remain ever
under the regimen of their barbarous ancestors."
-- Thomas Jefferson
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
BackupPC-devel mailing list
List: https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/
Loading...