One Elasticsearch instance, multiple Rails apps


(Dani G2k) #1

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!


(Mark Walkom) #2

There's no reason you cannot, just use multiple indices with aliases.


(Loren Siebert) #3

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.


(system) #4