Here's the problem with async/delayed deltas: so let's say I have 2
app servers: App1 and App2. App1 has searchd running and App2 simply
connects to App1 for searches. App1 and App2 both have workling/
starling (I'm pretty sure something similar would happen with delayed
job)... So... if a request comes in on App2 that updates a record with
a delta index, App2 will add a job to its queue to update the delta
indexes. Now, if App2 tries to process the job, it will fail -- only
App1, the one with searchd running can run the delta indexer.

On Apr 19, 9:17 pm, James Healy <[email protected]> wrote:
> agibralter wrote:
> > Because I have multiple app servers but only one Sphinx/searchd
> > server, I cannot use the standard delta indexer. I have seen the
> > caveat at the bottom ofhttp://freelancing-god.github.com/ts/en/deltas.html
> > but I can't figure out a good way to send asynchronous delta update
> > jobs to my application server with searchd on it. Has anyone figured
> > out a good way to do this? Also, I'm not using delayed_job in my
> > app... I'm using Workling/Starling, but thinking of moving to
> > Resque... has anyone seen a delayed delta that uses Resque? If so, is
> > there a way to send the "async_update_deltas" jobs to my app server
> > with searchd?
>
> An asynchronous work queue is definitely the way to go. If you're
> already using workling/starling it should be possible to trigger delta
> rebuilds using that.
>
> The trick is that you can pass any class to the delta property in your
> index definition:
>
>     set_property :delta => MyWorklingDelta
>
> To setup MyWorklingDelta, you could use the delayed job delta gem as a
> base, it's a very small piece of code.
>
> There's a gem out there that used to support deltas via workling, you
> could also see if that still works:
>
>  http://github.com/dpickett/workling_delta_indexer
>
> -- James Healy <[email protected]>  Tue, 20 Apr 2010 11:16:59 +1000
>
> --
> 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 
> athttp://groups.google.com/group/thinking-sphinx?hl=en.

-- 
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