we configured the presto configuration files – config.properties
with the following details
Note – presto version 350
more config.properties
log.max-history=5
log.max-size=500MB
http-server.log.max-history=5
http-server.log.max-size=500MB
- log.max-history: maximum number of archive files to keep. The default value is 30.
- log.max-size: max (uncompressed) size for each file. The default value is 100 MB.
the goal is to limit the server.log
log files for 5 backups , when each log will is limited until 500MB size
after setting we restart the presto services so new configuration will take affect
so we are expecting to get only 5 backup files and no more then 500MB for each server.log
but in fact the situation is different and we get the following server.log files
-rw-r--r-- 1 presto presto 0 Apr 9 00:01 server.log-2024-04-08.0.log2831029036940451.log
-rw-r--r-- 1 presto presto 4096 Apr 10 00:39 server.log-2024-04-09.0.log2919707335505291.log
-rw-r--r-- 1 presto presto 4096 Apr 10 23:50 server.log-2024-04-10.0.log3006586198057033.log
-rw-r--r-- 1 presto presto 0 Apr 13 23:39 server.log-2024-04-13.0.log3265983752411473.log
-rw-r--r-- 1 presto presto 0 Apr 17 00:39 server.log-2024-04-16.0.log3524490571587197.log
-rw-r--r-- 1 presto presto 0 Apr 22 00:22 server.log-2024-04-21.0.log3955465061105017.log
-rw-r--r-- 1 presto presto 1368064 Apr 28 08:00 server.log-2024-04-28.0.log174042999747175.log
-rw-r--r-- 1 presto presto 98988 May 1 00:43 server.log-2024-04-30.0.log.gz
-rw-r--r-- 1 presto presto 1194 May 2 07:47 server.log-2024-05-01.0.log.gz
-rw-r--r-- 1 presto presto 1128 May 5 09:59 server.log-2024-05-02.0.log.gz
-rw-r--r-- 1 presto presto 558994 May 5 10:06 server.log
server.log
are rotate with very small size and not as we configured in config.properties
actually the retention setting are not affected the server.log
rotation and backup policy
so we are not sure if this behavior is a bug in presto version ? or someth8ing else