dgkanatsios / azuregameserversscalingkubernetes

Scaling Dedicated Game Servers on Azure Kubernetes Service
MIT License
39 stars 16 forks source link

Scaling issue #34

Closed dgkanatsios closed 6 years ago

dgkanatsios commented 6 years ago

Sometimes there is a race condition issue on the DGSCol controller

repro:

You will see 3 Running DGS and 3 as MarkedForDeletion.

The problem lies in the fact that non-parented DGSs (the MarkedForDeletion ones) trigger DGSCol controller updates (because of #31). In one of these updates, there is a chance that another scale down operation will occur, while the original one is still in progress.