Skip to content

chore: Reduce number of log files#646

Merged
mergify[bot] merged 2 commits intosigp:release-v1.0.0from
AgeManning:reduce-log-files
Oct 8, 2025
Merged

chore: Reduce number of log files#646
mergify[bot] merged 2 commits intosigp:release-v1.0.0from
AgeManning:reduce-log-files

Conversation

@AgeManning
Copy link
Member

Issue Addressed

I was looking through some logs on our servers and noticed a large number of compressed log files.

I see that we have a default of 100 compressed log files. Each are default to 100MB. I think this is a bit excessive. I've reduced the default to 10 log files.

@AgeManning AgeManning changed the title Reduce number of log files chore: Reduce number of log files Oct 2, 2025
@diegomrsantos diegomrsantos requested a review from Copilot October 2, 2025 14:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR reduces the default maximum number of log files from 100 to 10 to address excessive disk usage from compressed log files on servers.

  • Reduces default log file retention from 100 to 10 files
  • Maintains the same 100MB default size per file, reducing total default storage from ~10GB to ~1GB

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

dknopik
dknopik previously approved these changes Oct 6, 2025
Copy link
Member

@dknopik dknopik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, the old default was back from when we logged even more

@dknopik
Copy link
Member

dknopik commented Oct 6, 2025

I think we even want this in v1.0.0. I can handle rebasing if you agree

@dknopik dknopik changed the base branch from unstable to release-v1.0.0 October 8, 2025 10:09
Copy link
Member

@dknopik dknopik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dknopik dknopik added ready-for-merge v1.0.0 First Mainnet-release labels Oct 8, 2025
@mergify mergify bot added the queued label Oct 8, 2025
mergify bot added a commit that referenced this pull request Oct 8, 2025
@mergify mergify bot merged commit 074d91a into sigp:release-v1.0.0 Oct 8, 2025
8 checks passed
@mergify mergify bot removed the queued label Oct 8, 2025
petarjuki7 pushed a commit to petarjuki7/anchor that referenced this pull request Oct 16, 2025
I was looking through some logs on our servers and noticed a large number of compressed log files.

I see that we have a default of 100 compressed log files. Each are default to 100MB. I think this is a bit excessive. I've reduced the default to 10 log files.


  


Co-Authored-By: Age Manning <Age@AgeManning.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-merge v1.0.0 First Mainnet-release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants