Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limit session length #1089

Open
marandaneto opened this issue Mar 18, 2024 · 1 comment
Open

Limit session length #1089

marandaneto opened this issue Mar 18, 2024 · 1 comment

Comments

@marandaneto
Copy link
Member

Right now session length is hardcoded to 24h

const SESSION_LENGTH_LIMIT = 24 * 3600 * 1000 // 24 hours

We can probably make this much shorter by default (let's say 4 hours?) but also allow it to be set as a configuration.

Very long sessions may cause issues during the playback due to the amount of CPU and RAM consumed.

Tickets https://posthoghelp.zendesk.com/agent/tickets/11727

@marandaneto
Copy link
Member Author

This could affect pricing so let's think before doing this change.
An option is to make it configurable and keep it 24h by default.

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

No branches or pull requests

1 participant