Web Server:
* Your app (with TS, ts-delayed-delta gem - these are in the Gemfile)
Sphinx Server:
* Your app (with TS, ts-delayed-delta gem)
* Delayed Job workers
* Sphinx
There's no difference between your app on either machine. You will need to set
the address to access Sphinx from the Web Server though - and ensure the port
is open to traffic from your Web Server.
# in config/thinking_sphinx.yml
production:
address: ip-or-domain-of-sphinx-server
You can see this setting in the documentation (see the Daemon Address and Port
section):
http://pat.github.io/thinking-sphinx/advanced_config.html
--
Pat
On 02/08/2013, at 11:52 AM, [email protected] wrote:
> I need to install my app (with TS) on both machine A and B ? but B is what
> handles web traffic. Now I described it, you see if I follow you? described
> as below:
> machine A : my app (with TS)
> machine B : my app (with TS) + ts-delayed-delta + Delayed Workers + sphinx
> (with index files)
> And now I wonder to know :
> (1), Is there difference of my app on A and B?
> (2), how TS on A access sphinx on B? I don't know the details how TS,
> delayed work and sphinx work in distributed environment.
>
>
> Thanks a lot!
>
> 在 2013年8月1日星期四UTC+8下午7时37分05秒,Pat Allan写道:
> You will need to install your app (with TS) on both machine A and B - but B
> is what handles web traffic. If you are using deltas, then you cannot use the
> default delta approach, you MUST use ts-delayed-delta, ts-resque-delta or
> ts-sidekiq-delta, AND your Delayed Job/Resque/Sidekiq workers must be on
> machine A, because the delta jobs will require direct access to Sphinx and
> the index files.
>
> On 01/08/2013, at 8:00 PM, [email protected] wrote:
>
> > In order to let the web works well, I want to seperate app with search, I
> > mean deploy sphinx+thinking-sphinx in machine A, and deploy my app in
> > machine B, and when data changed on machine B, and the index changed in
> > machine A, when machine B got search request, It searched from machine A,
> > May I? if so ,how? Thanks!
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Thinking Sphinx" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to [email protected].
> > To post to this group, send email to [email protected].
> > Visit this group at http://groups.google.com/group/thinking-sphinx.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Thinking Sphinx" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/thinking-sphinx.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
--
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/thinking-sphinx.
For more options, visit https://groups.google.com/groups/opt_out.