Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Add experimental 'databases' config #6580

Merged
merged 4 commits into from
Jan 6, 2020

Conversation

erikjohnston
Copy link
Member

@erikjohnston erikjohnston commented Dec 20, 2019

As well as add a bit of sanity checking that we've specified all the necessary data stores.

This is mainly so that we can added a sytest to make sure that a multi database configuration actually works. (A sytest PR will be incoming matrix-org/sytest#775)

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems generally plausible


self.databases = [
DatabaseConnectionConfig(
name, db_conf, data_stores=db_conf.get("data_stores")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should data_stores be a required option? it feels like defaulting to "all data stores" is maybe unhelpful.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's mainly useful so that people with a single database don't have to enumerate all the different types of data stores (on the assumption we'll want to keep splitting them out).

Potentially the correct thing here would be to default to data stores that aren't otherwise provisioned?

synapse/config/database.py Outdated Show resolved Hide resolved
@erikjohnston erikjohnston merged commit 9f6c1be into develop Jan 6, 2020
@erikjohnston erikjohnston deleted the erikj/add_experimental_db_config branch January 9, 2020 15:46
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '9f6c1befb':
  Add experimental 'databases' config (#6580)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants