From fdcbdd89db91635e8e9b949f60411a2675ab6f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Thu, 12 Aug 2021 01:11:09 +0200 Subject: [PATCH] Generate warnings if proxysql is running without --idle-threads --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 9ec0279d9..adc37f969 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1045,6 +1045,9 @@ void ProxySQL_Main_init_MySQL_Threads_Handler_module() { #ifdef IDLE_THREADS if (GloVars.global.idle_threads) { load_ += GloMTH->num_threads; + } else { + proxy_warning("proxysql instance running without --idle-threads : most workloads benefit from this option\n"); + proxy_warning("proxysql instance running without --idle-threads : enabling it can potentially improve performance\n"); } #endif // IDLE_THREADS for (i=0; inum_threads; i++) {