Re: [patch] [4.0.0alpha2] Pool graphs

Craig Barratt <[email protected]> Sun, 17 Nov 2013 21:51:48 -0800
Newsgroups gmane.comp.sysutils.backup.backuppc.devel
Message-ID <CADSzEFg13c8D+awQ7jHLa=x=TOFRRXks+-FF-UKrG+hCOp9Rgg@mail.gmail.com>
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


On Tue, Oct 8, 2013 at 6:21 AM, Tyler J. Wagner <[email protected]> wrote:

> Awesome work, Alexander.
>
> Regards,
> Tyler
>
> On 2013-10-08 14:05, Alexander Moisseev wrote:
> > 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
> >
> >
> >
> ------------------------------------------------------------------------------
> > 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
> > [email protected]
> > 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
> [email protected]
> List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
> Wiki:    http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>

------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk

_______________________________________________
BackupPC-devel mailing list
[email protected]
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-devel
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/