Search on slave doesn't use master sphinx index directly.

Post all bugs here
Post Reply
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Search on slave doesn't use master sphinx index directly.

Post by alexscj »

Hello,

build 202004142014,

search on slaves seem to not use sphinx index from master directly.

Specifying sphinx settings in each of slave's config.php fixes the problem:
$config["sphinx_host"] = '127.0.0.1';
$config["sphinx_port"] = '9306';
$config["sphinx_search_index"] = 'index_name';
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Search on slave doesn't use master sphinx index directly.

Post by admin »

Hi, why do you think so?
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Search on slave doesn't use master sphinx index directly.

Post by alexscj »

Searches on master are logged in
/var/log/sphinxsearch/query.log
, searches on slaves are not (until adding the sphinx index in config.php).
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Search on slave doesn't use master sphinx index directly.

Post by admin »

did you try to clean cache at slave after you've added sphinx to master site?
Don't forget to run script update
alexscj
Posts: 160
Joined: Mon Apr 01, 2013 3:04 pm

Re: Search on slave doesn't use master sphinx index directly.

Post by alexscj »

Tried now, cleaning cache worked!
admin
Site Admin
Posts: 37202
Joined: Wed Sep 10, 2008 11:43 am

Re: Search on slave doesn't use master sphinx index directly.

Post by admin »

ok
Don't forget to run script update
Post Reply