Fixed searchd config to user thread_pool workers

Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
Janos SUTO 2022-05-31 18:00:58 +02:00
parent eb2b22b2bc
commit 507ac86885

View File

@ -113,11 +113,11 @@ source note : base
index main1 index main1
{ {
source = main1 source = main1
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main1 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main1
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -131,7 +131,7 @@ index main2
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main2 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main2
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -145,7 +145,7 @@ index main3
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main3 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main3
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -159,7 +159,7 @@ index main4
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main4 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/main4
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -173,7 +173,7 @@ index dailydelta1
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/dailydelta1 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/dailydelta1
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -187,7 +187,7 @@ index delta1
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/delta1 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/delta1
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -205,7 +205,7 @@ index tag1
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/tag1 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/tag1
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -220,7 +220,7 @@ index note1
path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/note1 path = <?php print LOCALSTATEDIR; ?>/piler/sphinx/note1
<?php if(SPHINX_VERSION < 300) { ?> <?php if(SPHINX_VERSION < 300) { ?>
docinfo = extern docinfo = extern
dict = keywords dict = keywords
<?php } ?> <?php } ?>
min_prefix_len = 5 min_prefix_len = 5
min_word_len = 1 min_word_len = 1
@ -231,23 +231,23 @@ index note1
indexer indexer
{ {
mem_limit = 256M mem_limit = 256M
} }
searchd searchd
{ {
listen = 127.0.0.1:9312 listen = 127.0.0.1:9312
listen = 127.0.0.1:9306:mysql41 listen = 127.0.0.1:9306:mysql41
log = /dev/null log = /dev/null
binlog_path = binlog_path =
##query_log = ##query_log =
read_timeout = 5 read_timeout = 5
max_children = 30 max_children = 30
pid_file = /var/run/piler/searchd.pid pid_file = /var/run/piler/searchd.pid
seamless_rotate = 1 seamless_rotate = 1
preopen_indexes = 1 preopen_indexes = 1
unlink_old = 1 unlink_old = 1
thread_stack = 512k thread_stack = 512k
workers = threads # for RT to work workers = thread_pool
} }