Class: Aws::GameLift::Types::ManagedCapacityConfiguration

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb

Overview

Use ManagedCapacityConfiguration with the "SCALE_TO_AND_FROM_ZERO" ZeroCapacityStrategy to enable Amazon GameLift Servers to fully manage the MinSize value, switching between 0 and 1 based on game session activity. This is ideal for eliminating compute costs during periods of no game activity. It is particularly beneficial during development when you're away from your desk, iterating on builds for extended periods, in production environments serving low-traffic locations, or for games with long, predictable downtime windows. By automatically managing capacity between 0 and 1 instances, you avoid paying for idle instances while maintaining the ability to serve game sessions when demand arrives. Note that while scale-out is triggered immediately upon receiving a game session request, actual game session availability depends on your server process startup time, so this approach works best with multi-location Fleets where cold-start latency is tolerable. With a "MANUAL" ZeroCapacityStrategy Amazon GameLift Servers will not modify Fleet MinSize values automatically and will not scale out from zero instances in response to game sessions.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#scale_in_after_inactivity_minutesInteger

Length of time, in minutes, that Amazon GameLift Servers will wait before scaling in your MinSize and DesiredInstances to 0 after a period with no game session activity. Default: 30 minutes.

Returns:

  • (Integer)


8747
8748
8749
8750
8751
8752
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 8747

class ManagedCapacityConfiguration < Struct.new(
  :zero_capacity_strategy,
  :scale_in_after_inactivity_minutes)
  SENSITIVE = []
  include Aws::Structure
end

#zero_capacity_strategyString

The strategy Amazon GameLift Servers will use to automatically scale your capacity to and from zero instances in response to game session activity. Game session activity refers to any active running sessions or game session requests.

Possible ZeroCapacityStrategy types include:

  • MANUAL -- (default value) Amazon GameLift Servers will not update capacity to and from zero on your behalf.

  • SCALE_TO_AND_FROM_ZERO -- Amazon GameLift Servers will automatically scale out MinSize and DesiredInstances from 0 to 1 in response to a game session request, and will scale in MinSize and DesiredInstances to 0 after a period with no game session activity. The duration of this scale in period can be configured using ScaleInAfterInactivityMinutes.

Returns:

  • (String)


8747
8748
8749
8750
8751
8752
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 8747

class ManagedCapacityConfiguration < Struct.new(
  :zero_capacity_strategy,
  :scale_in_after_inactivity_minutes)
  SENSITIVE = []
  include Aws::Structure
end