Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Multiplayer Server Scaling with Azure Container Instances

147 views

Published on

Multiplayer Server Scaling with Azure Container Instances

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Multiplayer Server Scaling with Azure Container Instances

  1. 1. https://aka.ms/oa-desktop https://aka.ms/oa-android https://aka.ms/oa-ios Image from openarena.wikia.com
  2. 2. Images source: docker.com
  3. 3.  File  Table
  4. 4. ACICreate ACIDelete ACIList ACIDetails ACISetSessions ACISetState ACIMonitor ACIGC ACIAutoScaler
  5. 5. ContainerGroup 2 State: MarkedForDeletion ActiveSessions: 0 IP: 2.3.4.5 Azure Container Instances Infrastructure ContainerGroup 1 State: Creating ActiveSessions: 0 • No Container Instances exist • ACICreate is called • When deployment is complete, Azure Event Grid calls ACIMonitor and State is updated to Running • Users connect to ContainerGroup 1 • ACICreate is called manually OR ACIAutoScaler runs, the scale-out threshold has been crossed, calls ACICreate to create a second instance • When deployment is complete, Event Grid calls ACIMonitor so State is updated to Running • Users connect to ContainerGroup 2 • Eventually, the threshold for scale-in is crossed, and ContainerGroup 2 is no longer needed • ACISetState is called manually OR ACIAutoScaler runs, calls ACISetState. So, ContainerGroup 2 state is now MarkedForDeletion • All users disconnect from ContainerGroup 2 when game completes • ACIGC runs, ACIDelete is called and removes ContainerGroup 2 ContainerGroup 1 State: Running ActiveSessions: 0 IP: 1.2.3.4 ContainerGroup 2 State: Creating ActiveSessions: 0 ContainerGroup 2 State: Running ActiveSessions: 0 IP: 2.3.4.5 ContainerGroup 1 State: Running ActiveSessions: 8 IP: 1.2.3.4 ContainerGroup 2 State: Running ActiveSessions: 5 IP: 2.3.4.5 ContainerGroup 2 State: Running ActiveSessions: 2 IP: 2.3.4.5 ContainerGroup 2 State: MarkedForDeletion ActiveSessions: 2 IP: 2.3.4.5 ContainerGroup 2 State: MarkedForDeletion ActiveSessions: 0 IP: 2.3.4.5
  6. 6. ACIAutoScaler ACICreate ACISetState
  7. 7. Demo
  8. 8. https://github.com/dgkanatsios/AzureGameServersScalingKubernetes/
  9. 9. https://aka.ms/acimgmt https://aka.ms/azgamedev https://aka.ms/acidocs-build https://aka.ms/aegdocs-build https://aka.ms/afdocs-build https://aka.ms/storagedocs-build

×