bhouse-nexthop commented on PR #14837:
URL: https://github.com/apache/cloudstack/pull/14837#issuecomment-7134226821

   Follow-up on the drift repair, now that it recomputes capacity from the VMs. 
Tested on a main-based build (2583bb78d6, which has the same change as the 4.22 
line): KVM, cluster with 1 control and 2 workers on a 2 vCPU/4096 MB offering, 
plus 2 added nodes, one on that offering and one on a custom offering at 2 
vCPU/3072 MB. "Real" is the sum of cpunumber/memory over the cluster's VMs from 
listVirtualMachines.
   
   | step | stored size, cores/memory | real | result |
   |---|---|---|---|
   | after add-node | 4, 10/19456 | 10/19456 | the custom-offering node counts 
at its own 2/3072 |
   | no drift, size 4 → 5 → 4 | 12/23552, then 10/19456 | same | each step 
moves exactly one worker (2/4096) |
   | size only drifted by 1, cluster stopped, scale `size=<stored>` with an 
offering change (2/5120) | 3 → 4, 10/19456 → 10/22528 | 10/22528 | matches; no 
VM created or destroyed; added nodes keep their own offerings |
   | size only drifted by 2, stopped, scale `size=<stored>` back to 2/4096 | 2 
→ 4, → 10/19456 | 10/19456 | matches |
   | size and capacity drifted together (size −1, 8/15360), stopped, scale 
`size=<stored>` to 2/5120 | 3 → 4, → 10/22528 | 10/22528 | matches |
   | running, size only drifted by 2, scale `size=<real>` | 2 → 4, 10/22528 | 
10/22528 | matches, no VM change |
   | no drift after the repairs, size 4 → 5 → 4 | 12/27648, then 10/22528 | 
same | each step moves exactly one worker (2/5120) |
   
   Each repair logs `records 1 control, 0 etcd and N worker nodes but has 1, 0 
and 4, correcting it`. All 5 nodes were Ready at the end.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to