[Swift-devel] Reducing swift log size

Yadu Nand Babuji yadunand at uchicago.edu
Wed Jun 11 14:46:25 CDT 2014


Hi,

I'm running a proxy app for a user with 6000 tasks each taking a few 
milliseconds, and the log sizes are unusually large. When the tasks are 
set to take 20s, the total log size reaches ~7Gb.

I tried setting -minimal.logging and -reduced.logging but still see 
debug lines in the log like:
2014-06-11 19:15:06,961+0000 DEBUG Cpu worker started: 
block=0611-1507050-000000 host=midway461 id=10
2014-06-11 19:15:06,961+0000 DEBUG Cpu ready for work: 
block=0611-1507050-000000 id=10

Do we need DEBUG lines such as the ones listed above ? Is it reasonable 
to have these set by default to WARN ?
Secondly, setting -minimal.logging did not turn off these DEBUG lines 
and I had to set the following log4j.properties from DEBUG to WARN to 
remove most of the offending lines:

log4j.logger.org.globus.cog.abstraction.coaster.service.job.manager.Cpu=WARN
log4j.logger.org.globus.cog.abstraction.coaster.service.job.manager.Block=WARN

With 6001 tasks, each taking 2 ms or so:
Swift without any changes to logging ->  440879 lines and  51Mb
Swift with -minimal.logging                ->    83350  lines and 9.5Mb
Swift with -minimal.logging and         ->      7625  lines and 791Kb
Cpu, Block log4j properties set

Thanks,
Yadu



More information about the Swift-devel mailing list