I'm quite new to sphinx, but I've now get it running on an amazon EC2 setup, with app servers and sphinx server on separate instances.
However, thinking sphinx causes an exception in the rails app whenever an indexed model is destroy and the sphinx server can't be contacted. This means that restarting the sphinx daemon can cause random exceptions in the rails app!? Does anyone know how to solve this? I'm not using delta indexing, so it also puzzles my why sphinx has to be contacted at all when a indexed model is destroyed? On Oct 1, 6:40 am, Pat Allan <[EMAIL PROTECTED]> wrote: > On 01/10/2008, at 2:09 AM, Liam Morley wrote: > > > Hmm, interesting. So just to confirm, Sphinx checks the config file > > constantly to see if things have changed, instead of checking it only > > once when it first starts? > > Ah, not sure about this. > > > Also, I'm confused about stopping and > > restarting. Like most people, I'm using capistrano, and so I have > > sphinx.yml put the pid file inside the share directory. I'm assuming > > that's what most people do. The updrift article from earlier says that > > you should stop, then run ts:config in between, then start again, as > > you just suggested. The reason for this, it says, is ts:restart > > doesn't have "the opportunity to re-create the config file prior to > > starting Sphinx up again". But why do you need to stop before running > > config? > > If you've deployed some changes to your Sphinx setup, it's best to > stop, configure & index, then restart, in case you've added new > indexes, or changed the structure of existing indexes. > > > Right now, I have it set up to run ts:config on deploy > > (:after_update_code), followed by ts:restart (:after_symlink, but not > > sure if it'd matter); what's dangerous about that? I tried this and it > > "works", but I could be missing something. > > Again, caveat that I've not done that much with deployment of Sphinx, > but I think the above situations are when you might hit problems. > > Sorry for being so vague. > > Cheers > > -- > Pat --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
