You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -895,6 +896,82 @@ Note the version in the pathname. Go may eliminate the need to do this in future
895
896
896
897
We also use vendor to hold code patches while waiting for the project to release the fixes in their own code. An example is in [k8s.io/apimachinery](https://github.com/googleforgames/agones/issues/414) where a fix will be released later this year, but we updated our own vendored version in order to fix the issue sooner.
897
898
899
+
## Running Performance Test
900
+
901
+
To be able to run the performance script located in the following path: `agones/build/performance-test.sh` you need to have the following setup:
902
+
903
+
#### Install a standard GKE cluster
904
+
905
+
Follow for more details here: https://agones.dev/site/docs/installation/creating-cluster/gke/
906
+
907
+
#### Install Agones
908
+
909
+
Follow for more details here: https://agones.dev/site/docs/installation/install-agones/helm/
The performance-tests script contains a set of variables that need to be overwritten to work with your cluster and configuration settings. You can also pass these values through command line This is an example:
930
+
931
+
```
932
+
CLUSTER_NAME=agones-standard
933
+
CLUSTER_LOCATION=us-central1-c
934
+
REGISTRY=us-east1-docker.pkg.dev/user/agones
935
+
PROJECT=my-project
936
+
REPLICAS=10000
937
+
AUTO_SHUTDOWN_DELAY=60
938
+
BUFFER_SIZE=9900
939
+
MAX_REPLICAS=20000
940
+
DURATION=10m
941
+
CLIENTS=50
942
+
INTERVAL=1000
943
+
```
944
+
945
+
You might also want to comment out the first couple lines that come after the variables are set and also change the cd directoy:
You could also modify the `automatic shutdown delay` parameter where if the value is greater than zero, it will automatically shut down the server this many seconds after the server becomes allocated (cannot be used if `automaticShutdownDelayMin` is set). It's a configuration for the simple game server.
971
+
972
+
Something to keep in mind with CLIENTS and INTERVAL is the following. Let's say you have client count 50 and interval 500ms, which means every client will submit 2 allocation requests in 1s, so the entire allocation requests that the allocator receives in 1s is 50 * 2 = 100, so the allocation request QPS from the allocator view is 100.
973
+
974
+
Finally, you can cd agones/build and run `sh performance-test.sh` if you see timeout issues please re-run the command.
0 commit comments