Amanda-Users

Re: extimate server initial value?

2005-09-05 06:09:15
Subject: Re: extimate server initial value?
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Graeme Humphries <graeme.humphries AT vcom DOT com>
Date: Mon, 05 Sep 2005 11:30:16 +0200
Graeme Humphries wrote:
This may be a RTFM question, but I can't see the answer in the amanda.conf man page (http://www.amanda.org/docs/amanda.conf.5.html):

When using "estimate server", is there a way to configure what the initial estimate of a disk entry is before there's any historical data. It looks like Amanda's defaulting to about 5MB, and I'd rather it defaulted to closer to 1GB.


It's indeed not yet documented in amanda.conf, but having source
code available, see server-src/planner.c, beginning line 1393 :

For a level 0:    1000000 Kbytes

For a level X, first day at this level: 100000 Kbytes

There is also a default of 10000 Kbytes for a "level X not a
new level", which is only used when just switching to server
side estimates.  Otherwise, you always have at least one level X
already (i.e. the previous day).

How did you get the number of 5 MB ?

Or is this a "level X without any historical data" (10000 KB above)
with a default "comprate 0.50 0.50" which results in getting about
5 MByte compressed size?

Are you 100% sure there was no "previous" run at all? e.g. from
some little test run or so.
You can find the "historical data" at the end of the file:
  curinfo/host.name/_disk_list_entry/info

It has the format:

history: level size csize date duration

"size" and "csize" (compressed size) are in Kbytes.
"duration" is in seconds.
The "date" is in seconds since start of 1970; to print the date in
a human readable format:

$ perl -le 'print scalar(localtime($seconds_since_1970))'


--
Paul Bijnens, Xplanation                            Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************



<Prev in Thread] Current Thread [Next in Thread>