Hello, I'm wondering if it's possible to have one Elasticsearch instance running with multiple Ruby on Rails apps, and if so, are there any instructions I can follow to make such a setup?
Thanks!
Hello, I'm wondering if it's possible to have one Elasticsearch instance running with multiple Ruby on Rails apps, and if so, are there any instructions I can follow to make such a setup?
Thanks!
There's no reason you cannot, just use multiple indices with aliases.
Having a naming convention across your apps can help. I use {env}-{appname}-{indexname}-{version}. So my entertainment RoR app on my local development environment might have and index for movies named development-entertainment-movies-v1
with an alias called development-entertainment-movies
that the application code uses for reads/writes.
© 2020. All Rights Reserved - Elasticsearch
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant logo are trademarks of the Apache Software Foundation in the United States and/or other countries.