Служебные инструменты · perfmon
Производительность сайта · изменения · Измерить скорость чтения тестовой таблицы БД
perfmon_site_perfmon_m024_writeИзменениеИзмерить скорость чтения тестовой таблицы БД.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Измерить скорость чтения тестовой таблицы БД.
maintenance_window- строка · обязательный параметр
acknowledge_quiescence- логическое значение · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
confirm_scope- строка · обязательный параметр
{
"type": "object",
"properties": {
"maintenance_window": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"minLength": 32,
"maxLength": 32
},
"acknowledge_quiescence": {
"type": "boolean",
"enum": [
true
]
},
"expected_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"minLength": 64,
"maxLength": 64
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"minLength": 32,
"maxLength": 32
},
"confirm": {
"type": "boolean"
},
"confirm_scope": {
"type": "string",
"enum": [
"global_cache_hitrate_rebuild"
]
}
},
"required": [
"maintenance_window",
"acknowledge_quiescence",
"expected_revision",
"request_id",
"confirm",
"confirm_scope"
],
"additionalProperties": false
}Измерить скорость чтения тестовой таблицы БД.
maintenance_window- строка · обязательный параметр
acknowledge_quiescence- логическое значение · обязательный параметр
job_id- строка · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
confirm_scope- строка · обязательный параметр
{
"type": "object",
"properties": {
"maintenance_window": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"minLength": 32,
"maxLength": 32
},
"acknowledge_quiescence": {
"type": "boolean",
"enum": [
true
]
},
"job_id": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"minLength": 64,
"maxLength": 64
},
"expected_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"minLength": 64,
"maxLength": 64
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$",
"minLength": 32,
"maxLength": 32
},
"confirm": {
"type": "boolean"
},
"confirm_scope": {
"type": "string",
"enum": [
"global_cache_hitrate_rebuild"
]
}
},
"required": [
"maintenance_window",
"acknowledge_quiescence",
"job_id",
"expected_revision",
"request_id",
"confirm",
"confirm_scope"
],
"additionalProperties": false
}Один штатный GetDBMark(read): 400 SELECT/Fetch по ID 0–99 существующей b_perf_test создают нагрузку на БД. Бизнес-данные, настройки и историю не меняет. Нужны администратор, perfmon W, включённые диагностические операции, confirm:true и точный confirm_scope. Требуются штатная таблица с тремя полями и до 1000 строк, исходный mysqli и выключенные SQL debug/email-уведомления ошибок. Выполняется в текущем подключении; транзакция вызывающего кода сохраняется. NULL означает отсутствие валидного измерения. Ветки insert/update/TRUNCATE недоступны.
confirm- логическое значение · обязательный параметр
confirm_scope- строка · обязательный параметр
{
"type": "object",
"properties": {
"confirm": {
"type": "boolean"
},
"confirm_scope": {
"type": "string",
"enum": [
"one_native_db_read_measurement"
]
}
},
"required": [
"confirm",
"confirm_scope"
],
"additionalProperties": false
}Измерить скорость чтения тестовой таблицы БД.
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
confirm_scope- строка · обязательный параметр
{
"type": "object",
"additionalProperties": false,
"properties": {
"expected_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$(?![\\s\\S])"
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$(?![\\s\\S])"
},
"confirm": {
"type": "boolean"
},
"confirm_scope": {
"type": "string",
"enum": [
"whole_reserved_b_perf_test_native_insert_update_cycle"
]
}
},
"required": [
"expected_revision",
"request_id",
"confirm",
"confirm_scope"
]
}Измерить скорость чтения тестовой таблицы БД.
recipient- строка · обязательный параметр
message_count- целое число · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
confirm- логическое значение · обязательный параметр
confirm_scope- строка · обязательный параметр
acknowledge_irreversible_external_mail- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"recipient": {
"type": "string",
"enum": [
"hosting_test@bitrix.ru"
]
},
"message_count": {
"type": "integer",
"enum": [
1
]
},
"expected_revision": {
"type": "string",
"minLength": 64,
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$(?![\\s\\S])"
},
"request_id": {
"type": "string",
"minLength": 32,
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$(?![\\s\\S])"
},
"confirm": {
"type": "boolean"
},
"confirm_scope": {
"type": "string",
"enum": [
"one_irreversible_native_mail_to_hosting_test_at_bitrix_ru"
]
},
"acknowledge_irreversible_external_mail": {
"type": "boolean"
}
},
"required": [
"recipient",
"message_count",
"expected_revision",
"request_id",
"confirm",
"confirm_scope",
"acknowledge_irreversible_external_mail"
],
"additionalProperties": false
}