Answer the question
In order to leave comments, you need to log in
Is the connection time with Sphinx ~0.1-0.15c normal?
I started using Sphinx actively in my projects, PHP.
I work with SphinxQL. It takes about 0.1-0.15s to connect with it.
Tried on several servers, on different versions.
Question. This is fine?
Answer the question
In order to leave comments, you need to log in
I brought this time on connection + the first request. I understand that he is opening files at this moment? How can this time be reduced, who has come across this in practice?
Most likely in a config an ambush. May I look at the searchd section?
And on what machine is the sphinx, on the same or on the network?
On the same example:
searchd {
# server listing
listen = 127.0.0.1:9306:mysql41
# log
log = /home/.../sphinx/log/searchd.log
# query
log #query_log = /home/.. ./sphinx/log/query.log
# Server connection timeout (in seconds). When the time expires, a break occurs
read_timeout = 5
# Maximum number of children from the process
max_children = 30
# Path to the pid file
pid_file = /home/.../sphinx/searchd.pid
# Maximum number of output results
max_matches = 1000
# open indices immediately
preopen_indexes = 1
# CPU
count dist_threads = 4
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question