Class: Aws::GameLift::Types::ContainerHealthCheck

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

Overview

Instructions on when and how to check the health of a support container in a container fleet. These properties override any Docker health checks that are set in the container image. For more information on container health checks, see HealthCheck command in the Amazon Elastic Container Service API. Game server containers don't have a health check parameter; Amazon GameLift automatically handles health checks for these containers.

The following example instructs the container to initiate a health check command every 60 seconds and wait 10 seconds for it to succeed. If it fails, retry the command 3 times before flagging the container as unhealthy. It also tells the container to wait 100 seconds after launch before counting failed health checks.

{"Command": [ "CMD-SHELL", "ps cax | grep "processmanager" || exit 1" ], "Interval": 60, "Timeout": 10, "Retries": 3, "StartPeriod": 100 }

Part of: SupportContainerDefinition, SupportContainerDefinitionInput

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#commandArray<String>

A string array that specifies the command that the container runs to determine if it's healthy.

Returns:

  • (Array<String>)


1135
1136
1137
1138
1139
1140
1141
1142
1143
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 1135

class ContainerHealthCheck < Struct.new(
  :command,
  :interval,
  :retries,
  :start_period,
  :timeout)
  SENSITIVE = []
  include Aws::Structure
end

#intervalInteger

The time period (in seconds) between each health check.

Returns:

  • (Integer)


1135
1136
1137
1138
1139
1140
1141
1142
1143
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 1135

class ContainerHealthCheck < Struct.new(
  :command,
  :interval,
  :retries,
  :start_period,
  :timeout)
  SENSITIVE = []
  include Aws::Structure
end

#retriesInteger

The number of times to retry a failed health check before flagging the container unhealthy. The first run of the command does not count as a retry.

Returns:

  • (Integer)


1135
1136
1137
1138
1139
1140
1141
1142
1143
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 1135

class ContainerHealthCheck < Struct.new(
  :command,
  :interval,
  :retries,
  :start_period,
  :timeout)
  SENSITIVE = []
  include Aws::Structure
end

#start_periodInteger

The optional grace period (in seconds) to give a container time to bootstrap before the first failed health check counts toward the number of retries.

Returns:

  • (Integer)


1135
1136
1137
1138
1139
1140
1141
1142
1143
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 1135

class ContainerHealthCheck < Struct.new(
  :command,
  :interval,
  :retries,
  :start_period,
  :timeout)
  SENSITIVE = []
  include Aws::Structure
end

#timeoutInteger

The time period (in seconds) to wait for a health check to succeed before counting a failed health check.

Returns:

  • (Integer)


1135
1136
1137
1138
1139
1140
1141
1142
1143
# File 'gems/aws-sdk-gamelift/lib/aws-sdk-gamelift/types.rb', line 1135

class ContainerHealthCheck < Struct.new(
  :command,
  :interval,
  :retries,
  :start_period,
  :timeout)
  SENSITIVE = []
  include Aws::Structure
end