Disable service connection monitoring for CPU/C-state testing
Temporarily disable excessive connection monitoring in ServiceCollector to test impact on CPU load and C-states. Keep nginx sites and docker containers as they are needed for sub-service display functionality. Disabled monitoring: - SSH connections (ss commands) - Database connections (PostgreSQL, MySQL, Redis) - Web service connections (Apache, Gitea, Immich, etc.) - Network service connections (Mosquitto, UniFi, etc.) This eliminates most external command calls while preserving essential nginx and docker sub-service enumeration.
This commit is contained in:
parent
dca3642e46
commit
6265b1afb3
@ -432,11 +432,15 @@ impl ServiceCollector {
|
||||
|
||||
async fn get_service_description(&self, service: &str) -> Option<Vec<String>> {
|
||||
let result = match service {
|
||||
"sshd" | "ssh" => self.get_ssh_active_users().await.map(|s| vec![s]),
|
||||
// KEEP: nginx sites and docker containers (needed for sub-services)
|
||||
"nginx" => self.get_nginx_description().await.map(|s| vec![s]),
|
||||
"docker" => self.get_docker_containers().await,
|
||||
|
||||
// DISABLED: All connection monitoring for CPU/C-state testing
|
||||
/*
|
||||
"sshd" | "ssh" => self.get_ssh_active_users().await.map(|s| vec![s]),
|
||||
"apache2" | "httpd" => self.get_web_server_connections().await.map(|s| vec![s]),
|
||||
"docker-registry" => self.get_docker_registry_info().await.map(|s| vec![s]),
|
||||
"docker" => self.get_docker_containers().await,
|
||||
"postgresql" | "postgres" => self.get_postgres_connections().await.map(|s| vec![s]),
|
||||
"mysql" | "mariadb" => self.get_mysql_connections().await.map(|s| vec![s]),
|
||||
"redis" | "redis-immich" => self.get_redis_info().await.map(|s| vec![s]),
|
||||
@ -446,6 +450,7 @@ impl ServiceCollector {
|
||||
"unifi" => self.get_unifi_info().await.map(|s| vec![s]),
|
||||
"mosquitto" => self.get_mosquitto_info().await.map(|s| vec![s]),
|
||||
"haasp-webgrid" => self.get_haasp_webgrid_info().await.map(|s| vec![s]),
|
||||
*/
|
||||
_ => None,
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user