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

request: configuration option to enable multiple invenio instances to share an elasticsearch instance #129

Open
dfdan opened this issue Mar 7, 2018 · 2 comments

Comments

@dfdan
Copy link
Member

dfdan commented Mar 7, 2018

It is easy to configure multiple invenio instances to share the same PostgreSQL and Redis servers, by separating their data with different postgres roles / redis URLs. However, this is not currently possible with ElasticSearch as it lacks any sort of namespacing, and index names will collide if you point 2 invenio instances at the same elasticsearch instance.

We are trying to work around this by manually specifying different index names for each instance, however this is fiddily.

Would it be possible to add an invenio-search configuration option that specifies a (unique) prefix to be used by a particular invenio instance? Or is there a better way to do this?

@dfdan dfdan changed the title request: configuration option to enable multiple invenio instances to share an elastic search index request: configuration option to enable multiple invenio instances to share an elasticsearch instance Mar 7, 2018
@david-caro
Copy link
Member

This could be done with prefixes, allowing then to use cern hosted elasticsearch too right?

@slint
Copy link
Member

slint commented Jun 26, 2018

@dfdan's use case was more about multi-tenancy (where ES prefixing is the main blocker atm for Invenio)

ntarocco added a commit that referenced this issue Feb 18, 2019
 * prefix are not added multiple times to indices anymore
 * partially addresses #129
ntarocco added a commit that referenced this issue Feb 18, 2019
 * prefix are not added multiple times to indices anymore
 * partially addresses #129
lnielsen pushed a commit that referenced this issue Feb 21, 2019
 * prefix are not added multiple times to indices anymore
 * partially addresses #129
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

3 participants