Skip to content

Rotate per-instance logs by de-duping on file path#208

Open
SHA-2048 wants to merge 1 commit intokeymetrics:masterfrom
SHA-2048:fix/rotate-per-instance
Open

Rotate per-instance logs by de-duping on file path#208
SHA-2048 wants to merge 1 commit intokeymetrics:masterfrom
SHA-2048:fix/rotate-per-instance

Conversation

@SHA-2048
Copy link

@SHA-2048 SHA-2048 commented Feb 2, 2026

Problem

pm2-logrotate currently skips additional cluster instances by app name, so only one instance’s log paths are rotated and per-instance logs keep growing.

Fix

De-dupe by log file path instead of app name. This rotates every unique per-instance log while still avoiding duplicate work when logs are merged across instances.

Notes

Addresses #194.

Testing

Not run (module only).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant