You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* - Results in sudden connection failures and "connection reset" errors
572
+
* - Can cause application downtime and poor user experience
573
+
*
574
+
* @recommendation Always set mysql-use_tcp_keepalive=true when deploying
575
+
* behind load balancers or in cloud environments.
576
+
*/
577
+
// Check for TCP keepalive setting and warn if disabled
578
+
int mysql_use_tcp_keepalive = GloMTH->get_variable_int((char *)"use_tcp_keepalive");
579
+
if (mysql_use_tcp_keepalive == 0) {
580
+
proxy_warning("mysql-use_tcp_keepalive is set to false. This may cause connection drops when ProxySQL is behind a network load balancer. Consider setting this to true.\n");
* - PostgreSQL connections may appear "stale" to the database server
938
+
* - Results in sudden connection failures and "connection reset" errors
939
+
* - Can cause application downtime and poor user experience
940
+
*
941
+
* @note PostgreSQL connections are often long-lived and benefit greatly from
942
+
* TCP keepalive, especially in connection-pooled environments.
943
+
*
944
+
* @recommendation Always set pgsql-use_tcp_keepalive=true when deploying
945
+
* behind load balancers or in cloud environments.
946
+
*/
947
+
// Check for TCP keepalive setting and warn if disabled
948
+
int pgsql_use_tcp_keepalive = GloPTH->get_variable_int((char *)"use_tcp_keepalive");
949
+
if (pgsql_use_tcp_keepalive == 0) {
950
+
proxy_warning("pgsql-use_tcp_keepalive is set to false. This may cause connection drops when ProxySQL is behind a network load balancer. Consider setting this to true.\n");
0 commit comments