pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 470 forks source link

Sharing DB files across multiple servers #1103

Closed chris-roerig closed 6 years ago

chris-roerig commented 6 years ago

Hi Pat,

Are there any negative implications to sharing indexed DB files across many servers? My situation involves handling a failover situation where one server becomes unavailable and traffic is sent to another box. In this case I would want the DB files to be up to date as if nothing happened. Each server would mount the same NFS share where the files would live. What do you think?

pat commented 6 years ago

Hi Chris

I think this would be fine, with a couple of caveats:

Another option could be to have a single dedicated Sphinx server, and have all Rails app servers talk to that - you'll still need a copy of the Rails app to run on that Sphinx server though (so you can invoke all of the ts rake tasks there). But that doesn't address the situation of that Sphinx server having a failover.

chris-roerig commented 6 years ago

Thanks, Pat.