Almost. TS doesn't read the config file, but Sphinx itself does. So, sphinx.yml tells TS what to *write* in the config file, and Sphinx takes care of it from there. TS also uses the sphinx.yml setting to check if Sphinx is running.
-- Pat On 15/09/2009, at 11:17 AM, Matt Davies wrote: > > Ah, I think I got you > > One setting, in the config file, tells TS where to make the PID file, > and the other setting, in the sphinx.yml file, tells TS where the PID > file is to check if it's running. > > Or the other way around. > > :-) > > matt > > > > 2009/9/10 Pat Allan <[email protected]>: >> >> Hi Matt >> >> Not quite grokking what you've said below (but I'm running a bit >> short >> on sleep at the moment), but if I am understanding it correctly: >> Thinking Sphinx checks the pid file itself to see if Sphinx is >> running, so while you can set it manually in your conf file, you'll >> also need it in sphinx.yml for TS to be able to function >> intelligently. >> >> Cheers >> >> -- >> Pat >> >> On 09/09/2009, at 1:36 PM, Matt Davies wrote: >> >>> >>> Thanks Pat, good thinking. >>> >>> While you're here, when we were setting up our deploy script to >>> stop, >>> index, and start sphinx yesterday I ran into something I didn't >>> understand. >>> >>> Before I start, let me first explain that the way we are using TS >>> is a >>> little out of the ordinary. >>> >>> We don't recreate our config file every time dues to constraints >>> in an >>> external source of the data in the rails app itself, so we stop >>> index >>> start like so >>> >>> run "cd /var/www/rails/gaol/current; RAILS_ENV=production rake >>> thinking_sphinx:stop" >>> run "cd /var/www/rails/gaol/current; RAILS_ENV=production rake >>> thinking_sphinx:index INDEX_ONLY=true" >>> run "cd /var/www/rails/gaol/current; RAILS_ENV=production rake >>> thinking_sphinx:start" >>> >>> When it was trying to start it failed saying something along the >>> lines >>> of it could not start without a PID_FILE description in the searchd >>> section. I'd removed the pid_file descriptor as I'd put it in the >>> sphinx.yml. Putting the pid_file variable back into the >>> production.sphinx.conf in the searchd section solved it. >>> >>> Here's the sphinx file >>> >>> production: >>> searchd_file_path: "/var/www/rails/gaol/shared/sphinx" >>> config_file: "/var/www/rails/gaol/current/config/ >>> production.sphinx.conf" >>> searchd_log_file: "/var/www/rails/gaol/shared/log/searchd.log" >>> query_log_file: "/var/www/rails/gaol/shared/log/searchd.query.log" >>> pid_file: "/var/www/rails/gaol/shared/log/searchd.production.pid" >>> >>> How should I have set up the spinx file to tell the ts:start command >>> to use a pid_file described in the sphinx file? >>> >>> Should I have made a section called searchd in the sphinx file >>> thinking about it? >>> >>> V >>> >>> >>> >>> 2009/9/9 Pat Allan <[email protected]>: >>>> >>>> There's no wiki for TS, but if you want to fork the documentation >>>> project from GitHub, perhaps add a page there? >>>> http://github.com/freelancing-god/freelancing-god.github.com/tree/master >>>> >>>> -- >>>> Pat >>>> >>>> On 09/09/2009, at 12:53 PM, vanderkerkoff wrote: >>>> >>>>> >>>>> Hello everyone >>>>> >>>>> I'm going to go through the process of setting up God to monitor >>>>> thinking sphinx. I'll write it all up so it might help someone >>>>> else >>>>> but if anyone has any experience of doing this then if they could >>>>> chip >>>>> in I'd be most grateful. >>>>> >>>>> >>>>> So far, this is what I've found on the web. >>>>> >>>>> http://openmonkey.com/articles/2008/09/configuring-god-to-monitor-sphinxs-searchd >>>>> >>>>> Are there any wiki pages that are associated with google groups I >>>>> could use to write it up anyone know? >>>>> >>>>> >>>>>> >>>> >>>> >>>>> >>>> >>> >>>> >> >> >>> >> > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
