Skip to content

Commit 14134a4

Browse files
authored
chore(query): add cluster current resource status log (#18488)
1 parent 1258331 commit 14134a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/query/service/src/clusters/cluster.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,13 @@ impl ClusterDiscovery {
636636
let license_key = Self::get_license_key(&self.tenant_id).await?;
637637

638638
let total_cpu_nums = nodes.iter().map(|x| x.cpu_nums).sum::<u64>();
639+
640+
info!("[Cluster] current resource status - online nodes: [{}], available CPU cores: [{}] for tenant [{}].",
641+
nodes.len(),
642+
total_cpu_nums,
643+
self.tenant_id
644+
);
645+
639646
LicenseManagerSwitch::instance()
640647
.check_enterprise_enabled(license_key.clone(), Feature::MaxNodeQuota(nodes.len()))?;
641648

0 commit comments

Comments
 (0)