magento-cloud icon indicating copy to clipboard operation
magento-cloud copied to clipboard

[Feature request] logrotate in Integration environments

Open joeshelton-wagento opened this issue 5 years ago • 2 comments

The logrotate utility should be installed and preconfigured on Integration (containerized) environments. Running out of storage due to large log files happens for various reasons. Its absence an unexpected inconsistency with clustered (Pro Plan Production and Staging) environments, which have logrotate. Further, the utility is consistently offered by Magento Cloud's hosting competitors.

A couple scenarios in which I have encountered the issue.

  • The Production environment of a Starter Plan is containerized. The normal traffic load of a Production site will cause log size to increase rapidly.
  • If an error exists during a cron run, that error will continuously be logged, causing even unused Integration environments to exceed storage capacity over time.

joeshelton-wagento avatar Sep 17 '19 19:09 joeshelton-wagento

As of 2021, it looks like logrotate is installed on both pro plan prod and staging environments as well as integration environments under /usr/sbin/logrotate. However, it isn't configured out of the box.

Staging and prod are on logrotate version 3.8.7 while integration environments are on 3.11.0.

tonyklapatch avatar Sep 28 '21 19:09 tonyklapatch

@tonyklapatch would you happen to have a guide for configuring logrotate for the integration environments? Or, even a simple conf file that could be dropped in?

damienwebdev avatar Apr 12 '22 00:04 damienwebdev