The easiest way to view high-level information about your Manticore node is by running status
in the MySQL client. It will display information about various aspects, such as: * Current version * Whether SSL is in effect or not * Current TCP port/Unix socket * Uptime * Number of threads * Number of jobs in queue * Number of connections (clients
) * Number of tasks being processed currently * Number of queries executed since the start * Number of jobs in queue and number of tasks, normalized by the number of threads
> status mysql
--------------
14.14 Distrib 5.7.30, for Linux (x86_64) using EditLine wrapper
mysql Ver
id: 378
Connection Current database: Manticore
Current user: Usual
Not in use
SSL: Current pager: stdout
Using outfile: ''
Using delimiter: ;
3.4.3 a48c61d6@200702 coroutines git branch coroutines_work_junk...origin/coroutines_work_junk
Server version: 10
Protocol version: 0 via TCP/IP
Connection:
Server characterset:
Db characterset:
Client characterset: utf8
Conn. characterset: utf88306
TCP port: 23 hours 6 sec
Uptime:
12 Queue: 3 Clients: 1 Vip clients: 0 Tasks: 5 Queries: 318967 Wall: 7h CPU: 0us
Threads: Queue/Th: 0.2 Tasks/Th: 0.4
--------------
LIKE pattern ] SHOW STATUS [
SHOW STATUS
is an SQL statement that presents various helpful performance counters. IO and CPU counters will only be available if searchd
was started with the --iostats
and --cpustats
switches, respectively (or if they were enabled via SET GLOBAL iostats/cpustats=1
).
SHOW STATUS;
+-----------------------+---------------------------+
Value |
| Counter | +-----------------------+---------------------------+
1385 |
| uptime | 11 |
| connections | 0 |
| maxed_out | 3.4.3 ab7cbe5d@200511 dev |
| version | 3.4.3 ab7cbe5d@200511 dev |
| mysql_version | 2 |
| command_search | 0 |
| command_excerpt | 0 |
| command_update | 0 |
| command_delete | 0 |
| command_keywords | 0 |
| command_persist | 1 |
| command_status | 0 |
| command_flushattrs | 1 |
| command_set | 0 |
| command_insert | 0 |
| command_replace | 0 |
| command_commit | 0 |
| command_suggest | 0 |
| command_json | 0 |
| command_callpq | 0 |
| agent_connect | 0 |
| agent_retry | 12 |
| queries | 0 |
| dist_queries | 30 |
| workers_total | 1 |
| workers_active | 0 |
| workers_clients | 1 |
| workers_clients_vip | 1 |
| work_queue_length | 10.805 |
| query_wall | OFF |
| query_cpu | 0.000 |
| dist_wall | 0.000 |
| dist_local | 0.000 |
| dist_wait | OFF |
| query_reads | OFF |
| query_readkb | OFF |
| query_readtime | 0.900 |
| avg_query_wall | OFF |
| avg_query_cpu | 0.000 |
| avg_dist_wall | 0.000 |
| avg_dist_local | 0.000 |
| avg_dist_wait | OFF |
| avg_query_reads | OFF |
| avg_query_readkb | OFF |
| avg_query_readtime | 0 |
| qcache_max_bytes | 3000 |
| qcache_thresh_msec | 60 |
| qcache_ttl_sec | 0 |
| qcache_cached_queries | 0 |
| qcache_used_bytes | 0 |
| qcache_hits | +-----------------------+---------------------------+
49 rows in set (0.00 sec)
An optional LIKE
clause is supported, allowing you to select only the variables that match a specific pattern. The pattern syntax follows standard SQL wildcards, where %
represents any number of any characters, and _
represents a single character.
LIKE 'qcache%'; SHOW STATUS
+-----------------------+-------+
Value |
| Counter | +-----------------------+-------+
0 |
| qcache_max_bytes | 3000 |
| qcache_thresh_msec | 60 |
| qcache_ttl_sec | 0 |
| qcache_cached_queries | 0 |
| qcache_used_bytes | 0 |
| qcache_hits | +-----------------------+-------+
6 rows in set (0.00 sec)
SHOW SETTINGS
is an SQL statement that displays the current settings from your configuration file. The setting names are represented in the following format: 'config_section_name'.'setting_name'
The result also includes two additional values: - configuration_file
- The path to the configuration file - worker_pid
- The process ID of the running searchd
instance
SHOW SETTINGS;
+--------------------------+-------------------------------------+
Value |
| Setting_name | +--------------------------+-------------------------------------+
/etc/manticoresearch/manticore.conf |
| configuration_file | 658 |
| worker_pid | 0.0.0:9312 |
| searchd.listen | 0.0.0:9306:mysql |
| searchd.listen | 0.0.0:9308:http |
| searchd.listen | log | /var/log/manticore/searchd.log |
| searchd./var/log/manticore/query.log |
| searchd.query_log | /var/run/manticore/searchd.pid |
| searchd.pid_file | /var/lib/manticore |
| searchd.data_dir |
| searchd.query_log_format | sphinxql |/var/lib/manticore/binlog |
| searchd.binlog_path | /usr/local/lib/manticore |
| common.plugin_dir | /usr/share/manticore/morph/ |
| common.lemmatizer_base | +--------------------------+-------------------------------------+
13 rows in set (0.00 sec)
AGENT ['agent_or_index'] STATUS [ LIKE pattern ] SHOW
SHOW AGENT STATUS
displays the statistics of remote agents or a distributed table. It includes values such as the age of the last request, last answer, the number of various types of errors and successes, and so on. Statistics are displayed for every agent for the last 1, 5, and 15 intervals, each consisting of ha_period_karma seconds.
AGENT STATUS; SHOW
+------------------------------------+----------------------------+
Value |
| Variable_name | +------------------------------------+----------------------------+
60 |
| status_period_seconds | 15 |
| status_stored_periods | 192.168.0.202:6713 |
| ag_0_hostname | 2 |
| ag_0_references | 0.41 |
| ag_0_lastquery | 0.19 |
| ag_0_lastanswer | 222 |
| ag_0_lastperiodmsec | 10.521 |
| ag_0_pingtripmsec | 0 |
| ag_0_errorsarow | 0 |
| ag_0_1periods_query_timeouts | 0 |
| ag_0_1periods_connect_timeouts | 0 |
| ag_0_1periods_connect_failures | 0 |
| ag_0_1periods_network_errors | 0 |
| ag_0_1periods_wrong_replies | 0 |
| ag_0_1periods_unexpected_closings | 0 |
| ag_0_1periods_warnings | 27 |
| ag_0_1periods_succeeded_queries | 232.31 |
| ag_0_1periods_msecsperquery | 0 |
| ag_0_5periods_query_timeouts | 0 |
| ag_0_5periods_connect_timeouts | 0 |
| ag_0_5periods_connect_failures | 0 |
| ag_0_5periods_network_errors | 0 |
| ag_0_5periods_wrong_replies | 0 |
| ag_0_5periods_unexpected_closings | 0 |
| ag_0_5periods_warnings | 146 |
| ag_0_5periods_succeeded_queries | 231.83 |
| ag_0_5periods_msecsperquery | 192.168.0.202:6714 |
| ag_1_hostname | 2 |
| ag_1_references | 0.41 |
| ag_1_lastquery | 0.19 |
| ag_1_lastanswer | 220 |
| ag_1_lastperiodmsec | 10.004 |
| ag_1_pingtripmsec | 0 |
| ag_1_errorsarow | 0 |
| ag_1_1periods_query_timeouts | 0 |
| ag_1_1periods_connect_timeouts | 0 |
| ag_1_1periods_connect_failures | 0 |
| ag_1_1periods_network_errors | 0 |
| ag_1_1periods_wrong_replies | 0 |
| ag_1_1periods_unexpected_closings | 0 |
| ag_1_1periods_warnings | 27 |
| ag_1_1periods_succeeded_queries | 231.24 |
| ag_1_1periods_msecsperquery | 0 |
| ag_1_5periods_query_timeouts | 0 |
| ag_1_5periods_connect_timeouts | 0 |
| ag_1_5periods_connect_failures | 0 |
| ag_1_5periods_network_errors | 0 |
| ag_1_5periods_wrong_replies | 0 |
| ag_1_5periods_unexpected_closings | 0 |
| ag_1_5periods_warnings | 146 |
| ag_1_5periods_succeeded_queries | 230.85 |
| ag_1_5periods_msecsperquery | +------------------------------------+----------------------------+
50 rows in set (0.01 sec)
$client->nodes()->agentstatus();
Array(
[status_period_seconds] => 60
[status_stored_periods] => 15
[ag_0_hostname] => 192.168.0.202:6713
[ag_0_references] => 2
[ag_0_lastquery] => 0.41
[ag_0_lastanswer] => 0.19
[ag_0_lastperiodmsec] => 222
[ag_0_errorsarow] => 0
[ag_0_1periods_query_timeouts] => 0
[ag_0_1periods_connect_timeouts] => 0
[ag_0_1periods_connect_failures] => 0
[ag_0_1periods_network_errors] => 0
[ag_0_1periods_wrong_replies] => 0
[ag_0_1periods_unexpected_closings] => 0
[ag_0_1periods_warnings] => 0
[ag_0_1periods_succeeded_queries] => 27
[ag_0_1periods_msecsperquery] => 232.31
[ag_0_5periods_query_timeouts] => 0
[ag_0_5periods_connect_timeouts] => 0
[ag_0_5periods_connect_failures] => 0
[ag_0_5periods_network_errors] => 0
[ag_0_5periods_wrong_replies] => 0
[ag_0_5periods_unexpected_closings] => 0
[ag_0_5periods_warnings] => 0
[ag_0_5periods_succeeded_queries] => 146
[ag_0_5periods_msecsperquery] => 231.83
[ag_1_hostname 192.168.0.202:6714
[ag_1_references] => 2
[ag_1_lastquery] => 0.41
[ag_1_lastanswer] => 0.19
[ag_1_lastperiodmsec] => 220
[ag_1_errorsarow] => 0
[ag_1_1periods_query_timeouts] => 0
[ag_1_1periods_connect_timeouts] => 0
[ag_1_1periods_connect_failures] => 0
[ag_1_1periods_network_errors] => 0
[ag_1_1periods_wrong_replies] => 0
[ag_1_1periods_unexpected_closings] => 0
[ag_1_1periods_warnings] => 0
[ag_1_1periods_succeeded_queries] => 27
[ag_1_1periods_msecsperquery] => 231.24
[ag_1_5periods_query_timeouts] => 0
[ag_1_5periods_connect_timeouts] => 0
[ag_1_5periods_connect_failures] => 0
[ag_1_5periods_network_errors] => 0
[ag_1_5periods_wrong_replies] => 0
[ag_1_5periods_unexpected_closings
[ag_1_5periods_warnings] => 0
[ag_1_5periods_succeeded_queries] => 146
[ag_1_5periods_msecsperquery] => 230.85
)
'SHOW AGENT STATUS') utilsApi.sql(
u'columns': [{u'Key': {u'type': u'string'}},
{u'Value': {u'type': u'string'}}],
{u'data': [
u'Key': u'status_period_seconds', u'Value': u'60'},
{u'Key': u'status_stored_periods', u'Value': u'15'},
{u'Key': u'ag_0_hostname', u'Value': u'192.168.0.202:6713'},
{u'Key': u'ag_0_references', u'Value': u'2'},
{u'Key': u'ag_0_lastquery', u'Value': u'0.41'},
{u'Key': u'ag_0_lastanswer', u'Value': u'0.19'},
{u'Key': u'ag_0_lastperiodmsec', u'Value': u'222'},
{u'Key': u'ag_0_errorsarow', u'Value': u'0'},
{u'Key': u'ag_0_1periods_query_timeouts', u'Value': u'0'},
{u'Key': u'ag_0_1periods_connect_timeouts', u'Value': u'0'},
{u'Key': u'ag_0_1periods_connect_failures', u'Value': u'0'},
{u'Key': u'ag_0_1periods_network_errors', u'Value': u'0'},
{u'Key': u'ag_0_1periods_wrong_replies', u'Value': u'0'},
{u'Key': u'ag_0_1periods_unexpected_closings', u'Value': u'0'},
{u'Key': u'ag_0_1periods_warnings', u'Value': u'0'},
{u'Key': u'ag_0_1periods_succeeded_queries', u'Value': u'27'},
{u'Key': u'ag_0_1periods_msecsperquery', u'Value': u'232.31'},
{u'Key': u'ag_0_5periods_query_timeouts', u'Value': u'0'},
{u'Key': u'ag_0_5periods_connect_timeouts', u'Value': u'0'},
{u'Key': u'ag_0_5periods_connect_failures', u'Value': u'0'},
{u'Key': u'ag_0_5periods_network_errors', u'Value': u'0'},
{u'Key': u'ag_0_5periods_wrong_replies', u'Value': u'0'},
{u'Key': u'ag_0_5periods_unexpected_closings', u'Value': u'0'},
{u'Key': u'ag_0_5periods_warnings', u'Value': u'0'},
{u'Key': u'ag_0_5periods_succeeded_queries', u'Value': u'146'},
{u'Key': u'ag_0_5periods_msecsperquery', u'Value': u'231.83'},
{u'Key': u'ag_1_hostname 192.168.0.202:6714'},
{u'Key': u'ag_1_references', u'Value': u'2'},
{u'Key': u'ag_1_lastquery', u'Value': u'0.41'},
{u'Key': u'ag_1_lastanswer', u'Value': u'0.19'},
{u'Key': u'ag_1_lastperiodmsec', u'Value': u'220'},
{u'Key': u'ag_1_errorsarow', u'Value': u'0'},
{u'Key': u'ag_1_1periods_query_timeouts', u'Value': u'0'},
{u'Key': u'ag_1_1periods_connect_timeouts', u'Value': u'0'},
{u'Key': u'ag_1_1periods_connect_failures', u'Value': u'0'},
{u'Key': u'ag_1_1periods_network_errors', u'Value': u'0'},
{u'Key': u'ag_1_1periods_wrong_replies', u'Value': u'0'},
{u'Key': u'ag_1_1periods_unexpected_closings', u'Value': u'0'},
{u'Key': u'ag_1_1periods_warnings', u'Value': u'0'},
{u'Key': u'ag_1_1periods_succeeded_queries', u'Value': u'27'},
{u'Key': u'ag_1_1periods_msecsperquery', u'Value': u'231.24'},
{u'Key': u'ag_1_5periods_query_timeouts', u'Value': u'0'},
{u'Key': u'ag_1_5periods_connect_timeouts', u'Value': u'0'},
{u'Key': u'ag_1_5periods_connect_failures', u'Value': u'0'},
{u'Key': u'ag_1_5periods_network_errors', u'Value': u'0'},
{u'Key': u'ag_1_5periods_wrong_replies', u'Value': u'0'},
{u'Key': u'ag_1_5periods_warnings', u'Value': u'0'},
{u'Key': u'ag_1_5periods_succeeded_queries', u'Value': u'146'},
{u'Key': u'ag_1_5periods_msecsperquery', u'Value': u'230.85'}],
{u'error': u'',
u'total': 0,
u'warning': u''}
= await utilsApi.sql("SHOW AGENT STATUS"); res
"columns": [{"Key": {"type": "string"}},
{"Value": {"type": "string"}}],
{"data": [
"Key": "status_period_seconds", "Value": "60"},
{"Key": "status_stored_periods", "Value": "15"},
{"Key": "ag_0_hostname", "Value": "192.168.0.202:6713"},
{"Key": "ag_0_references", "Value": "2"},
{"Key": "ag_0_lastquery", "Value": "0.41"},
{"Key": "ag_0_lastanswer", "Value": "0.19"},
{"Key": "ag_0_lastperiodmsec", "Value": "222"},
{"Key": "ag_0_errorsarow", "Value": "0"},
{"Key": "ag_0_1periods_query_timeouts", "Value": "0"},
{"Key": "ag_0_1periods_connect_timeouts", "Value": "0"},
{"Key": "ag_0_1periods_connect_failures", "Value": "0"},
{"Key": "ag_0_1periods_network_errors", "Value": "0"},
{"Key": "ag_0_1periods_wrong_replies", "Value": "0"},
{"Key": "ag_0_1periods_unexpected_closings", "Value": "0"},
{"Key": "ag_0_1periods_warnings", "Value": "0"},
{"Key": "ag_0_1periods_succeeded_queries", "Value": "27"},
{"Key": "ag_0_1periods_msecsperquery", "Value": "232.31"},
{"Key": "ag_0_5periods_query_timeouts", "Value": "0"},
{"Key": "ag_0_5periods_connect_timeouts", "Value": "0"},
{"Key": "ag_0_5periods_connect_failures", "Value": "0"},
{"Key": "ag_0_5periods_network_errors", "Value": "0"},
{"Key": "ag_0_5periods_wrong_replies", "Value": "0"},
{"Key": "ag_0_5periods_unexpected_closings", "Value": "0"},
{"Key": "ag_0_5periods_warnings", "Value": "0"},
{"Key": "ag_0_5periods_succeeded_queries", "Value": "146"},
{"Key": "ag_0_5periods_msecsperquery", "Value": "231.83"},
{"Key": "ag_1_hostname 192.168.0.202:6714"},
{"Key": "ag_1_references", "Value": "2"},
{"Key": "ag_1_lastquery", "Value": "0.41"},
{"Key": "ag_1_lastanswer", "Value": "0.19"},
{"Key": "ag_1_lastperiodmsec", "Value": "220"},
{"Key": "ag_1_errorsarow", "Value": "0"},
{"Key": "ag_1_1periods_query_timeouts", "Value": "0"},
{"Key": "ag_1_1periods_connect_timeouts", "Value": "0"},
{"Key": "ag_1_1periods_connect_failures", "Value": "0"},
{"Key": "ag_1_1periods_network_errors", "Value": "0"},
{"Key": "ag_1_1periods_wrong_replies", "Value": "0"},
{"Key": "ag_1_1periods_unexpected_closings", "Value": "0"},
{"Key": "ag_1_1periods_warnings", "Value": "0"},
{"Key": "ag_1_1periods_succeeded_queries", "Value": "27"},
{"Key": "ag_1_1periods_msecsperquery", "Value": "231.24"},
{"Key": "ag_1_5periods_query_timeouts", "Value": "0"},
{"Key": "ag_1_5periods_connect_timeouts", "Value": "0"},
{"Key": "ag_1_5periods_connect_failures", "Value": "0"},
{"Key": "ag_1_5periods_network_errors", "Value": "0"},
{"Key": "ag_1_5periods_wrong_replies", "Value": "0"},
{"Key": "ag_1_5periods_warnings", "Value": "0"},
{"Key": "ag_1_5periods_succeeded_queries", "Value": "146"},
{"Key": "ag_1_5periods_msecsperquery", "Value": "230.85"}],
{"error": "",
"total": 0,
"warning": ""}
sql("SHOW AGENT STATUS"); utilsApi.
Key : { type=string }},
{columns=[{
{ Value : { type=string }}],
data : [Key=status_period_seconds , Value=60 },
{ Key=status_stored_periods , Value=15 },
{ Key=ag_0_hostname , Value=192.168.0.202:6713 },
{ Key=ag_0_references , Value=2 },
{ Key=ag_0_lastquery , Value=0.41 },
{ Key=ag_0_lastanswer , Value=0.19 },
{ Key=ag_0_lastperiodmsec , Value=222 },
{ Key=ag_0_errorsarow , Value=0 },
{ Key=ag_0_1periods_query_timeouts , Value=0 },
{ Key=ag_0_1periods_connect_timeouts , Value=0 },
{ Key=ag_0_1periods_connect_failures , Value=0 },
{ Key=ag_0_1periods_network_errors , Value=0 },
{ Key=ag_0_1periods_wrong_replies , Value=0 },
{ Key=ag_0_1periods_unexpected_closings , Value=0 },
{ Key=ag_0_1periods_warnings , Value=0 },
{ Key=ag_0_1periods_succeeded_queries , Value=27 },
{ Key=ag_0_1periods_msecsperquery , Value=232.31 },
{ Key=ag_0_5periods_query_timeouts , Value=0 },
{ Key=ag_0_5periods_connect_timeouts , Value=0 },
{ Key=ag_0_5periods_connect_failures , Value=0 },
{ Key=ag_0_5periods_network_errors , Value=0 },
{ Key=ag_0_5periods_wrong_replies , Value=0 },
{ Key=ag_0_5periods_unexpected_closings , Value=0 },
{ Key=ag_0_5periods_warnings , Value=0 },
{ Key=ag_0_5periods_succeeded_queries , Value=146 },
{ Key=ag_0_5periods_msecsperquery , Value=231.83 },
{ Key=ag_1_hostname 192.168.0.202:6714 },
{ Key=ag_1_references , Value=2 },
{ Key=ag_1_lastquery , Value=0.41 },
{ Key=ag_1_lastanswer , Value=0.19 },
{ Key=ag_1_lastperiodmsec , Value=220 },
{ Key=ag_1_errorsarow , Value=0 },
{ Key=ag_1_1periods_query_timeouts , Value=0 },
{ Key=ag_1_1periods_connect_timeouts , Value=0 },
{ Key=ag_1_1periods_connect_failures , Value=0 },
{ Key=ag_1_1periods_network_errors , Value=0 },
{ Key=ag_1_1periods_wrong_replies , Value=0 },
{ Key=ag_1_1periods_unexpected_closings , Value=0 },
{ Key=ag_1_1periods_warnings , Value=0 },
{ Key=ag_1_1periods_succeeded_queries , Value=27 },
{ Key=ag_1_1periods_msecsperquery , Value=231.24 },
{ Key=ag_1_5periods_query_timeouts , Value=0 },
{ Key=ag_1_5periods_connect_timeouts , Value=0 },
{ Key=ag_1_5periods_connect_failures , Value=0 },
{ Key=ag_1_5periods_network_errors , Value=0 },
{ Key=ag_1_5periods_wrong_replies , Value=0 },
{ Key=ag_1_5periods_warnings , Value=0 },
{ Key=ag_1_5periods_succeeded_queries , Value=146 },
{ Key=ag_1_5periods_msecsperquery , Value=230.85 }],
{
error= ,0,
total= warning= }
An optional LIKE
clause is supported, with the syntax being the same as in SHOW STATUS
.
AGENT STATUS LIKE '%5period%msec%'; SHOW
+-----------------------------+--------+
Key | Value |
| +-----------------------------+--------+
234.72 |
| ag_0_5periods_msecsperquery | 233.73 |
| ag_1_5periods_msecsperquery | 343.81 |
| ag_2_5periods_msecsperquery | +-----------------------------+--------+
3 rows in set (0.00 sec)
$client->nodes()->agentstatus(
['body'=>
['pattern'=>'%5period%msec%']
]
);
Array(
[ag_0_5periods_msecsperquery] => 234.72
[ag_1_5periods_msecsperquery] => 233.73
[ag_2_5periods_msecsperquery] => 343.81
)
'SHOW AGENT STATUS LIKE \'%5period%msec%\'') utilsApi.sql(
u'columns': [{u'Key': {u'type': u'string'}},
{u'Value': {u'type': u'string'}}],
{u'data': [
u'Key': u'ag_0_5periods_msecsperquery', u'Value': u'234.72'},
{u'Key': u'ag_1_5periods_msecsperquery', u'Value': u'233.73'},
{u'Key': u'ag_2_5periods_msecsperquery', u'Value': u'343.81'}],
{u'error': u'',
u'total': 0,
u'warning': u''}
= await utilsApi.sql("SHOW AGENT STATUS LIKE \"%5period%msec%\""); res
"columns": [{"Key": {"type": "string"}},
{"Value": {"type": "string"}}],
{"data": [
"Key": "ag_0_5periods_msecsperquery", "Value": "234.72"},
{"Key": "ag_1_5periods_msecsperquery", "Value": "233.73"},
{"Key": "ag_2_5periods_msecsperquery", "Value": "343.81"}],
{"error": "",
"total": 0,
"warning": ""}
sql("SHOW AGENT STATUS LIKE \"%5period%msec%\""); utilsApi.
Key={type=string}},
{columns: [{
{Value={type=string}}],
data: [Key=ag_0_5periods_msecsperquery, Value=234.72},
{Key=ag_1_5periods_msecsperquery, Value=233.73},
{Key=ag_2_5periods_msecsperquery, Value=343.81}],
{
error: ,0,
total: warning: }
You can specify a particular agent by its address. In this case, only that agent’s data will be displayed. Additionally, the agent_
prefix will be used instead of ag_N_
:
AGENT '192.168.0.202:6714' STATUS LIKE '%15periods%'; SHOW
+-------------------------------------+--------+
Value |
| Variable_name | +-------------------------------------+--------+
0 |
| agent_15periods_query_timeouts | 0 |
| agent_15periods_connect_timeouts | 0 |
| agent_15periods_connect_failures | 0 |
| agent_15periods_network_errors | 0 |
| agent_15periods_wrong_replies | 0 |
| agent_15periods_unexpected_closings | 0 |
| agent_15periods_warnings | 439 |
| agent_15periods_succeeded_queries | 231.73 |
| agent_15periods_msecsperquery | +-------------------------------------+--------+
9 rows in set (0.00 sec)
$client->nodes()->agentstatus(
['body'=>
['agent'=>'192.168.0.202:6714'],
['pattern'=>'%5period%msec%']
]
);
Array(
[agent_15periods_query_timeouts] => 0
[agent_15periods_connect_timeouts] => 0
[agent_15periods_connect_failures] => 0
[agent_15periods_network_errors] => 0
[agent_15periods_wrong_replies] => 0
[agent_15periods_unexpected_closings] => 0
[agent_15periods_warnings] => 0
[agent_15periods_succeeded_queries] => 439
[agent_15periods_msecsperquery] => 231.73
)
'SHOW AGENT \'192.168.0.202:6714\' STATUS LIKE \'%15periods%\'') utilsApi.sql(
u'columns': [{u'Key': {u'type': u'string'}},
{u'Value': {u'type': u'string'}}],
{u'data': [
u'Key': u'agent_15periods_query_timeouts', u'Value': u'0'},
{u'Key': u'agent_15periods_connect_timeouts', u'Value': u'0'},
{u'Key': u'agent_15periods_connect_failures', u'Value': u'0'},
{u'Key': u'agent_15periods_network_errors', u'Value': u'0'},
{u'Key': u'agent_15periods_connect_failures', u'Value': u'0'},
{u'Key': u'agent_15periods_wrong_replies', u'Value': u'0'},
{u'Key': u'agent_15periods_unexpected_closings', u'Value': u'0'},
{u'Key': u'agent_15periods_warnings', u'Value': u'0'},
{u'Key': u'agent_15periods_succeeded_queries', u'Value': u'439'},
{u'Key': u'agent_15periods_msecsperquery', u'Value': u'233.73'},
{
],u'error': u'',
u'total': 0,
u'warning': u''}
= await utilsApi.sql("SHOW AGENT \"192.168.0.202:6714\" STATUS LIKE \"%15periods%\""); res
"columns": [{"Key": {"type": "string"}},
{"Value": {"type": "string"}}],
{"data": [
"Key": "agent_15periods_query_timeouts", "Value": "0"},
{"Key": "agent_15periods_connect_timeouts", "Value": "0"},
{"Key": "agent_15periods_connect_failures", "Value": "0"},
{"Key": "agent_15periods_network_errors", "Value": "0"},
{"Key": "agent_15periods_connect_failures", "Value": "0"},
{"Key": "agent_15periods_wrong_replies", "Value": "0"},
{"Key": "agent_15periods_unexpected_closings", "Value": "0"},
{"Key": "agent_15periods_warnings", "Value": "0"},
{"Key": "agent_15periods_succeeded_queries", "Value": "439"},
{"Key": "agent_15periods_msecsperquery", "Value": "233.73"},
{,
]"error": "",
"total": 0,
"warning": ""}
sql("SHOW AGENT \"192.168.0.202:6714\" STATUS LIKE \"%15periods%\""); utilsApi.
Key={type=string}},
{columns=[{
{Value={type=string}}],
data=[Key=agent_15periods_query_timeouts, Value=0},
{Key=agent_15periods_connect_timeouts, Value=0},
{Key=agent_15periods_connect_failures, Value=0},
{Key=agent_15periods_network_errors, Value=0},
{Key=agent_15periods_connect_failures, Value=0},
{Key=agent_15periods_wrong_replies, Value=0},
{Key=agent_15periods_unexpected_closings, Value=0},
{Key=agent_15periods_warnings, Value=0},
{Key=agent_15periods_succeeded_queries, Value=439},
{Key=agent_15periods_msecsperquery, Value=233.73},
{
],
error=,0,
total= warning=}
Finally, you can check the status of the agents in a specific distributed table using the SHOW AGENT index_name STATUS
statement. This statement displays the table’s HA status (i.e., whether or not it uses agent mirrors at all) and provides information on the mirrors, including: address, blackhole and persistent flags, and the mirror selection probability used when one of the weighted probability strategies is in effect.
AGENT dist_index STATUS; SHOW
+--------------------------------------+--------------------------------+
Value |
| Variable_name | +--------------------------------------+--------------------------------+
1 |
| dstindex_1_is_ha | 192.168.0.202:6713:loc |
| dstindex_1mirror1_id | 0.372864 |
| dstindex_1mirror1_probability_weight | 0 |
| dstindex_1mirror1_is_blackhole | 0 |
| dstindex_1mirror1_is_persistent | 192.168.0.202:6714:loc |
| dstindex_1mirror2_id | 0.374635 |
| dstindex_1mirror2_probability_weight | 0 |
| dstindex_1mirror2_is_blackhole | 0 |
| dstindex_1mirror2_is_persistent | :6714:loc |
| dstindex_1mirror3_id | dev1.manticoresearch.com0.252501 |
| dstindex_1mirror3_probability_weight | 0 |
| dstindex_1mirror3_is_blackhole | 0 |
| dstindex_1mirror3_is_persistent | +--------------------------------------+--------------------------------+
13 rows in set (0.00 sec)
$client->nodes()->agentstatus(
['body'=>
['agent'=>'dist_index']
]
);
Array(
[dstindex_1_is_ha] => 1
[dstindex_1mirror1_id] => 192.168.0.202:6713:loc
[dstindex_1mirror1_probability_weight] => 0.372864
[dstindex_1mirror1_is_blackhole] => 0
[dstindex_1mirror1_is_persistent] => 0
[dstindex_1mirror2_id] => 192.168.0.202:6714:loc
[dstindex_1mirror2_probability_weight] => 0.374635
[dstindex_1mirror2_is_blackhole] => 0
[dstindex_1mirror2_is_persistent] => 0
[dstindex_1mirror3_id] => dev1.manticoresearch.com:6714:loc
[dstindex_1mirror3_probability_weight] => 0.252501
[dstindex_1mirror3_is_blackhole] => 0
[dstindex_1mirror3_is_persistent] => 0
)
'SHOW AGENT \'192.168.0.202:6714\' STATUS LIKE \'%15periods%\'') utilsApi.sql(
u'columns': [{u'Key': {u'type': u'string'}},
{u'Value': {u'type': u'string'}}],
{u'data': [
u'Key': u'dstindex_1_is_ha', u'Value': u'1'},
{u'Key': u'dstindex_1mirror1_id', u'Value': u'192.168.0.202:6713:loc'},
{u'Key': u'dstindex_1mirror1_probability_weight', u'Value': u'0.372864'},
{u'Key': u'dstindex_1mirror1_is_blackhole', u'Value': u'0'},
{u'Key': u'dstindex_1mirror1_is_persistent', u'Value': u'0'},
{u'Key': u'dstindex_1mirror2_id', u'Value': u'192.168.0.202:6714:loc'},
{u'Key': u'dstindex_1mirror2_probability_weight', u'Value': u'0.374635'},
{u'Key': u'dstindex_1mirror2_is_blackhole', u'Value': u'0'},
{u'Key': u'dstindex_1mirror2_is_persistent', u'Value': u'439'},
{u'Key': u'dstindex_1mirror3_id', u'Value': u'dev1.manticoresearch.com:6714:loc'},
{u'Key': u'dstindex_1mirror3_probability_weight', u'Value': u' 0.252501'},
{u'Key': u'dstindex_1mirror3_is_blackhole', u'Value': u'0'},
{u'Key': u'dstindex_1mirror3_is_persistent', u'Value': u'439'}
{
],u'error': u'',
u'total': 0,
u'warning': u''}
= await utilsApi.sql("SHOW AGENT \"192.168.0.202:6714\" STATUS LIKE \"%15periods%\""); res
"columns": [{"Key": {"type": "string"}},
{"Value": {"type": "string"}}],
{"data": [
"Key": "dstindex_1_is_ha", "Value": "1"},
{"Key": "dstindex_1mirror1_id", "Value": "192.168.0.202:6713:loc"},
{"Key": "dstindex_1mirror1_probability_weight", "Value": "0.372864"},
{"Key": "dstindex_1mirror1_is_blackhole", "Value": "0"},
{"Key": "dstindex_1mirror1_is_persistent", "Value": "0"},
{"Key": "dstindex_1mirror2_id", "Value": "192.168.0.202:6714:loc"},
{"Key": "dstindex_1mirror2_probability_weight", "Value": "0.374635"},
{"Key": "dstindex_1mirror2_is_blackhole", "Value": "0"},
{"Key": "dstindex_1mirror2_is_persistent", "Value": "439"},
{"Key": "dstindex_1mirror3_id", "Value": "dev1.manticoresearch.com:6714:loc"},
{"Key": "dstindex_1mirror3_probability_weight", "Value": " 0.252501"},
{"Key": "dstindex_1mirror3_is_blackhole", "Value": "0"},
{"Key": "dstindex_1mirror3_is_persistent", "Value": "439"}
{,
]"error": "",
"total": 0,
"warning": ""}
sql("SHOW AGENT \"192.168.0.202:6714\" STATUS LIKE \"%15periods%\""); utilsApi.
Key={type=string}},
{columns=[{
{Value={type=string}}],
data=[Key=dstindex_1_is_ha, Value=1},
{Key=dstindex_1mirror1_id, Value=192.168.0.202:6713:loc},
{Key=dstindex_1mirror1_probability_weight, Value=0.372864},
{Key=dstindex_1mirror1_is_blackhole, Value=0},
{Key=dstindex_1mirror1_is_persistent, Value=0},
{Key=dstindex_1mirror2_id, Value=192.168.0.202:6714:loc},
{Key=dstindex_1mirror2_probability_weight, Value=0.374635},
{Key=dstindex_1mirror2_is_blackhole, Value=0},
{Key=dstindex_1mirror2_is_persistent, Value=439},
{Key=dstindex_1mirror3_id, Value=dev1.manticoresearch.com:6714:loc},
{Key=dstindex_1mirror3_probability_weight, Value= 0.252501},
{Key=dstindex_1mirror3_is_blackhole, Value=0},
{Key=dstindex_1mirror3_is_persistent, Value=439}
{
],
error=,0,
total= warning=}
CHARACTER SET SHOW
This is currently a placeholder query that does nothing and reports the availability of a UTF-8 character set. It was added to maintain compatibility with frameworks and connectors that automatically execute this statement.
> SHOW CHARACTER SET;
mysql+---------+---------------+-------------------+--------+
Default collation | Maxlen |
| Charset | Description | +---------+---------------+-------------------+--------+
-8 Unicode | utf8_general_ci | 3 |
| utf8 | UTF+---------+---------------+-------------------+--------+
1 row in set (0.00 sec)