Skip to content

Conversation

@timacdonald
Copy link
Member

@timacdonald timacdonald commented Dec 1, 2024

This is a follow up PR to #424.

It introduces a dedicated trim config for the storage driver.

The recommended set up for Pulse installed on any high traffic application is using the Redis ingest and the Database storage. Having a dedicated config for storage allows you to have, say, 3 days of data in storage while maintaining only a couple of hours in the ingest.

Redis is likely to fall over if you tried to keep 3 days worth of data in it. The ingest trim is there as a safety mechanism in case the pulse:work command goes down.

So these two config values often serve a different purpose.

This PR also ensures that the configured storage trim duration is not greater than 7 days, which is the longest period Pulse supports.

@timacdonald timacdonald changed the title [1.x] Use dedicated config value for storage [1.x] Use dedicated config value for trimming storage Dec 1, 2024
@timacdonald timacdonald marked this pull request as ready for review December 1, 2024 23:17
@taylorotwell taylorotwell merged commit 56208e7 into 1.x Dec 2, 2024
19 checks passed
@taylorotwell taylorotwell deleted the storage-trim branch December 2, 2024 15:17
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.

3 participants