Page 1 of 1

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

Posted: Thu Apr 16, 2020 9:03 am
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';

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

Posted: Thu Apr 16, 2020 9:06 am
by admin
Hi, why do you think so?

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

Posted: Thu Apr 16, 2020 9:08 am
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).

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

Posted: Thu Apr 16, 2020 9:14 am
by admin
did you try to clean cache at slave after you've added sphinx to master site?

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

Posted: Thu Apr 16, 2020 10:05 am
by alexscj
Tried now, cleaning cache worked!

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

Posted: Thu Apr 16, 2020 11:15 am
by admin
ok