magento / magento/magento-cloud
[Feature request] logrotate in Integration environments
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 226
- Forks
- 244
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the Integration environment configuration and the existing logrotate setup used by clustered Production and Staging, then compare their rules and deployment path. Confirm the desired preconfiguration for containerized environments and verify that logs rotate without allowing storage to fill.
Written by the indexing model from the issue text.
Assessment
- Domain
- devops, infrastructure
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100