Our features site is undergoing a refresh! Be sure to explore the revamped site and discover our latest product roadmap launching here on Monday, March 18th.

Limit size of /var/cpanel/user_notifications

cPanelJared shared this idea 9 years ago
Open Discussion

As a server admin, I would like to have an option to limit the size of /var/cpanel/user_notifications. The new notifications system in 11.50 works well, but the history, specifically /var/cpanel/user_notifications/root/history, can grow very large very quickly. A tweak to be able to limit the size of the directory, and rotate out old notifications, would be helpful.

Replies (5)

photo
1

Are you seeing notifications in the history that are more than 10 days old? The current behavior is to keep for 10 days.

photo
1

So far I have not seen any files older than 10 days, but on very busy servers, it can still be several gigabytes' worth in that directory - 3.4 GB in one instance and 5.6 GB in another. This can become a problem on servers with small /var partitions, which is not uncommon.

photo
1

This is being investigated; we anticipate that the history log items should be 5MB or less and are walking the code path to see where we're allowing 50+ MB files instead.

photo
1

The large size issue was due to the DNS Cluster error logs not ever being rotated/truncated and then being included in the notification in their entirety. That behavior has been changed in 11.50.0.22.


In terms of adding history control, the usage of that functionality is still being determined.

photo
1

I have similar issue with my server container;


CT-243-bash-3.2# pwd

/var/cpanel/user_notifications/root

CT-243-bash-3.2# du -smh * | sort -nrk 1

11G history

Leave a Comment
 
Attach a file