Aloha Abdul,

This is not a Thinking Sphinx issue, but a Sphinx issue. Well,
actually, it isn't really even a Sphinx issue but a system
architecture issue. Sphinx is able to do distributed searching
( http://www.sphinxsearch.com/docs/manual-0.9.9.html#distributed ) but
Sphinx doesn't offer a high availability setup on its own. You will
need to structure your Sphinx servers similar to how you would
structure your Apache servers to ensure high availability. A system
with a proxy pointing at a set of Sphinx servers basically fits your
request.

However, in my experience, Sphinx is very stable so you probably don't
need a Sphinx cluster. You could monitor each copy of Sphinx with a
program like Monit, then build checks into your application to ensure
it is running before issuing a search. You could then recover in your
application if Sphinx goes offline by redirecting, etc. For example,
we run a copy of Sphinx on each of our web servers (which helps with
scaling) and verify it is running before issuing the search. However,
if search is that critical in your application, you might consider the
search cluster route.

Keep us informed of the path you take. There are several people who
are already doing things like this and I am sure the community would
be interested in what you discover.

Best of luck!

DrMark



On Apr 15, 12:32 am, Abdul-Rahman Advany <[email protected]> wrote:
> Hi guys,
>
> I am running a rails app in a clustered environment as following:
>
>  * All the source/files replicated to the all the servers
>  * Mysql is running as master/slave
>
> What I would like to do, is run two instances of sphinx search, but I
> have no idea how to do that...
>
> I would like to prevent the rails app (that depends on sphinx heavily)
> from failing when an instance of sphinx fails.
>
> Is it possible to setup some kind of master-slave? or maybe two
> instances using the same index files?
>
> Regards,
>
> Abdul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to