Interface RuntimeConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RuntimeConfiguration.Jsii$Proxy
Server processes run either an executable in a custom game build or a Realtime Servers script. GameLift launches the configured processes, manages their life cycle, and replaces them as needed. Each instance checks regularly for an updated runtime configuration.
A GameLift instance is limited to 50 processes running concurrently.
To calculate the total number of processes in a runtime configuration, add the values of the ConcurrentExecutions
parameter for each ServerProcess
.
Example:
Build build; // Server processes can be delcared in a declarative way through the constructor BuildFleet fleet = BuildFleet.Builder.create(this, "Game server fleet") .fleetName("test-fleet") .content(build) .instanceType(InstanceType.of(InstanceClass.C4, InstanceSize.LARGE)) .runtimeConfiguration(RuntimeConfiguration.builder() .serverProcesses(List.of(ServerProcess.builder() .launchPath("/local/game/GameLiftExampleServer.x86_64") .parameters("-logFile /local/game/logs/myserver1935.log -port 1935") .concurrentExecutions(100) .build())) .build()) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRuntimeConfiguration
static final class
An implementation forRuntimeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeConfiguration.Builder
builder()
default Duration
(experimental) The maximum amount of time allowed to launch a new game session and have it report ready to host players.default Number
(experimental) The number of game sessions in statusACTIVATING
to allow on an instance.(experimental) A collection of server process configurations that identify what server processes to run on each instance in a fleet.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getServerProcesses
(experimental) A collection of server process configurations that identify what server processes to run on each instance in a fleet. -
getGameSessionActivationTimeout
(experimental) The maximum amount of time allowed to launch a new game session and have it report ready to host players.During this time, the game session is in status
ACTIVATING
.If the game session does not become active before the timeout, it is ended and the game session status is changed to
TERMINATED
.Default: by default game session activation timeout is 300 seconds
-
getMaxConcurrentGameSessionActivations
(experimental) The number of game sessions in statusACTIVATING
to allow on an instance.This setting limits the instance resources that can be used for new game activations at any one time.
Default: no limit
-
builder
- Returns:
- a
RuntimeConfiguration.Builder
ofRuntimeConfiguration
-