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

Split caching database from data source #15

Open
davenquinn opened this issue Aug 29, 2023 · 1 comment
Open

Split caching database from data source #15

davenquinn opened this issue Aug 29, 2023 · 1 comment
Assignees

Comments

@davenquinn
Copy link
Member

There is no special reason that the PostgreSQL tile cache needs to be in the same database as the primary Macrostrat database. We should make it configurable to a separate database, which will help with load balancing. We could also consider using a separate database connection for cache reads and writes for extra performance.

@davenquinn
Copy link
Member Author

This should be designed so that the POSTGRES_DB configuration variable is used by default, but can be specialized (e.g., with CACHE_READ_DB and CACHE_DB connection strings). I'm not quite sure how best to configure this to work with the Postgres Kubernetes operator.

This should also be extended to the CLI, so that the caching tables are created in the appropriate database.

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

No branches or pull requests

2 participants