From 507ac868853422af30d6787308a2b88d361e57fd Mon Sep 17 00:00:00 2001 From: Janos SUTO Date: Tue, 31 May 2022 18:00:58 +0200 Subject: [PATCH] Fixed searchd config to user thread_pool workers Signed-off-by: Janos SUTO --- etc/sphinx.conf.in | 50 +++++++++++++++++++++++----------------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/etc/sphinx.conf.in b/etc/sphinx.conf.in index a4b21591..c4eadc38 100644 --- a/etc/sphinx.conf.in +++ b/etc/sphinx.conf.in @@ -113,11 +113,11 @@ source note : base index main1 { - source = main1 - path = /piler/sphinx/main1 + source = main1 + path = /piler/sphinx/main1 - docinfo = extern - dict = keywords + docinfo = extern + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -131,7 +131,7 @@ index main2 path = /piler/sphinx/main2 docinfo = extern - dict = keywords + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -145,7 +145,7 @@ index main3 path = /piler/sphinx/main3 docinfo = extern - dict = keywords + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -159,7 +159,7 @@ index main4 path = /piler/sphinx/main4 docinfo = extern - dict = keywords + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -173,7 +173,7 @@ index dailydelta1 path = /piler/sphinx/dailydelta1 docinfo = extern - dict = keywords + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -187,7 +187,7 @@ index delta1 path = /piler/sphinx/delta1 docinfo = extern - dict = keywords + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -205,7 +205,7 @@ index tag1 path = /piler/sphinx/tag1 docinfo = extern - dict = keywords + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -220,7 +220,7 @@ index note1 path = /piler/sphinx/note1 docinfo = extern - dict = keywords + dict = keywords min_prefix_len = 5 min_word_len = 1 @@ -231,23 +231,23 @@ index note1 indexer { - mem_limit = 256M + mem_limit = 256M } searchd { - listen = 127.0.0.1:9312 - listen = 127.0.0.1:9306:mysql41 - log = /dev/null - binlog_path = - ##query_log = - read_timeout = 5 - max_children = 30 - pid_file = /var/run/piler/searchd.pid - seamless_rotate = 1 - preopen_indexes = 1 - unlink_old = 1 - thread_stack = 512k - workers = threads # for RT to work + listen = 127.0.0.1:9312 + listen = 127.0.0.1:9306:mysql41 + log = /dev/null + binlog_path = + ##query_log = + read_timeout = 5 + max_children = 30 + pid_file = /var/run/piler/searchd.pid + seamless_rotate = 1 + preopen_indexes = 1 + unlink_old = 1 + thread_stack = 512k + workers = thread_pool }