@@ -350,6 +350,44 @@ register_stat_callbacks()
350350 RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.total_parent_marked_down_count" , RECD_COUNTER, RECP_PERSISTENT,
351351 (int )http_total_parent_marked_down_count, RecRawStatSyncCount);
352352
353+ // Stats to track causes of ATS initiated origin shutdowns
354+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.pool_lock_contention" , RECD_INT,
355+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_pool_lock_contention, RecRawStatSyncCount);
356+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.migration_failure" , RECD_INT, RECP_NON_PERSISTENT,
357+ (int )http_origin_shutdown_migration_failure, RecRawStatSyncCount);
358+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_server" , RECD_INT, RECP_NON_PERSISTENT,
359+ (int )http_origin_shutdown_tunnel_server, RecRawStatSyncCount);
360+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_server_no_keep_alive" , RECD_INT,
361+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_tunnel_server_no_keep_alive, RecRawStatSyncCount);
362+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_server_eos" , RECD_INT, RECP_NON_PERSISTENT,
363+ (int )http_origin_shutdown_tunnel_server_eos, RecRawStatSyncCount);
364+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_server_plugin_tunnel" , RECD_INT,
365+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_tunnel_server_plugin_tunnel, RecRawStatSyncCount);
366+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_server_detach" , RECD_INT,
367+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_tunnel_server_detach, RecRawStatSyncCount);
368+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_client" , RECD_INT, RECP_NON_PERSISTENT,
369+ (int )http_origin_shutdown_tunnel_client, RecRawStatSyncCount);
370+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_transform_read" , RECD_INT,
371+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_tunnel_transform_read, RecRawStatSyncCount);
372+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.release_no_sharing" , RECD_INT, RECP_NON_PERSISTENT,
373+ (int )http_origin_shutdown_release_no_sharing, RecRawStatSyncCount);
374+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.release_no_server" , RECD_INT, RECP_NON_PERSISTENT,
375+ (int )http_origin_shutdown_release_no_server, RecRawStatSyncCount);
376+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.release_no_keep_alive" , RECD_INT,
377+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_release_no_keep_alive, RecRawStatSyncCount);
378+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.release_invalid_response" , RECD_INT,
379+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_release_invalid_response, RecRawStatSyncCount);
380+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.release_invalid_request" , RECD_INT,
381+ RECP_NON_PERSISTENT, (int )http_origin_shutdown_release_invalid_request, RecRawStatSyncCount);
382+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.release_modified" , RECD_INT, RECP_NON_PERSISTENT,
383+ (int )http_origin_shutdown_release_modified, RecRawStatSyncCount);
384+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.release_misc" , RECD_INT, RECP_NON_PERSISTENT,
385+ (int )http_origin_shutdown_release_misc, RecRawStatSyncCount);
386+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.cleanup_entry" , RECD_INT, RECP_NON_PERSISTENT,
387+ (int )http_origin_shutdown_cleanup_entry, RecRawStatSyncCount);
388+ RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.origin_shutdown.tunnel_abort" , RECD_INT, RECP_NON_PERSISTENT,
389+ (int )http_origin_shutdown_tunnel_abort, RecRawStatSyncCount);
390+
353391 // Upstream current connections stats
354392 RecRegisterRawStat (http_rsb, RECT_PROCESS, " proxy.process.http.current_parent_proxy_connections" , RECD_INT, RECP_NON_PERSISTENT,
355393 (int )http_current_parent_proxy_connections_stat, RecRawStatSyncSum);
0 commit comments