Closed alvin-7 closed 1 year ago
Since the network and game server pods are ready asynchronously, OKG provides a trigger mechanism to allow the network plugin to continuously obtain network information and return it to GS. However, the current trigger condition requires the GS to be in the Ready state, which is unreasonable and we will improve it in the next version.
Background:
In my GameServer, I have configured two game processes. Process 1 relies on OKG network annotation and will only start after reading this annotation. Additionally, I have set up a readinessProbe to monitor whether this process's GRPC listen is ready. Process 2 depends on process 1, and will only start after process 1 is ready. This setup utilizes OKG's startup sequence control.
Problem:
In the given background, there is an occasional issue where Pods fail to retrieve network annotation, causing them to remain in a pending state indefinitely. During my actual usage, when the GameServerSet replicas are set to 4, I encountered a situation where one Pod remains in the pending state while the others start up normally.
This is my GameServerSet yaml: