To answer your first question, ProcessEnding is a synchronous call, so you don't have to wait. You should however confirm that the result is successful.
I can't find anything wrong with the port search.
To answer your primary concern about not being able to run multiple concurrent processes, there are two things you could check.
- In your fleet's RuntimeConfiguration, make sure that MaxConcurrentGameSessionActivations can handle the number of concurrent game sessions you want to spin up at once, since that limits the number of game sessions in status ACTIVATING at once.
- In your fleet's RuntimeConfiguration's ServerProcesses, make sure ConcurrentExecutions can handle the number of game sessions you are trying to run concurrently.
Here are some documents that may point you in the right direction: https://docs.aws.amazon.com/gamelift/latest/apireference/API_RuntimeConfiguration.html https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-multiprocess.html
GameLift Plug-in for Unity now availableasked a year ago
Server works with Gamelift-local, breaks on fleet activationasked 3 years ago
Cannot create concurrent game sessions on spot instances in GameLift fleetasked 2 months ago
GameLift Client rejected because Game Session is FULLasked 5 months ago
AWS GameLift and Graviton CPUsasked a year ago
Fleet Initialization Failed: Cannot run program /local/game/install.shasked 6 years ago
Fleet IQ - Workingasked a year ago
How to Enable Fleet Autoscaling in Gamelift?asked 16 days ago
How GameLift Local works with game sessionsAccepted Answerasked a year ago
Need help to determine why some of game sessions in GameLift fleet are running forever.asked 2 months ago