PlayFab / thundernetes

Thundernetes makes it easy to run your game servers on Kubernetes
https://playfab.github.io/thundernetes
Apache License 2.0
307 stars 46 forks source link

init scale test framework #413

Closed allenlsy closed 1 year ago

allenlsy commented 1 year ago

This PR is a starting point of scalability test.

It creates necessary functions to perform a simple test. It tests scaling up to 16 active gameservers from 1, 4, 16 standby servers respectively.

Uses openarena as testing game server to test scalability

After running scale-test.sh, here is the result:

test 1: scale up to 16 servers from 1 standby server
Scale up time: 13s

test 2: scale up to 16 servers from 4 standby server
Scale up time: 34s

test 1: scale up to 16 servers from 16 standby server
Scale up time: 13s

Signed-off-by: Allen Leigh allenlsy@gmail.com

dgkanatsios commented 1 year ago

LGTM! YAML files reference the same GameServerBuild, right? Any way we can use one of them and then do kubectl scale gameserverbuild <name> --replicas X to do scaling?

allenlsy commented 1 year ago

LGTM! Wanna take and slightly modify your PR description and put it in a README? After this we can merge

Can you help update the PR description? I will add instructions to the readme, or a separate readme in this folder.

dgkanatsios commented 1 year ago

apologies, I wasn't clear. You don't have to modify the PR description itself, just whatever you copy and paste into the README. Hope it makes sense now!