From fec8a5941bbae7daced8ac49fe0306b75d18c054 Mon Sep 17 00:00:00 2001 From: wuxianrong Date: Wed, 19 Mar 2025 11:09:34 +0800 Subject: [PATCH] add auth command to admin-thread-pool --- include/pika_conf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/pika_conf.h b/include/pika_conf.h index 3b5a43c7bd..b6ebeed6ed 100644 --- a/include/pika_conf.h +++ b/include/pika_conf.h @@ -862,7 +862,10 @@ class PikaConf : public pstd::BaseConf { int slow_cmd_thread_pool_size_ = 0; int admin_thread_pool_size_ = 0; std::unordered_set slow_cmd_set_; - std::unordered_set admin_cmd_set_ = {"info", "ping", "monitor"}; + // Because the exporter of Pika_exporter implements Auth authentication + // with the Exporter of Pika, and the Exporter authenticates the Auth when + // users connect to Pika, the Auth is added to the management command thread pool + std::unordered_set admin_cmd_set_ = {"info", "ping", "monitor", "auth"}; int sync_thread_num_ = 0; int sync_binlog_thread_num_ = 0; int expire_dump_days_ = 3;