[gridengine users] SGE accounting file getting too big...

Noel Benitez nbenitez at salk.edu
Mon May 21 15:59:23 UTC 2018


Thank you for all your suggestions guys.  I think I'll use the logrotate route since I'm concerned with the accounting file only.

Cheers.
________________________________________
From: Reuti <reuti at staff.uni-marburg.de>
Sent: Friday, May 18, 2018 8:42 AM
To: Noel Benitez
Cc: users at gridengine.org
Subject: Re: [gridengine users] SGE accounting file getting too big...

> Am 18.05.2018 um 17:23 schrieb Noel Benitez <nbenitez at salk.edu>:
>
> Hi guys,
>
> The "accounting" file on our sge master has a filesize of 20Gb.
>
> Is there a recommended way of purging this file short of using "cat /dev/null > accounting"  ?

Yes:

: > accounting

Jokes aside, you can either use logrotate or the supplied script:

$SGE_ROOT/logchecker.sh

Usually I copy it to /usr/sge/default/common/ to make my changes and then use cron jobs on the nodes and the qmaster.

qmaster:

$ cat /etc/cron.d/gridengine
#
# Special cron-job to reduce the size of the SGE messages/accounting  files.
#
5 1 * * 0       sgeadmin        /usr/sge/default/common/logchecker.sh -action_on 1

nodes:

$ cat /etc/cron.d/gridware
5 1 * * 0       sgeadmin        /usr/sge/default/common/logchecker.sh -action_on 2 -execd_spool /var/spool/sge

The default in the script itself I set to:

UNCONFIGURED=no
ACTION_ON=2
ACTIONSIZE=1024
KEEPOLD=3

Note: to read old accouting files in `qacct` on-the-fly you can use:

$ qacct -o reuti -f <(zcat /usr/sge/default/common/accounting.1.gz)

-- Reuti


>
> Thanks for any help.
>
>
>
>
>
> -Noel Benitez, Salk iT Dept.
>
>
>
> _______________________________________________
> users mailing list
> users at gridengine.org
> https://gridengine.org/mailman/listinfo/users




More information about the users mailing list