[pve-devel] cluster resource scheduler question
DERUMIER, Alexandre
Alexandre.DERUMIER at groupe-cyllene.com
Wed Nov 23 11:18:48 CET 2022
After doing some test,
if I understand, the node static infos max-mem, max-cpu are only used
to have percents to be able to compare each node.
and the nodeusage is compute with the sum of static mem/cpu of the
services running on this node.
But I really don't see where it's node in the rust code ?
I see a
+impl StaticNodeUsage {
+ /// Add usage of `service` to the node's usage.
+ pub fn add_service_usage(&mut self, service: &StaticServiceUsage)
{
+ self.cpu = add_cpu_usage(self.cpu, self.maxcpu as f64,
service.maxcpu);
+ self.mem += service.maxmem;
+ }
+}
But I don't see where it's called ?
(BTW, I don't see the repo in proxmox git ?)
Le mardi 22 novembre 2022 à 16:43 +0000, DERUMIER, Alexandre a écrit :
> Hi,
>
> I was looking at the proxmox 7.3 video
> https://www.proxmox.com/en/training/video-tutorials/item/what-s-new-in-proxmox-ve-7-3
>
> showing the new cluster resource scheduling with static-ressource.
>
> I'm not sure to understand, but the video seem to say that vm is
> migrated to the least "loaded" node.
>
>
> But looking at static-info of the node, cpu && memory are the
> physical
> core number && full memory size
>
> (in pvestatd,
>
> broadcast_static_node_info($maxcpu, $meminfo->{memtotal});
> my sub broadcast_static_node_info {
> ...
> my $info = {
> cpus => $cpus,
> memory => $memory,
> }
>
>
> I'm not sure about the logic, but if we only look at number of total
> cpus && memory without current usage, the biggest node will always be
> choose ? or does I miss something ?
> _______________________________________________
> pve-devel mailing list
> pve-devel at lists.proxmox.com
> https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
More information about the pve-devel
mailing list