W
W
Webspec2014-01-10 08:28:19
PHP
Webspec, 2014-01-10 08:28:19

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

7 answer(s)
P
Puma Thailand, 2014-01-10
@opium

No it's not okay

A
Alexey, 2014-01-10
@ScorpLeX

You can try nodejs as a proxy to Sphinx, I think it will be faster.

W
Webspec, 2014-01-10
@Webspec

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?

N
napolskih, 2014-01-11
@napolskih

sphinxsearch.com/docs/archives/1.10/conf-preopen.html

W
Webspec, 2014-01-12
@Webspec

Alas, this setting did not help. The time is past.

K
kshmatov, 2014-01-15
@kshmatov

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?

W
Webspec, 2014-01-15
@Webspec

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 question

Ask a Question

731 491 924 answers to any question