略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SphinxClient::status

2024-04-18

SphinxClient::status

(PECL sphinx >= 1.0.3)

SphinxClient::statusQueries searchd status

说明

public SphinxClient::status ( void ) : array

Queries searchd status, and returns an array of status variable name and value pairs.

参数

此函数没有参数。

更新日志

PECL/sphinx 版本 说明
1.0.3 Added SphinxClient::status(), available only if compiled with libsphinxclient >= 0.9.9.

返回值

Returns an associative array of search server statistics 或者在失败时返回 FALSE.

add a note add a note

User Contributed Notes 1 note

up
0
orlov0562 at gmail dot com
2 years ago
Returned array contains next fields (Sphinx 2.2.11)
-------------------------
print_r(array_map(function($in){return $in[0].' = '.$in[1];}, $sphinx->status()));
-------------------------
Array
(
    [0] => uptime = 10540
    [1] => connections = 35
    [2] => maxed_out = 0
    [3] => command_search = 21
    [4] => command_excerpt = 10
    [5] => command_update = 0
    [6] => command_delete = 0
    [7] => command_keywords = 0
    [8] => command_persist = 0
    [9] => command_status = 4
    [10] => command_flushattrs = 0
    [11] => agent_connect = 0
    [12] => agent_retry = 0
    [13] => queries = 21
    [14] => dist_queries = 0
    [15] => query_wall = 0.009
    [16] => query_cpu = OFF
    [17] => dist_wall = 0.000
    [18] => dist_local = 0.000
    [19] => dist_wait = 0.000
    [20] => query_reads = OFF
    [21] => query_readkb = OFF
    [22] => query_readtime = OFF
    [23] => avg_query_wall = 0.000
    [24] => avg_query_cpu = OFF
    [25] => avg_dist_wall = 0.000
    [26] => avg_dist_local = 0.000
    [27] => avg_dist_wait = 0.000
    [28] => avg_query_reads = OFF
    [29] => avg_query_readkb = OFF
    [30] => avg_query_readtime = OFF
)
-------------------------

官方地址:https://www.php.net/manual/en/sphinxclient.status.php

冷却塔厂家 广告
-- 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3