bhouse-nexthop opened a new pull request, #14763:
URL: https://github.com/apache/cloudstack/pull/14763

   ### Description
   
   New CKS clusters spread each node type across hosts by default. Builds on 
the per-node-type affinity groups from #12386.
   
   | | |
   |---|---|
   | Setting | `cloud.kubernetes.cluster.default.anti.affinity.enabled`, 
account scope, default `true` |
   | Group type | `non-strict host anti-affinity`: nodes prefer different hosts 
and are never blocked, so fewer hosts than nodes still works |
   | Group name | `cks-<cluster uuid>-<worker\|control\|etcd>`, owned by the 
cluster owner |
   | Which node types | Workers always. Control and etcd only with 2+ nodes, 
since they can't be scaled |
   | User groups | If a node type already has a user-chosen group, no default 
is added for it |
   | Scale / add node / replacement | Uses the existing node-type affinity map, 
so they get the same group |
   | Delete | Removes the CKS groups after the cluster row, unless another 
cluster or a live VM still uses them. User groups are never touched |
   | Processor excluded | Skipped with a warning if 
`NonStrictHostAntiAffinityProcessor` is excluded |
   | Existing clusters | Not changed |
   
   Why default on: non-strict only changes host ordering in the planner and 
never fails a deploy. Without it, a single host failure can take out every 
control node or every etcd member.
   
   Fixes: #14762
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [x] New feature (non-breaking change which adds functionality)
   - [ ] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   - [ ] Build/CI
   - [ ] Test (unit or integration test code)
   
   ### Feature/Enhancement Scale or Bug Severity
   
   #### Feature/Enhancement Scale
   
   - [ ] Major
   - [x] Minor
   
   ### How Has This Been Tested?
   
   - Unit tests in `KubernetesClusterManagerImplTest`:
     - groups created per node type, user groups kept, single control/etcd 
skipped
     - skipped when disabled or processor missing
     - delete: only CKS non-strict groups, kept when another cluster or a live 
VM uses them
   - Ran `KubernetesClusterManagerImplTest`, 
`KubernetesClusterActionWorkerTest`, `KubernetesClusterScaleWorkerTest`, 
`KubernetesClusterResourceModifierActionWorkerTest`: all pass
   
   #### How did you try to break this feature and the system with this change?
   
   - Fewer hosts than nodes: non-strict, and the CKS capacity pre-check ignores 
this type
   - `updateKubernetesClusterAffinityGroups` replaces the map as before; any 
default groups it drops are still deleted with the cluster
   - A cluster VM that fails to expunge (Destroyed/Error) doesn't keep the 
group around
   


-- 
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