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

Dedicated database connections for schema migration #2228

Open
pdeaudney opened this issue Feb 3, 2025 · 0 comments
Open

Dedicated database connections for schema migration #2228

pdeaudney opened this issue Feb 3, 2025 · 0 comments
Labels
kind/proposal Something fundamentally needs to change

Comments

@pdeaudney
Copy link

Problem Statement

I want to be able to operate spicedb with database statement timeouts enforced to a value sensible for my environment that prevent unbounded data store query execution times.

In environments where I might have reverse proxies on the request path, these could have proxy request timeouts set to values that would terminate connections after X seconds.

Letting the spicedb datastore execute queries that run longer than this value presents an operational risk.

Particularly if the end user / system was to trigger multiple queries that result in the proxy cancelling/terminating the request but spicedb is left executing the long running queries until execution.

This is likely to lead to significant performance degradation on the spicedb datastore layer.

Solution Brainstorm

If SpiceDB had a optional connection string that is used for database migrations I would be able to enable unbound query execution times for that role that role/connection to ensure datastore migrations can complete (such as index creation changes).

This would allow me as a spicedb operator to enable default role/connection level parameters on my datastore for regular operation that prevent unbounded query execution times.

@pdeaudney pdeaudney added the kind/proposal Something fundamentally needs to change label Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/proposal Something fundamentally needs to change
Projects
None yet
Development

No branches or pull requests

1 participant