diff --git a/examples/counterfleetautoscaler.yaml b/examples/counterfleetautoscaler.yaml
index 6a301a151c..f63e846c5c 100644
--- a/examples/counterfleetautoscaler.yaml
+++ b/examples/counterfleetautoscaler.yaml
@@ -33,7 +33,7 @@ spec:
type: Counter # Counter based autoscaling
counter:
# Key is the name of the Counter. Required field.
- key: players
+ key: rooms
# BufferSize is the size of a buffer of counted items that are available in the Fleet (available capacity).
# Value can be an absolute number (ex: 5) or a percentage of the Counter available capacity (ex: 5%).
# An absolute number is calculated from percentage by rounding up. Must be bigger than 0. Required field.
diff --git a/examples/fleet.yaml b/examples/fleet.yaml
index 5ae6894d40..212b3cda26 100644
--- a/examples/fleet.yaml
+++ b/examples/fleet.yaml
@@ -66,7 +66,7 @@ spec:
# [FeatureFlag:CountsAndLists]
# Which gameservers in the Fleet are most important to keep around - impacts scale down logic.
# priorities:
- # - type: List # Whether a Counter or a List.
+ # - type: Counter # Whether a Counter or a List.
# key: rooms # The name of the Counter or List.
# order: Ascending # Default is "Ascending" so smaller capacity will be removed first on down scaling.
#
diff --git a/examples/gameserverallocation.yaml b/examples/gameserverallocation.yaml
index 540bb6259a..0295865196 100644
--- a/examples/gameserverallocation.yaml
+++ b/examples/gameserverallocation.yaml
@@ -85,3 +85,34 @@ spec:
mode: deathmatch
annotations:
map: garden22
+ # [Stage: Alpha]
+ # [FeatureFlag:CountsAndLists]
+ # `Priorities` configuration alters the order in which `GameServers` are searched for matches to the configured `selectors`.
+ #
+ # Priority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first.
+ #
+ # For `Packed` strategy sorting, this priority list will be the tie-breaker within the least utilised infrastructure, to ensure optimal
+ # infrastructure usage while also allowing some custom prioritisation of `GameServers`.
+ #
+ # For `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the
+ # order that `GameServers` will be allocated by.
+ # Optional.
+ # priorities:
+ # - type: Counter # Whether a Counter or a List.
+ # key: rooms # The name of the Counter or List.
+ # order: Ascending # "Ascending" lists smaller available capacity first.
+ # [Stage:Alpha]
+ # [FeatureFlag:CountsAndLists]
+ # Counter actions to perform during allocation. Optional.
+ # counters:
+ # rooms:
+ # action: Increment # Either "Increment" or "Decrement" the Counter’s Count.
+ # amount: 1 # Amount is the amount to increment or decrement the Count. Must be a positive integer.
+ # capacity: 5 # Amount to update the maximum capacity of the Counter to this number. Min 0, Max int64.
+ # List actions to perform during allocation. Optional.
+ # lists:
+ # players:
+ # addValues: # appends values to a List’s Values array. Any duplicate values will be ignored
+ # - x7un
+ # - 8inz
+ # capacity: 40 # Updates the maximum capacity of the Counter to this number. Min 0, Max 1000.
diff --git a/examples/listfleetautoscaler.yaml b/examples/listfleetautoscaler.yaml
index f5d1a06aff..0fd5004866 100644
--- a/examples/listfleetautoscaler.yaml
+++ b/examples/listfleetautoscaler.yaml
@@ -33,7 +33,7 @@ spec:
type: List # List based autoscaling.
list:
# Key is the name of the List. Required field.
- key: rooms
+ key: players
# BufferSize is the size of a buffer based on the List capacity that is available over the current
# aggregate List length in the Fleet (available capacity).
# It can be specified either as an absolute value (i.e. 5) or percentage format (i.e. 5%).
diff --git a/install/helm/agones/templates/crds/fleet.yaml b/install/helm/agones/templates/crds/fleet.yaml
index 2cd843f5ef..1c68f1a474 100644
--- a/install/helm/agones/templates/crds/fleet.yaml
+++ b/install/helm/agones/templates/crds/fleet.yaml
@@ -128,7 +128,7 @@ spec:
description: The name of the Counter or List. If not found on the GameServer, those GameServer with the key will have priority over those that do not.
order:
type: string
- description: Ascending or Descending sort order. Default is "Ascending" so remove smaller total capacity first. "Descending" would remove larger total capacity first.
+ description: Ascending or Descending sort order. Default is "Ascending" so remove smaller available capacity first. "Descending" would remove larger available capacity first.
enum:
- Ascending
- Descending
diff --git a/install/yaml/install.yaml b/install/yaml/install.yaml
index 85365cbde4..eb4f50b1f7 100644
--- a/install/yaml/install.yaml
+++ b/install/yaml/install.yaml
@@ -298,7 +298,7 @@ spec:
description: The name of the Counter or List. If not found on the GameServer, those GameServer with the key will have priority over those that do not.
order:
type: string
- description: Ascending or Descending sort order. Default is "Ascending" so remove smaller total capacity first. "Descending" would remove larger total capacity first.
+ description: Ascending or Descending sort order. Default is "Ascending" so remove smaller available capacity first. "Descending" would remove larger available capacity first.
enum:
- Ascending
- Descending
diff --git a/pkg/allocation/go/allocation.pb.go b/pkg/allocation/go/allocation.pb.go
index 42aaf170b7..3d6683b1bb 100644
--- a/pkg/allocation/go/allocation.pb.go
+++ b/pkg/allocation/go/allocation.pb.go
@@ -272,12 +272,21 @@ type AllocationRequest struct {
// This is useful for things like smoke testing of new game servers.
// Note: This field can only be set if neither Required or Preferred is set.
GameServerSelectors []*GameServerSelector `protobuf:"bytes,8,rep,name=gameServerSelectors,proto3" json:"gameServerSelectors,omitempty"`
- // (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most
- // important for sorting. The allocator will use the first priority for sorting GameServers in the
- // Selector set, and will only use any following priority for tie-breaking during sort.
- // Impacts which GameServer is checked first.
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // `Priorities` configuration alters the order in which `GameServers` are searched for matches to the configured `selectors`.
+ //
+ // Priority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first.
+ //
+ // For `Packed` strategy sorting, this priority list will be the tie-breaker within the least utilised infrastructure, to ensure optimal
+ // infrastructure usage while also allowing some custom prioritisation of `GameServers`.
+ //
+ // For `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the
+ // order that `GameServers` will be allocated by.
Priorities []*Priority `protobuf:"bytes,9,rep,name=priorities,proto3" json:"priorities,omitempty"`
- // (Alpha, CountsAndLists feature flag) Counters and Lists provide a set of actions to perform
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // Counters and Lists provide a set of actions to perform
// on Counters and Lists during allocation.
Counters map[string]*CounterAction `protobuf:"bytes,10,rep,name=counters,proto3" json:"counters,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
Lists map[string]*ListAction `protobuf:"bytes,11,rep,name=lists,proto3" json:"lists,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
diff --git a/pkg/allocation/go/allocation.swagger.json b/pkg/allocation/go/allocation.swagger.json
index ef0b5bc682..5df2807de0 100644
--- a/pkg/allocation/go/allocation.swagger.json
+++ b/pkg/allocation/go/allocation.swagger.json
@@ -190,14 +190,14 @@
"type": "object",
"$ref": "#/definitions/allocationPriority"
},
- "description": "(Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most\nimportant for sorting. The allocator will use the first priority for sorting GameServers in the\nSelector set, and will only use any following priority for tie-breaking during sort.\nImpacts which GameServer is checked first."
+ "description": "[Stage: Alpha]\n[FeatureFlag:CountsAndLists]\n`Priorities` configuration alters the order in which `GameServers` are searched for matches to the configured `selectors`.\n\nPriority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first.\n\nFor `Packed` strategy sorting, this priority list will be the tie-breaker within the least utilised infrastructure, to ensure optimal\ninfrastructure usage while also allowing some custom prioritisation of `GameServers`.\n\nFor `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the\norder that `GameServers` will be allocated by."
},
"counters": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/allocationCounterAction"
},
- "description": "(Alpha, CountsAndLists feature flag) Counters and Lists provide a set of actions to perform\non Counters and Lists during allocation."
+ "description": "[Stage: Alpha]\n[FeatureFlag:CountsAndLists]\nCounters and Lists provide a set of actions to perform\non Counters and Lists during allocation."
},
"lists": {
"type": "object",
diff --git a/pkg/apis/agones/v1/common.go b/pkg/apis/agones/v1/common.go
index 9e709e0b0b..c1bd11f9bc 100644
--- a/pkg/apis/agones/v1/common.go
+++ b/pkg/apis/agones/v1/common.go
@@ -175,14 +175,15 @@ func (ao *AllocationOverflow) Apply(gs *GameServer) {
}
}
-// Priority is a sorting option for GameServers with Counters or Lists based on the Capacity.
+// Priority is a sorting option for GameServers with Counters or Lists based on the available capacity,
+// i.e. the current Capacity value, minus either the Count value or List length.
type Priority struct {
// Type: Sort by a "Counter" or a "List".
Type string `json:"type"`
// Key: The name of the Counter or List. If not found on the GameServer, has no impact.
Key string `json:"key"`
- // Order: Sort by "Ascending" or "Descending". "Descending" a bigger Capacity is preferred.
- // "Ascending" would be smaller Capacity is preferred.
+ // Order: Sort by "Ascending" or "Descending". "Descending" a bigger available capacity is preferred.
+ // "Ascending" would be smaller available capacity is preferred.
Order string `json:"order"`
}
diff --git a/pkg/apis/agones/v1/fleet.go b/pkg/apis/agones/v1/fleet.go
index 876a397d50..8204465f38 100644
--- a/pkg/apis/agones/v1/fleet.go
+++ b/pkg/apis/agones/v1/fleet.go
@@ -69,10 +69,17 @@ type FleetSpec struct {
Strategy appsv1.DeploymentStrategy `json:"strategy"`
// Scheduling strategy. Defaults to "Packed".
Scheduling apis.SchedulingStrategy `json:"scheduling"`
- // (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most
- // important for sorting. The Fleetautoscaler will use the first priority for sorting GameServers
- // by total Capacity in the Fleet and acts as a tie-breaker after sorting the game servers by
- // State and Strategy. Impacts scale down logic.
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // `Priorities` configuration alters scale down logic in Fleets based on the configured available capacity order under that key.
+ //
+ // Priority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first.
+ //
+ // For `Packed` strategy scale down, this priority list will be the tie-breaker within the node, to ensure optimal
+ // infrastructure usage while also allowing some custom prioritisation of `GameServers`.
+ //
+ // For `Distributed` strategy scale down, the entire `Fleet` will be sorted by this priority list to provide the
+ // order of `GameServers` to delete on scale down.
// +optional
Priorities []Priority `json:"priorities,omitempty"`
// Template the GameServer template to apply for this Fleet
diff --git a/pkg/apis/agones/v1/gameserverset.go b/pkg/apis/agones/v1/gameserverset.go
index ec1cc89292..f1f6103ffb 100644
--- a/pkg/apis/agones/v1/gameserverset.go
+++ b/pkg/apis/agones/v1/gameserverset.go
@@ -67,10 +67,17 @@ type GameServerSetSpec struct {
AllocationOverflow *AllocationOverflow `json:"allocationOverflow,omitempty"`
// Scheduling strategy. Defaults to "Packed".
Scheduling apis.SchedulingStrategy `json:"scheduling,omitempty"`
- // (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most
- // important for sorting. The Fleetautoscaler will use the first priority for sorting GameServers
- // by total Capacity in the Fleet and acts as a tie-breaker after sorting the game servers by
- // State and Strategy. Impacts scale down logic.
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // `Priorities` configuration alters scale down logic in Fleets based on the configured available capacity order under that key.
+ //
+ // Priority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first.
+ //
+ // For `Packed` strategy scale down, this priority list will be the tie-breaker within the node, to ensure optimal
+ // infrastructure usage while also allowing some custom prioritisation of `GameServers`.
+ //
+ // For `Distributed` strategy scale down, the entire `Fleet` will be sorted by this priority list to provide the
+ // order of `GameServers` to delete on scale down.
// +optional
Priorities []Priority `json:"priorities,omitempty"`
// Template the GameServer template to apply for this GameServerSet
diff --git a/pkg/apis/allocation/v1/gameserverallocation.go b/pkg/apis/allocation/v1/gameserverallocation.go
index ed17f5e296..6e76e32e3e 100644
--- a/pkg/apis/allocation/v1/gameserverallocation.go
+++ b/pkg/apis/allocation/v1/gameserverallocation.go
@@ -85,10 +85,17 @@ type GameServerAllocationSpec struct {
// This is useful for things like smoke testing of new game servers.
Preferred []GameServerSelector `json:"preferred,omitempty" hash:"ignore"`
- // (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most
- // important for sorting. The allocator will use the first priority for sorting GameServers by
- // available Capacity in the Selector set. Acts as a tie-breaker after sorting the game servers
- // by State and Strategy Packed. Impacts which GameServer is checked first.
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // `Priorities` configuration alters the order in which `GameServers` are searched for matches to the configured `selectors`.
+ //
+ // Priority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first.
+ //
+ // For `Packed` strategy sorting, this priority list will be the tie-breaker within the least utilised infrastructure, to ensure optimal
+ // infrastructure usage while also allowing some custom prioritisation of `GameServers`.
+ //
+ // For `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the
+ // order that `GameServers` will be allocated by.
// +optional
Priorities []agonesv1.Priority `json:"priorities,omitempty"`
@@ -105,10 +112,14 @@ type GameServerAllocationSpec struct {
// You can use this to tell the server necessary session data
MetaPatch MetaPatch `json:"metadata,omitempty" hash:"ignore"`
- // (Alpha, CountsAndLists feature flag) Counter actions to perform during allocation.
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // Counter actions to perform during allocation.
// +optional
Counters map[string]CounterAction `json:"counters,omitempty" hash:"ignore"`
- // (Alpha, CountsAndLists feature flag) List actions to perform during allocation.
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // List actions to perform during allocation.
// +optional
Lists map[string]ListAction `json:"lists,omitempty" hash:"ignore"`
}
@@ -128,12 +139,16 @@ type GameServerSelector struct {
// Players provides a filter on minimum and maximum values for player capacity when retrieving a GameServer
// through Allocation. Defaults to no limits.
Players *PlayerSelector `json:"players,omitempty"`
- // (Alpha, CountsAndLists feature flag) Counters provides filters on minimum and maximum values
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // Counters provides filters on minimum and maximum values
// for a Counter's count and available capacity when retrieving a GameServer through Allocation.
// Defaults to no limits.
// +optional
Counters map[string]CounterSelector `json:"counters,omitempty"`
- // (Alpha, CountsAndLists feature flag) Lists provides filters on minimum and maximum values
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // Lists provides filters on minimum and maximum values
// for List capacity, and for the existence of a value in a List, when retrieving a GameServer
// through Allocation. Defaults to no limits.
// +optional
diff --git a/proto/allocation/allocation.proto b/proto/allocation/allocation.proto
index 914177e631..fe886c9ba4 100644
--- a/proto/allocation/allocation.proto
+++ b/proto/allocation/allocation.proto
@@ -79,13 +79,22 @@ message AllocationRequest {
// Note: This field can only be set if neither Required or Preferred is set.
repeated GameServerSelector gameServerSelectors = 8;
- // (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most
- // important for sorting. The allocator will use the first priority for sorting GameServers in the
- // Selector set, and will only use any following priority for tie-breaking during sort.
- // Impacts which GameServer is checked first.
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // `Priorities` configuration alters the order in which `GameServers` are searched for matches to the configured `selectors`.
+ //
+ // Priority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first.
+ //
+ // For `Packed` strategy sorting, this priority list will be the tie-breaker within the least utilised infrastructure, to ensure optimal
+ // infrastructure usage while also allowing some custom prioritisation of `GameServers`.
+ //
+ // For `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the
+ // order that `GameServers` will be allocated by.
repeated Priority priorities = 9;
- // (Alpha, CountsAndLists feature flag) Counters and Lists provide a set of actions to perform
+ // [Stage: Alpha]
+ // [FeatureFlag:CountsAndLists]
+ // Counters and Lists provide a set of actions to perform
// on Counters and Lists during allocation.
map Packages:
Package v1 is the v1 version of the API.
-agones.dev/v1
+multicluster.agones.dev/v1
-
Fleet is the data structure for a Fleet resource
+GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
-agones.dev/v1
+multicluster.agones.dev/v1
|
@@ -59,7 +55,7 @@ Fleet |
+GameServerAllocationPolicy |
|||||
@@ -79,8 +75,8 @@ Fleet
spec
-
-FleetSpec
+
+GameServerAllocationPolicySpec
|
+
+(Appears on: +GameServerAllocationPolicySpec) +
++
ClusterConnectionInfo defines the connection information for a cluster
+ +Field | +Description | +
---|---|
-scheduling
+clusterName
-agones.dev/agones/pkg/apis.SchedulingStrategy
+string
|
- Scheduling strategy. Defaults to “Packed”. +Optional: the name of the targeted cluster |
-priorities
+allocationEndpoints
-
-[]Priority
-
+[]string
|
-(Optional)
- (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most -important for sorting. The Fleetautoscaler will use the first priority for sorting GameServers -by total Capacity in the Fleet and acts as a tie-breaker after sorting the game servers by -State and Strategy. Impacts scale down logic. +The endpoints for the allocator service in the targeted cluster. +If the AllocationEndpoints is not set, the allocation happens on local cluster. +If there are multiple endpoints any of the endpoints that can handle allocation request should suffice |
-template
+secretName
-
-GameServerTemplateSpec
-
+string
|
- Template the GameServer template to apply for this Fleet +The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster |
namespace
+
+string
+
+The cluster namespace from which to allocate gameservers
status
+serverCa
-
-FleetStatus
-
+[]byte
The PEM encoded server CA, used by the allocator client to authenticate the remote server.
-
GameServer is the data structure for a GameServer resource.
-It is worth noting that while there is a GameServerStatus
Status entry for the GameServer
, it is not
-defined as a subresource - unlike Fleet
and other Agones resources.
-This is so that we can retain the ability to change multiple aspects of a GameServer
in a single atomic operation,
-which is particularly useful for operations such as allocation.
ConnectionInfoIterator an iterator on ClusterConnectionInfo
-apiVersion
-string |
+
-
-agones.dev/v1
-
+currPriority Current priority index from the orderedPriorities |
|
-kind
-string
+orderedPriorities
+
+[]int32
+
+ |
+
+ orderedPriorities list of ordered priorities |
-GameServer |
-metadata
+priorityToCluster
-
-Kubernetes meta/v1.ObjectMeta
-
+map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+priorityToCluster Map of priority to cluster-policies map |
|
-spec
+clusterBlackList
-
-GameServerSpec
-
+map[string]bool
|
- - + clusterBlackList the cluster blacklist for the clusters that has already returned + |
+
+(Appears on: +GameServerAllocationPolicy) +
++
GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
+Field | +Description | +
---|---|
-container
+priority
-string
+int32
|
- Container specifies which Pod container is the game server. Only required if there is more than one -container defined |
-ports
+weight
-
-[]GameServerPort
-
+int
|
- Ports are the array of ports that can be exposed via the game server |
-health
+connectionInfo
-
-Health
+
+ClusterConnectionInfo
|
- Health configures health checking |
+
Package v1 is the v1 version of the API.
+ +Resource Types: ++
Fleet is the data structure for a Fleet resource
+ +Field | +Description | +||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-scheduling
-
-agones.dev/agones/pkg/apis.SchedulingStrategy
-
+apiVersion
+string |
+
+
+agones.dev/v1
+
|
+||||||||||||
- Scheduling strategy. Defaults to “Packed” +kind
+string
|
+Fleet |
||||||||||||
-sdkServer
+metadata
-
-SdkServer
+
+Kubernetes meta/v1.ObjectMeta
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
||||||||||||
-template
+spec
-
-Kubernetes core/v1.PodTemplateSpec
+
+FleetSpec
+
+
+ |
+
+ + +
|
+||||||||||||
+status
+
+
+FleetStatus
+
+
+ |
++ | +
+
GameServer is the data structure for a GameServer resource.
+It is worth noting that while there is a GameServerStatus
Status entry for the GameServer
, it is not
+defined as a subresource - unlike Fleet
and other Agones resources.
+This is so that we can retain the ability to change multiple aspects of a GameServer
in a single atomic operation,
+which is particularly useful for operations such as allocation.
Field | +Description | +|||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
+apiVersion
+string |
+
+
+agones.dev/v1
+
+ |
+|||||||||||||||||||||||||||||||||||||||||||||||||||
+kind
+string
+ |
+GameServer |
+|||||||||||||||||||||||||||||||||||||||||||||||||||
+metadata
+
+
+Kubernetes meta/v1.ObjectMeta
+
+
+ |
+
+Refer to the Kubernetes API documentation for the fields of the
+metadata field.
+ |
+|||||||||||||||||||||||||||||||||||||||||||||||||||
+spec
+
+
+GameServerSpec
+
+
+ |
+
+ + +
GameServerAllocationS
(Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most -important for sorting. The allocator will use the first priority for sorting GameServers by -available Capacity in the Selector set. Acts as a tie-breaker after sorting the game servers -by State and Strategy Packed. Impacts which GameServer is checked first. +[Stage: Alpha]
+[FeatureFlag:CountsAndLists]
+ Priority of sorting is in descending importance. I.e. The position 0 For For |
|||||||||||||||||||||||||||||||||||||||||||||||||||
(Optional)
- (Alpha, CountsAndLists feature flag) Counter actions to perform during allocation. +[Stage: Alpha] +[FeatureFlag:CountsAndLists] +Counter actions to perform during allocation. |
||||||||||||||||||||||||||||||||||||||||||||||||||||
(Optional)
- (Alpha, CountsAndLists feature flag) List actions to perform during allocation. +[Stage: Alpha] +[FeatureFlag:CountsAndLists] +List actions to perform during allocation. |
- | |||||||||||||||||||||||||||||||||||||||||||||||||||
-counters
-
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
-
-
- |
-- | -|||||||||||||||||||||||||||||||||||||||||||||||||||
-lists
-
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
-
-
- |
-- | -
+(Appears on: +GameServerAllocationStatus) +
++
GameServerMetadata is the metadata from the allocated game server at allocation time
+ +Field | Description | @@ -2942,7 +3238,9 @@
(Optional)
- (Alpha, CountsAndLists feature flag) Counters provides filters on minimum and maximum values + [Stage: Alpha] +[FeatureFlag:CountsAndLists] +Counters provides filters on minimum and maximum values for a Counter’s count and available capacity when retrieving a GameServer through Allocation. Defaults to no limits. |
@@ -2958,7 +3256,9 @@
(Optional)
- (Alpha, CountsAndLists feature flag) Lists provides filters on minimum and maximum values + [Stage: Alpha] +[FeatureFlag:CountsAndLists] +Lists provides filters on minimum and maximum values for List capacity, and for the existence of a value in a List, when retrieving a GameServer through Allocation. Defaults to no limits. |
@@ -4071,18 +4371,42 @@
---|
+Generated with gen-crd-api-reference-docs
.
+
Packages:
+
Package v1 is the v1 version of the API.
Resource Types: --
GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
+Fleet is the data structure for a Fleet resource
-multicluster.agones.dev/v1
+agones.dev/v1
|
@@ -4107,13 +4431,13 @@ GameServerAllocationPolicy |
+Fleet |
|||||
metadata
-
+
Kubernetes meta/v1.ObjectMeta
@@ -4127,8 +4451,8 @@ GameServerAllocat
spec
-
-GameServerAllocationPolicySpec
+
+FleetSpec
|
-
-(Appears on: -GameServerAllocationPolicySpec) -
--
ClusterConnectionInfo defines the connection information for a cluster
- -Field | -Description | -
---|---|
-clusterName
+scheduling
-string
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- Optional: the name of the targeted cluster +Scheduling strategy. Defaults to “Packed”. |
-allocationEndpoints
+priorities
-[]string
+
+[]Priority
+
|
- The endpoints for the allocator service in the targeted cluster. -If the AllocationEndpoints is not set, the allocation happens on local cluster. -If there are multiple endpoints any of the endpoints that can handle allocation request should suffice +(Optional) +[Stage: Alpha]
+[FeatureFlag:CountsAndLists]
+ Priority of sorting is in descending importance. I.e. The position 0 For For |
-secretName
+template
-string
+
+GameServerTemplateSpec
+
|
- The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster +Template the GameServer template to apply for this Fleet |
-namespace
-
-string
-
- |
-
- The cluster namespace from which to allocate gameservers + |
serverCa
+status
-[]byte
+
+FleetStatus
+
The PEM encoded server CA, used by the allocator client to authenticate the remote server.
-
ConnectionInfoIterator an iterator on ClusterConnectionInfo
+GameServer is the data structure for a GameServer resource.
+It is worth noting that while there is a GameServerStatus
Status entry for the GameServer
, it is not
+defined as a subresource - unlike Fleet
and other Agones resources.
+This is so that we can retain the ability to change multiple aspects of a GameServer
in a single atomic operation,
+which is particularly useful for operations such as allocation.
-currPriority
-
-int
-
- |
+
- currPriority Current priority index from the orderedPriorities +
+agones.dev/v1
+
|
|
-orderedPriorities
-
-[]int32
-
- |
-
- orderedPriorities list of ordered priorities +kind
+string
|
+GameServer |
-priorityToCluster
+metadata
-map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
+
+Kubernetes meta/v1.ObjectMeta
+
|
- priorityToCluster Map of priority to cluster-policies map +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
|
-clusterBlackList
+spec
-map[string]bool
+
+GameServerSpec
+
|
- clusterBlackList the cluster blacklist for the clusters that has already returned - |
-
-(Appears on: -GameServerAllocationPolicy) -
--
GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
- +Field | -Description | -
---|---|
-priority
+container
-int32
+string
|
+ Container specifies which Pod container is the game server. Only required if there is more than one +container defined |
-weight
+ports
-int
+
+[]GameServerPort
+
|
+ Ports are the array of ports that can be exposed via the game server |
-connectionInfo
+health
-
-ClusterConnectionInfo
+
+Health
|
- | -
-Generated with gen-crd-api-reference-docs
.
-
Packages:
--
Package v1 is the v1 version of the API.
- -Resource Types: - --
FleetAutoscaler is the data structure for a FleetAutoscaler resource
- -Field | -Description | -||||||
---|---|---|---|---|---|---|---|
-apiVersion
-string |
-
-
-autoscaling.agones.dev/v1
-
- |
-||||||
-kind
-string
- |
-FleetAutoscaler |
-||||||
-metadata
-
-
-Kubernetes meta/v1.ObjectMeta
-
-
- |
-
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
- |
-||||||
-spec
-
-
-FleetAutoscalerSpec
-
-
- |
-
- - -
|
-||||||
-status
-
-
-FleetAutoscalerStatus
-
-
- |
-- | -
-(Appears on: -FleetAutoscalerPolicy) -
--
BufferPolicy controls the desired behavior of the buffer policy.
- -Field | -Description | -
---|---|
-maxReplicas
-
-int32
-
- |
-
- MaxReplicas is the maximum amount of replicas that the fleet may have. -It must be bigger than both MinReplicas and BufferSize - |
-
-minReplicas
-
-int32
-
- |
-
- MinReplicas is the minimum amount of replicas that the fleet must have -If zero, it is ignored. -If non zero, it must be smaller than MaxReplicas and bigger than BufferSize - |
-
-bufferSize
-
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
-
- |
-
- BufferSize defines how many replicas the autoscaler tries to have ready all the time -Value can be an absolute number (ex: 5) or a percentage of desired gs instances (ex: 15%) -Absolute number is calculated from percentage by rounding up. -Example: when this is set to 20%, the autoscaler will make sure that 20% -of the fleet’s game server replicas are ready. When this is set to 20, -the autoscaler will make sure that there are 20 available game servers -Must be bigger than 0 -Note: by “ready” we understand in this case “non-allocated”; this is done to ensure robustness -and computation stability in different edge case (fleet just created, not enough -capacity in the cluster etc) - |
-
-(Appears on: -FleetAutoscalerPolicy) -
--
CounterPolicy controls the desired behavior of the Counter autoscaler policy.
- -Field | -Description | -
---|---|
-key
-
-string
-
- |
-
- Key is the name of the Counter. Required field. - |
-
-maxCapacity
-
-int64
-
- |
-
- MaxCapacity is the maximum aggregate Counter total capacity across the fleet. -MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. - |
-
-minCapacity
-
-int64
-
- |
-
- MinCapacity is the minimum aggregate Counter total capacity across the fleet. -If zero, MinCapacity is ignored. -If non zero, MinCapacity must be smaller than MaxCapacity and bigger than BufferSize. - |
-
-bufferSize
-
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
-
- |
-
- BufferSize is the size of a buffer of counted items that are available in the Fleet (available -capacity). Value can be an absolute number (ex: 5) or a percentage of desired gs instances -(ex: 5%). An absolute number is calculated from percentage by rounding up. -Must be bigger than 0. Required field. - |
-
-(Appears on: -FleetAutoscalerSync) -
--
FixedIntervalSync controls the desired behavior of the fixed interval based sync.
- -Field | -Description | -
---|---|
-seconds
-
-int32
-
- |
-
- Seconds defines how often we run fleet autoscaling in seconds - |
-
-(Appears on: -FleetAutoscaleReview) -
--
FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
- -Field | -Description | -
---|---|
-uid
-
-k8s.io/apimachinery/pkg/types.UID
-
- |
-
- UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are -otherwise identical (parallel requests, requests when earlier requests did not modify etc) -The UID is meant to track the round trip (request/response) between the Autoscaler and the WebHook, not the user request. -It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. - |
-
-name
-
-string
-
- |
-
- Name is the name of the Fleet being scaled - |
-
-namespace
-
-string
-
- |
-
- Namespace is the namespace associated with the request (if any). - |
-
-status
-
-
-FleetStatus
-
-
- |
-
- The Fleet’s status values - |
-
-(Appears on: -FleetAutoscaleReview) -
--
FleetAutoscaleResponse defines the response of webhook autoscaler endpoint
- -Field | -Description | -
---|---|
-uid
-
-k8s.io/apimachinery/pkg/types.UID
-
- |
-
- UID is an identifier for the individual request/response. -This should be copied over from the corresponding FleetAutoscaleRequest. - |
-
-scale
-
-bool
-
- |
-
- Set to false if no scaling should occur to the Fleet +Health configures health checking |
-replicas
+scheduling
-int32
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- The targeted replica count +Scheduling strategy. Defaults to “Packed” |
-
FleetAutoscaleReview is passed to the webhook with a populated Request value, -and then returned with a populated Response.
- -Field | -Description | -
---|---|
-request
+sdkServer
-
-FleetAutoscaleRequest
+
+SdkServer
|
+ SdkServer specifies parameters for the Agones SDK Server sidecar container |
-response
+template
-
-FleetAutoscaleResponse
+
+Kubernetes core/v1.PodTemplateSpec
|
+ Template describes the Pod that will be created for the GameServer |
-(Appears on: -FleetAutoscalerSpec) -
--
FleetAutoscalerPolicy describes how to scale a fleet
- -Field | -Description | -
---|---|
-type
+players
-
-FleetAutoscalerPolicyType
+
+PlayersSpec
|
- Type of autoscaling policy. +(Optional) +(Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. |
-buffer
+counters
-
-BufferPolicy
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
|
(Optional)
- Buffer policy config params. Present only if FleetAutoscalerPolicyType = Buffer. +(Alpha, CountsAndLists feature flag) Counters provides the configuration for tracking of int64 values against a GameServer. +Keys must be declared at GameServer creation time. |
-webhook
+lists
-
-WebhookPolicy
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
|
(Optional)
- Webhook policy config params. Present only if FleetAutoscalerPolicyType = Webhook. +(Alpha, CountsAndLists feature flag) Lists provides the configuration for tracking of lists of up to 1000 values against a GameServer. +Keys must be declared at GameServer creation time. |
-counter
+eviction
-
-CounterPolicy
+
+Eviction
|
(Optional)
- [Stage:Alpha] -[FeatureFlag:CountsAndLists] -Counter policy config params. Present only if FleetAutoscalerPolicyType = Counter. +Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. + |
+
list
+status
-
-ListPolicy
+
+GameServerStatus
[Stage:Alpha] -[FeatureFlag:CountsAndLists] -List policy config params. Present only if FleetAutoscalerPolicyType = List.
string
alias)-(Appears on: -FleetAutoscalerPolicy) -
--
FleetAutoscalerPolicyType is the policy for autoscaling -for a given Fleet
- --(Appears on: -FleetAutoscaler) -
--
FleetAutoscalerSpec is the spec for a Fleet Scaler
+GameServerSet is the data structure for a set of GameServers. +This matches philosophically with the relationship between +Deployments and ReplicaSets
-fleetName
-
-string
-
+apiVersion
+string |
+
+
+agones.dev/v1
+
|
+
+kind
+string
|
+GameServerSet |
-policy
+metadata
-
-FleetAutoscalerPolicy
+
+Kubernetes meta/v1.ObjectMeta
|
- Autoscaling policy +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
-sync
+spec
-
-FleetAutoscalerSync
+
+GameServerSetSpec
|
-(Optional)
- Sync defines when FleetAutoscalers runs autoscaling - |
-
-(Appears on: -FleetAutoscaler) -
--
FleetAutoscalerStatus defines the current status of a FleetAutoscaler
- +Field | -Description | +
+replicas
+
+int32
+
+ |
+
+ Replicas are the number of GameServers that should be in this set + |
---|---|---|---|
-currentReplicas
+allocationOverflow
-int32
+
+AllocationOverflow
+
|
- CurrentReplicas is the current number of gameserver replicas -of the fleet managed by this autoscaler, as last seen by the autoscaler +(Optional) +[Stage: Beta]
+[FeatureFlag:FleetAllocationOverflow]
+Labels and Annotations to apply to GameServers when the number of Allocated GameServers drops below
+the desired replicas on the underlying |
||
-desiredReplicas
+scheduling
-int32
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- DesiredReplicas is the desired number of gameserver replicas -of the fleet managed by this autoscaler, as last calculated by the autoscaler +Scheduling strategy. Defaults to “Packed”. |
||
-lastScaleTime
+priorities
-
-Kubernetes meta/v1.Time
+
+[]Priority
|
(Optional)
- lastScaleTime is the last time the FleetAutoscaler scaled the attached fleet, +[Stage: Alpha]
+[FeatureFlag:CountsAndLists]
+ Priority of sorting is in descending importance. I.e. The position 0 For For |
||
-ableToScale
+template
-bool
+
+GameServerTemplateSpec
+
|
- AbleToScale indicates that we can access the target fleet +Template the GameServer template to apply for this GameServerSet + |
+
scalingLimited
+status
-bool
+
+GameServerSetStatus
+
ScalingLimited indicates that the calculated scale would be above or below the range -defined by MinReplicas and MaxReplicas, and has thus been capped.
(Appears on: -FleetAutoscalerSpec) +FleetStatus, +GameServerSetStatus)
-
FleetAutoscalerSync describes when to sync a fleet
+AggregatedCounterStatus stores total and allocated Counter tracking values
-type
+allocatedCount
-
-FleetAutoscalerSyncType
-
+int64
|
- Type of autoscaling sync. |
-fixedInterval
+allocatedCapacity
-
-FixedIntervalSync
-
+int64
+
+ |
++ | +
+count
+
+int64
+
+ |
++ | +
+capacity
+
+int64
|
-(Optional)
- FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. |
string
alias)-(Appears on: -FleetAutoscalerSync) -
--
FleetAutoscalerSyncType is the sync strategy for a given Fleet
- -(Appears on: -FleetAutoscalerPolicy) +FleetStatus, +GameServerSetStatus)
-
ListPolicy controls the desired behavior of the List autoscaler policy.
+AggregatedListStatus stores total and allocated List tracking values
-key
+allocatedCount
-string
+int64
|
- Key is the name of the List. Required field. |
-maxCapacity
+allocatedCapacity
int64
|
- MaxCapacity is the maximum aggregate List total capacity across the fleet. -MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. |
-minCapacity
+count
int64
|
- MinCapacity is the minimum aggregate List total capacity across the fleet. -If zero, it is ignored. -If non zero, it must be smaller than MaxCapacity and bigger than BufferSize. |
-bufferSize
+capacity
-k8s.io/apimachinery/pkg/util/intstr.IntOrString
+int64
|
- BufferSize is the size of a buffer based on the List capacity that is available over the -current aggregate List length in the Fleet (available capacity). It can be specified either -as an absolute value (i.e. 5) or percentage format (i.e. 5%). -Must be bigger than 0. Required field. |
(Appears on: -FleetAutoscalerPolicy) +FleetStatus, +GameServerSetStatus)
-
WebhookPolicy controls the desired behavior of the webhook policy. -It contains the description of the webhook autoscaler service -used to form url which is accessible inside the cluster
+AggregatedPlayerStatus stores total player tracking values
-url
-
-string
-
- |
-
-(Optional)
-
The Please note that using The scheme must be “https”; the URL must begin with “https://”. -A path is optional, and if present may be any string permissible in -a URL. You may use the path to pass an arbitrary string to the -webhook, for example, a cluster identifier. -Attempting to use a user or basic auth e.g. “user:password@” is not -allowed. Fragments (“#…”) and query parameters (“?…”) are not -allowed, either. - |
-
-service
+count
-
-Kubernetes admissionregistration/v1.ServiceReference
-
+int64
|
-(Optional)
-
If the webhook is running within the cluster, then you should use |
-caBundle
+capacity
-[]byte
+int64
|
-(Optional)
-
|
-
Package v1 is the v1 version of the API.
+(Appears on: +FleetSpec, +GameServerSetSpec) -Resource Types: - --
GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
+AllocationOverflow specifies what labels and/or annotations to apply on Allocated GameServers
+if the desired number of the underlying GameServerSet
drops below the number of Allocated GameServers
+attached to it.
-apiVersion
-string |
-
-
-multicluster.agones.dev/v1
-
- |
-
-kind
-string
- |
-GameServerAllocationPolicy |
-
-metadata
+labels
-
-Kubernetes meta/v1.ObjectMeta
-
+map[string]string
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+(Optional)
+Labels to be applied to the |
-spec
+annotations
-
-GameServerAllocationPolicySpec
-
+map[string]string
|
- - +(Optional) + Annotations to be applied to the |
+
+(Appears on: +GameServerAllocationStatus, +GameServerSpec, +GameServerStatus) +
++
CounterStatus stores the current counter values and maximum capacity
+
-priority
-
-int32
-
- |
-- | +Field | +Description |
---|---|---|---|
-weight
+count
-int
+int64
|
@@ -5354,29 +5160,25 @@ GameServerAllocat | ||
-connectionInfo
+capacity
-
-ClusterConnectionInfo
-
+int64
|
(Appears on: -GameServerAllocationPolicySpec) +GameServerSpec, +GameServerStatus)
-
ClusterConnectionInfo defines the connection information for a cluster
+Eviction specifies the eviction tolerance of the GameServer
-clusterName
-
-string
-
- |
-
- Optional: the name of the targeted cluster - |
-
-allocationEndpoints
+safe
-[]string
+
+EvictionSafe
+
|
- The endpoints for the allocator service in the targeted cluster. -If the AllocationEndpoints is not set, the allocation happens on local cluster. -If there are multiple endpoints any of the endpoints that can handle allocation request should suffice +Game server supports termination via SIGTERM: +- Always: Allow eviction for both Cluster Autoscaler and node drain for upgrades +- OnUpgrade: Allow eviction for upgrades alone +- Never (default): Pod should run to completion |
string
alias)+(Appears on: +Eviction) +
++
EvictionSafe specified whether the game server supports termination via SIGTERM
+ ++(Appears on: +Fleet) +
++
FleetSpec is the spec for a Fleet
+ +
-secretName
-
-string
-
- |
-
- The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster - |
+Field | +Description |
---|---|---|---|
-namespace
+replicas
-string
+int32
|
- The cluster namespace from which to allocate gameservers +Replicas are the number of GameServers that should be in this set. Defaults to 0. |
||
-serverCa
+allocationOverflow
-[]byte
+
+AllocationOverflow
+
|
- The PEM encoded server CA, used by the allocator client to authenticate the remote server. +(Optional) +[Stage: Beta]
+[FeatureFlag:FleetAllocationOverflow]
+Labels and/or Annotations to apply to overflowing GameServers when the number of Allocated GameServers is more
+than the desired replicas on the underlying |
-
ConnectionInfoIterator an iterator on ClusterConnectionInfo
- -Field | -Description | -
---|---|
-currPriority
+strategy
-int
+
+Kubernetes apps/v1.DeploymentStrategy
+
|
- currPriority Current priority index from the orderedPriorities +Deployment strategy |
-orderedPriorities
+scheduling
-[]int32
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- orderedPriorities list of ordered priorities +Scheduling strategy. Defaults to “Packed”. |
-priorityToCluster
+priorities
-map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
+
+[]Priority
+
|
- priorityToCluster Map of priority to cluster-policies map +(Optional) +[Stage: Alpha]
+[FeatureFlag:CountsAndLists]
+ Priority of sorting is in descending importance. I.e. The position 0 For For |
-clusterBlackList
+template
-map[string]bool
+
+GameServerTemplateSpec
+
|
- clusterBlackList the cluster blacklist for the clusters that has already returned +Template the GameServer template to apply for this Fleet |
(Appears on: -GameServerAllocationPolicy) +Fleet, +FleetAutoscaleRequest)
-
GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
+FleetStatus is the status of a Fleet
-priority
+replicas
int32
|
+ Replicas the total number of current GameServer replicas |
-weight
+readyReplicas
-int
+int32
|
+ ReadyReplicas are the number of Ready GameServer replicas |
-connectionInfo
+reservedReplicas
-
-ClusterConnectionInfo
-
+int32
|
+ ReservedReplicas are the total number of Reserved GameServer replicas in this fleet. +Reserved instances won’t be deleted on scale down, but won’t cause an autoscaler to scale up. |
-
Package v1 is the v1 version of the API.
- -Resource Types: --
Fleet is the data structure for a Fleet resource
- -Field | -Description | -||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-apiVersion
-string |
-
-
-agones.dev/v1
-
+allocatedReplicas
+
+int32
+
|
-||||||||||||||
-kind
-string
+AllocatedReplicas are the number of Allocated GameServer replicas |
-Fleet |
||||||||||||||
-metadata
+players
-
-Kubernetes meta/v1.ObjectMeta
+
+AggregatedPlayerStatus
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+(Optional)
+[Stage:Alpha] +[FeatureFlag:PlayerTracking] +Players are the current total player capacity and count for this Fleet |
||||||||||||||
-spec
+counters
-
-FleetSpec
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedCounterStatus
|
- - -
GameServerPort +++(Appears on: +GameServerSpec) + ++ GameServerPort defines a set of Ports that +are to be exposed via the GameServer + +
HostPort the port exposed on the host for clients to connect to |
||||||||||||||
-status
+protocol
-
-FleetStatus
+
+Kubernetes core/v1.Protocol
|
+ Protocol is the network protocol being used. Defaults to UDP. TCP and TCPUDP are other options. |
-
GameServer is the data structure for a GameServer resource.
-It is worth noting that while there is a GameServerStatus
Status entry for the GameServer
, it is not
-defined as a subresource - unlike Fleet
and other Agones resources.
-This is so that we can retain the ability to change multiple aspects of a GameServer
in a single atomic operation,
-which is particularly useful for operations such as allocation.
+
GameServerSetSpec the specification for GameServerSet
-apiVersion
-string |
-
-
-agones.dev/v1
-
- |
-||||||||||||||||||||||
-kind
-string
- |
-GameServer |
-||||||||||||||||||||||
-metadata
+replicas
-
-Kubernetes meta/v1.ObjectMeta
-
+int32
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+Replicas are the number of GameServers that should be in this set |
||||||||||||||||||||||
-spec
+allocationOverflow
-
-GameServerSpec
+
+AllocationOverflow
|
- - -
GameServerSetStatus +++(Appears on: +GameServerSet) + ++ GameServerSetStatus is the status of a GameServerSet + +
(Alpha, CountsAndLists feature flag) Counters provides aggregated Counter capacity and Counter +count for this GameServerSet. |
||||||||||||||||||||||
-status
+lists
-
-GameServerStatus
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedListStatus
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) Lists provides aggregated List capacity and List values +for this GameServerSet. |
-
GameServerSet is the data structure for a set of GameServers. -This matches philosophically with the relationship between -Deployments and ReplicaSets
+(Appears on: +GameServer, +GameServerTemplateSpec) -Field | -Description | -||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
-apiVersion
-string |
-
-
-agones.dev/v1
-
- |
-
-kind
-string
- |
-GameServerSet |
+Field | +Description | |||||||
---|---|---|---|---|---|---|---|---|---|---|
-metadata
+container
-
-Kubernetes meta/v1.ObjectMeta
-
+string
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+Container specifies which Pod container is the game server. Only required if there is more than one +container defined |
|||||||||
-spec
+ports
-
-GameServerSetSpec
+
+[]GameServerPort
|
- - -
Template describes the Pod that will be created for the GameServer |
|||||||||
-status
+players
-
-GameServerSetStatus
+
+PlayersSpec
|
- | -
-(Appears on: -FleetStatus, -GameServerSetStatus) -
--
AggregatedCounterStatus stores total and allocated Counter tracking values
- -Field | -Description | -
---|---|
-allocatedCount
-
-int64
-
- |
-
+(Optional)
+ (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. |
-allocatedCapacity
+counters
-int64
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
+
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) Counters provides the configuration for tracking of int64 values against a GameServer. +Keys must be declared at GameServer creation time. |
-count
+lists
-int64
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
+
|
+(Optional)
+ (Alpha, CountsAndLists feature flag) Lists provides the configuration for tracking of lists of up to 1000 values against a GameServer. +Keys must be declared at GameServer creation time. |
-capacity
+eviction
-int64
+
+Eviction
+
|
+(Optional)
+ Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. |
string
alias)+(Appears on: +GameServerSelector, +GameServerStatus) +
++
GameServerState is the state for the GameServer
+ +(Appears on: -FleetStatus, -GameServerSetStatus) +GameServer)
-
AggregatedListStatus stores total and allocated List tracking values
+GameServerStatus is the status for a GameServer resource
-allocatedCount
+state
-int64
+
+GameServerState
+
|
+ GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc |
-allocatedCapacity
+ports
-int64
+
+[]GameServerStatusPort
+
|
@@ -6180,9 +5945,9 @@ AggregatedListStatus |
-count
+address
-int64
+string
|
@@ -6190,39 +5955,35 @@ AggregatedListStatus |
-capacity
+addresses
-int64
+
+[]Kubernetes core/v1.NodeAddress
+
|
+(Optional)
+ Addresses is the array of addresses at which the GameServer can be reached; copy of Node.Status.addresses. |
-(Appears on: -FleetStatus, -GameServerSetStatus) -
--
AggregatedPlayerStatus stores total player tracking values
- -Field | -Description | +
+nodeName
+
+string
+
+ |
++ |
---|---|---|---|
-count
+reservedUntil
-int64
+
+Kubernetes meta/v1.Time
+
|
@@ -6230,72 +5991,72 @@ AggregatedPlayerStatus | ||
-capacity
+players
-int64
+
+PlayerStatus
+
|
+(Optional)
+ [Stage:Alpha] +[FeatureFlag:PlayerTracking] |
-(Appears on: -FleetSpec, -GameServerSetSpec) -
--
AllocationOverflow specifies what labels and/or annotations to apply on Allocated GameServers
-if the desired number of the underlying GameServerSet
drops below the number of Allocated GameServers
-attached to it.
Field | -Description | +
+counters
+
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
+
+
+ |
+
+(Optional)
+ (Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. + |
---|---|---|---|
-labels
+lists
-map[string]string
+
+map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
+
|
(Optional)
- Labels to be applied to the |
||
-annotations
+eviction
-map[string]string
+
+Eviction
+
|
(Optional)
- Annotations to be applied to the Eviction specifies the eviction tolerance of the GameServer. |
(Appears on: GameServerAllocationStatus, -GameServerSpec, GameServerStatus)
-
CounterStatus stores the current counter values and maximum capacity
+GameServerStatusPort shows the port that was allocated to a +GameServer.
-count
+name
-int64
+string
|
@@ -6317,9 +6078,9 @@ CounterStatus |
-capacity
+port
-int64
+int32
|
@@ -6327,15 +6088,15 @@ CounterStatus |
(Appears on: -GameServerSpec, -GameServerStatus) +FleetSpec, +GameServerSetSpec)
-
Eviction specifies the eviction tolerance of the GameServer
+GameServerTemplateSpec is a template for GameServers
-safe
+metadata
-
-EvictionSafe
+
+Kubernetes meta/v1.ObjectMeta
|
- Game server supports termination via SIGTERM: -- Always: Allow eviction for both Cluster Autoscaler and node drain for upgrades -- OnUpgrade: Allow eviction for upgrades alone -- Never (default): Pod should run to completion +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
string
alias)-(Appears on: -Eviction) -
--
EvictionSafe specified whether the game server supports termination via SIGTERM
- --(Appears on: -Fleet) -
--
FleetSpec is the spec for a Fleet
- -Field | -Description | -
+spec
+
+
+GameServerSpec
+
+
+ |
+
+ + +
|
---|
(Appears on: -Fleet, -FleetAutoscaleRequest) +GameServerSpec)
-
FleetStatus is the status of a Fleet
+Health configures health checking on the GameServer
-replicas
+disabled
+
+bool
+
+ |
+
+ Disabled is whether health checking is disabled or not + |
+
+periodSeconds
int32
|
- Replicas the total number of current GameServer replicas +PeriodSeconds is the number of seconds each health ping has to occur in |
-readyReplicas
+failureThreshold
int32
|
- ReadyReplicas are the number of Ready GameServer replicas +FailureThreshold how many failures in a row constitutes unhealthy |
-reservedReplicas
+initialDelaySeconds
+
+int32
+
+ |
+
+ InitialDelaySeconds initial delay before checking health + |
+
+(Appears on: +GameServerAllocationStatus, +GameServerSpec, +GameServerStatus) +
++
ListStatus stores the current list values and maximum capacity
+ +Field | +Description | +
---|---|
+capacity
+
+int64
+
+ |
++ | +
+values
-int32
+[]string
|
- ReservedReplicas are the total number of Reserved GameServer replicas in this fleet. -Reserved instances won’t be deleted on scale down, but won’t cause an autoscaler to scale up. |
+(Appears on: +GameServerStatus) +
++
PlayerStatus stores the current player capacity values
+ +Field | +Description | +
---|---|
-allocatedReplicas
+count
-int32
+int64
|
- AllocatedReplicas are the number of Allocated GameServer replicas |
-players
+capacity
-
-AggregatedPlayerStatus
-
+int64
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] -Players are the current total player capacity and count for this Fleet |
-counters
+ids
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedCounterStatus
-
+[]string
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counters provides aggregated Counter capacity and Counter -count for this Fleet. |
+(Appears on: +GameServerSpec) +
++
PlayersSpec tracks the initial player capacity
+ +Field | +Description | +
---|---|
-lists
+initialCapacity
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedListStatus
-
+int64
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Lists provides aggregated List capacityv and List values -for this Fleet. |
string
alias)+(Appears on: +GameServerPort) +
++
PortPolicy is the port policy for the GameServer
+ +(Appears on: -GameServerSpec) +FleetSpec, +GameServerAllocationSpec, +GameServerSetSpec)
-
GameServerPort defines a set of Ports that -are to be exposed via the GameServer
+Priority is a sorting option for GameServers with Counters or Lists based on the available capacity, +i.e. the current Capacity value, minus either the Count value or List length.
-name
+type
string
|
- Name is the descriptive name of the port +Type: Sort by a “Counter” or a “List”. |
-portPolicy
+key
-
-PortPolicy
-
+string
|
- PortPolicy defines the policy for how the HostPort is populated.
-Dynamic port will allocate a HostPort within the selected MIN_PORT and MAX_PORT range passed to the controller
-at installation time.
-When Key: The name of the Counter or List. If not found on the GameServer, has no impact. |
-container
+order
string
|
-(Optional)
- Container is the name of the container on which to open the port. Defaults to the game server container. +Order: Sort by “Ascending” or “Descending”. “Descending” a bigger available capacity is preferred. +“Ascending” would be smaller available capacity is preferred. |
+(Appears on: +GameServerSpec) +
++
SdkServer specifies parameters for the Agones SDK Server sidecar container
+ +Field | +Description | +
---|---|
-containerPort
+logLevel
-int32
+
+SdkServerLogLevel
+
|
- ContainerPort is the port that is being opened on the specified container’s process +LogLevel for SDK server (sidecar) logs. Defaults to “Info” |
-hostPort
+grpcPort
int32
|
- HostPort the port exposed on the host for clients to connect to +GRPCPort is the port on which the SDK Server binds the gRPC server to accept incoming connections |
-protocol
+httpPort
-
-Kubernetes core/v1.Protocol
-
+int32
|
- Protocol is the network protocol being used. Defaults to UDP. TCP and TCPUDP are other options. +HTTPPort is the port on which the SDK Server binds the HTTP gRPC gateway server to accept incoming connections |
string
alias)(Appears on: -GameServerSet) +SdkServer)
-
GameServerSetSpec the specification for GameServerSet
+SdkServerLogLevel is the log level for SDK server (sidecar) logs
+ ++
Package v1 is the v1 version of the API.
+ +Resource Types: + ++
GameServerAllocation is the data structure for allocating against a set of
+GameServers, defined selectors
selectors
-replicas
-
-int32
-
+apiVersion
+string |
+
+
+allocation.agones.dev/v1
+
|
+
- Replicas are the number of GameServers that should be in this set +kind
+string
|
+GameServerAllocation |
-allocationOverflow
+metadata
-
-AllocationOverflow
+
+Kubernetes meta/v1.ObjectMeta
|
-(Optional)
- [Stage: Beta]
-[FeatureFlag:FleetAllocationOverflow]
-Labels and Annotations to apply to GameServers when the number of Allocated GameServers drops below
-the desired replicas on the underlying metadata field.
|
-scheduling
+spec
-agones.dev/agones/pkg/apis.SchedulingStrategy
+
+GameServerAllocationSpec
+
|
- Scheduling strategy. Defaults to “Packed”. - |
-
-priorities
+multiClusterSetting
-
-[]Priority
+
+MultiClusterSetting
|
-(Optional)
- (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most -important for sorting. The Fleetautoscaler will use the first priority for sorting GameServers -by total Capacity in the Fleet and acts as a tie-breaker after sorting the game servers by -State and Strategy. Impacts scale down logic. +MultiClusterPolicySelector if specified, multi-cluster policies are applied. +Otherwise, allocation will happen locally. |
-template
+required
-
-GameServerTemplateSpec
+
+GameServerSelector
|
- Template the GameServer template to apply for this GameServerSet +Deprecated: use field Selectors instead. If Selectors is set, this field is ignored. +Required is the GameServer selector from which to choose GameServers from. +Defaults to all GameServers. |
-(Appears on: -GameServerSet) -
--
GameServerSetStatus is the status of a GameServerSet
- -Field | -Description | -
---|---|
-replicas
+preferred
-int32
+
+[]GameServerSelector
+
|
- Replicas is the total number of current GameServer replicas +Deprecated: use field Selectors instead. If Selectors is set, this field is ignored.
+Preferred is an ordered list of preferred GameServer selectors
+that are optional to be fulfilled, but will be searched before the |
-readyReplicas
+priorities
-int32
+
+[]Priority
+
|
- ReadyReplicas is the number of Ready GameServer replicas +(Optional) +[Stage: Alpha]
+[FeatureFlag:CountsAndLists]
+ Priority of sorting is in descending importance. I.e. The position 0 For For |
-reservedReplicas
+selectors
-int32
+
+[]GameServerSelector
+
|
- ReservedReplicas is the number of Reserved GameServer replicas +Ordered list of GameServer label selectors. +If the first selector is not matched, the selection attempts the second selector, and so on. +This is useful for things like smoke testing of new game servers. +Note: This field can only be set if neither Required or Preferred is set. |
-allocatedReplicas
+scheduling
-int32
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
- AllocatedReplicas is the number of Allocated GameServer replicas +Scheduling strategy. Defaults to “Packed”. |
-shutdownReplicas
+metadata
-int32
+
+MetaPatch
+
|
- ShutdownReplicas is the number of Shutdown GameServers replicas +MetaPatch is optional custom metadata that is added to the game server at allocation +You can use this to tell the server necessary session data |
-players
+counters
-
-AggregatedPlayerStatus
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterAction
|
(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] -Players is the current total player capacity and count for this GameServerSet +[Stage: Alpha] +[FeatureFlag:CountsAndLists] +Counter actions to perform during allocation. |
-counters
+lists
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedCounterStatus
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.ListAction
|
(Optional)
- (Alpha, CountsAndLists feature flag) Counters provides aggregated Counter capacity and Counter -count for this GameServerSet. +[Stage: Alpha] +[FeatureFlag:CountsAndLists] +List actions to perform during allocation. + |
+
lists
+status
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.AggregatedListStatus
+
+GameServerAllocationStatus
(Alpha, CountsAndLists feature flag) Lists provides aggregated List capacity and List values -for this GameServerSet.
(Appears on: -GameServer, -GameServerTemplateSpec) +GameServerAllocationSpec)
-
GameServerSpec is the spec for a GameServer resource
+CounterAction is an optional action that can be performed on a Counter at allocation.
-container
+action
string
|
- Container specifies which Pod container is the game server. Only required if there is more than one -container defined - |
-
-ports
-
-
-[]GameServerPort
-
-
- |
-
- Ports are the array of ports that can be exposed via the game server - |
-
-health
-
-
-Health
-
-
- |
-
- Health configures health checking +(Optional) +Action must to either “Increment” or “Decrement” the Counter’s Count. Must also define the Amount. |
-scheduling
+amount
-agones.dev/agones/pkg/apis.SchedulingStrategy
+int64
|
- Scheduling strategy. Defaults to “Packed” +(Optional) +Amount is the amount to increment or decrement the Count. Must be a positive integer. |
-sdkServer
+capacity
-
-SdkServer
-
+int64
|
- SdkServer specifies parameters for the Agones SDK Server sidecar container +(Optional) +Capacity is the amount to update the maximum capacity of the Counter to this number. Min 0, Max int64. |
+(Appears on: +GameServerSelector) +
++
CounterSelector is the filter options for a GameServer based on the count and/or available capacity.
+ +
-template
-
-
-Kubernetes core/v1.PodTemplateSpec
-
-
- |
-
- Template describes the Pod that will be created for the GameServer - |
+Field | +Description |
---|---|---|---|
-players
+minCount
-
-PlayersSpec
-
+int64
|
(Optional)
- (Alpha, PlayerTracking feature flag) Players provides the configuration for player tracking features. +MinCount is the minimum current value. Defaults to 0. |
||
-counters
+maxCount
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
-
+int64
|
(Optional)
- (Alpha, CountsAndLists feature flag) Counters provides the configuration for tracking of int64 values against a GameServer. -Keys must be declared at GameServer creation time. +MaxCount is the maximum current value. Defaults to 0, which translates as max(in64). |
||
-lists
+minAvailable
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
-
+int64
|
(Optional)
- (Alpha, CountsAndLists feature flag) Lists provides the configuration for tracking of lists of up to 1000 values against a GameServer. -Keys must be declared at GameServer creation time. +MinAvailable specifies the minimum capacity (current capacity - current count) available on a GameServer. Defaults to 0. |
||
-eviction
+maxAvailable
-
-Eviction
-
+int64
|
(Optional)
- Eviction specifies the eviction tolerance of the GameServer. Defaults to “Never”. +MaxAvailable specifies the maximum capacity (current capacity - current count) available on a GameServer. Defaults to 0, which translates to max(int64). |
string
alias)-(Appears on: -GameServerSelector, -GameServerStatus) -
--
GameServerState is the state for the GameServer
- -(Appears on: -GameServer) +GameServerAllocation)
-
GameServerStatus is the status for a GameServer resource
+GameServerAllocationSpec is the spec for a GameServerAllocation
-state
+multiClusterSetting
-
-GameServerState
+
+MultiClusterSetting
|
- GameServerState is the current state of a GameServer, e.g. Creating, Starting, Ready, etc +MultiClusterPolicySelector if specified, multi-cluster policies are applied. +Otherwise, allocation will happen locally. |
-ports
+required
-
-[]GameServerStatusPort
+
+GameServerSelector
|
+ Deprecated: use field Selectors instead. If Selectors is set, this field is ignored. +Required is the GameServer selector from which to choose GameServers from. +Defaults to all GameServers. |
-address
-
-string
-
- |
-- | -
-addresses
+preferred
-
-[]Kubernetes core/v1.NodeAddress
+
+[]GameServerSelector
|
-(Optional)
- Addresses is the array of addresses at which the GameServer can be reached; copy of Node.Status.addresses. +Deprecated: use field Selectors instead. If Selectors is set, this field is ignored.
+Preferred is an ordered list of preferred GameServer selectors
+that are optional to be fulfilled, but will be searched before the |
-nodeName
+priorities
-string
+
+[]Priority
+
|
+(Optional)
+ [Stage: Alpha]
+[FeatureFlag:CountsAndLists]
+ Priority of sorting is in descending importance. I.e. The position 0 For For |
-reservedUntil
+selectors
-
-Kubernetes meta/v1.Time
+
+[]GameServerSelector
|
+ Ordered list of GameServer label selectors. +If the first selector is not matched, the selection attempts the second selector, and so on. +This is useful for things like smoke testing of new game servers. +Note: This field can only be set if neither Required or Preferred is set. |
-players
+scheduling
-
-PlayerStatus
-
+agones.dev/agones/pkg/apis.SchedulingStrategy
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerTracking] +Scheduling strategy. Defaults to “Packed”. |
-counters
+metadata
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
+
+MetaPatch
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counters and Lists provides the configuration for generic tracking features. +MetaPatch is optional custom metadata that is added to the game server at allocation +You can use this to tell the server necessary session data |
-lists
+counters
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterAction
|
(Optional)
+ [Stage: Alpha] +[FeatureFlag:CountsAndLists] +Counter actions to perform during allocation. |
-eviction
+lists
-
-Eviction
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.ListAction
|
(Optional)
- Eviction specifies the eviction tolerance of the GameServer. +[Stage: Alpha] +[FeatureFlag:CountsAndLists] +List actions to perform during allocation. |
string
alias)(Appears on: -GameServerAllocationStatus, -GameServerStatus) +GameServerAllocationStatus)
-
GameServerStatusPort shows the port that was allocated to a -GameServer.
+GameServerAllocationState is the Allocation state
-Field | -Description | -
---|---|
-name
-
-string
-
- |
-- | -
-port
-
-int32
-
- |
-- | -
(Appears on: -FleetSpec, -GameServerSetSpec) +GameServerAllocation)
-
GameServerTemplateSpec is a template for GameServers
+GameServerAllocationStatus is the status for an GameServerAllocation resource
-metadata
+state
-
-Kubernetes meta/v1.ObjectMeta
+
+GameServerAllocationState
|
-Refer to the Kubernetes API documentation for the fields of the
-metadata field.
+GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated |
||||||||||||||||||||
-spec
-
-
-GameServerSpec
-
-
- |
-
- - -
GameServerMetadata +++(Appears on: +GameServerAllocationStatus) + ++ GameServerMetadata is the metadata from the allocated game server at allocation time + +
| ||||||||||||||||||||
+annotations
+
+map[string]string
+
+ |
+
(Appears on: -GameServerSpec) +GameServerAllocationSpec)
-
Health configures health checking on the GameServer
+GameServerSelector contains all the filter options for selecting +a GameServer for allocation.
-disabled
+LabelSelector
-bool
+
+Kubernetes meta/v1.LabelSelector
+
|
- Disabled is whether health checking is disabled or not +
+(Members of See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ |
-periodSeconds
+gameServerState
-int32
+
+GameServerState
+
|
- PeriodSeconds is the number of seconds each health ping has to occur in +GameServerState specifies which State is the filter to be used when attempting to retrieve a GameServer +via Allocation. Defaults to “Ready”. The only other option is “Allocated”, which can be used in conjunction with +label/annotation/player selectors to retrieve an already Allocated GameServer. |
-failureThreshold
+players
-int32
+
+PlayerSelector
+
+
+ |
+
+(Optional)
+ [Stage:Alpha] +[FeatureFlag:PlayerAllocationFilter] +Players provides a filter on minimum and maximum values for player capacity when retrieving a GameServer +through Allocation. Defaults to no limits. + |
+
+counters
+
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterSelector
+
|
- FailureThreshold how many failures in a row constitutes unhealthy +(Optional) +[Stage: Alpha] +[FeatureFlag:CountsAndLists] +Counters provides filters on minimum and maximum values +for a Counter’s count and available capacity when retrieving a GameServer through Allocation. +Defaults to no limits. |
-initialDelaySeconds
+lists
-int32
+
+map[string]agones.dev/agones/pkg/apis/allocation/v1.ListSelector
+
|
- InitialDelaySeconds initial delay before checking health +(Optional) +[Stage: Alpha] +[FeatureFlag:CountsAndLists] +Lists provides filters on minimum and maximum values +for List capacity, and for the existence of a value in a List, when retrieving a GameServer +through Allocation. Defaults to no limits. |
(Appears on: -GameServerAllocationStatus, -GameServerSpec, -GameServerStatus) +GameServerAllocationSpec)
-
ListStatus stores the current list values and maximum capacity
+ListAction is an optional action that can be performed on a List at allocation.
-capacity
+addValues
-int64
+[]string
|
+(Optional)
+ AddValues appends values to a List’s Values array. Any duplicate values will be ignored. |
-values
+capacity
-[]string
+int64
|
+(Optional)
+ Capacity updates the maximum capacity of the Counter to this number. Min 0, Max 1000. |
(Appears on: -GameServerStatus) +GameServerSelector)
-
PlayerStatus stores the current player capacity values
+ListSelector is the filter options for a GameServer based on List available capacity and/or the +existence of a value in a List.
-count
+containsValue
-int64
+string
|
+(Optional)
+ ContainsValue says to only match GameServers who has this value in the list. Defaults to “”, which is all. |
-capacity
+minAvailable
int64
|
+(Optional)
+ MinAvailable specifies the minimum capacity (current capacity - current count) available on a GameServer. Defaults to 0. |
-ids
+maxAvailable
-[]string
+int64
|
+(Optional)
+ MaxAvailable specifies the maximum capacity (current capacity - current count) available on a GameServer. Defaults to 0, which is translated as max(int64). |
(Appears on: -GameServerSpec) +GameServerAllocationSpec)
-
PlayersSpec tracks the initial player capacity
+MetaPatch is the metadata used to patch the GameServer metadata on allocation
-initialCapacity
+labels
-int64
+map[string]string
+
+ |
++ | +
+annotations
+
+map[string]string
|
@@ -7602,25 +7512,14 @@ PlayersSpec |
string
alias)-(Appears on: -GameServerPort) -
--
PortPolicy is the port policy for the GameServer
- -(Appears on: -FleetSpec, -GameServerAllocationSpec, -GameServerSetSpec) +GameServerAllocationSpec)
-
Priority is a sorting option for GameServers with Counters or Lists based on the Capacity.
+MultiClusterSetting specifies settings for multi-cluster allocation.
-type
-
-string
-
- |
-
- Type: Sort by a “Counter” or a “List”. - |
-
-key
+enabled
-string
+bool
|
- Key: The name of the Counter or List. If not found on the GameServer, has no impact. |
-order
+policySelector
-string
+
+Kubernetes meta/v1.LabelSelector
+
|
- Order: Sort by “Ascending” or “Descending”. “Descending” a bigger Capacity is preferred. -“Ascending” would be smaller Capacity is preferred. |
(Appears on: -GameServerSpec) +GameServerSelector)
-
SdkServer specifies parameters for the Agones SDK Server sidecar container
+PlayerSelector is the filter options for a GameServer based on player counts
-logLevel
-
-
-SdkServerLogLevel
-
-
- |
-
- LogLevel for SDK server (sidecar) logs. Defaults to “Info” - |
-
-grpcPort
+minAvailable
-int32
+int64
|
- GRPCPort is the port on which the SDK Server binds the gRPC server to accept incoming connections |
-httpPort
+maxAvailable
-int32
+int64
|
- HTTPPort is the port on which the SDK Server binds the HTTP gRPC gateway server to accept incoming connections |
string
alias)-(Appears on: -SdkServer) -
--
SdkServerLogLevel is the log level for SDK server (sidecar) logs
-
Package v1 is the v1 version of the API.
Resource Types: --
GameServerAllocation is the data structure for allocating against a set of
-GameServers, defined selectors
selectors
FleetAutoscaler is the data structure for a FleetAutoscaler resource
-allocation.agones.dev/v1
+autoscaling.agones.dev/v1
|
@@ -7767,7 +7629,7 @@ GameServerAllocation |
+FleetAutoscaler |
|||||
@@ -7787,8 +7649,8 @@ GameServerAllocation
spec
-
-GameServerAllocationSpec
+
+FleetAutoscalerSpec
|
|||||||
-priorities
+status
-
-[]Priority
+
+FleetAutoscalerStatus
|
-(Optional)
- (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most -important for sorting. The allocator will use the first priority for sorting GameServers by -available Capacity in the Selector set. Acts as a tie-breaker after sorting the game servers -by State and Strategy Packed. Impacts which GameServer is checked first. + |
+
+(Appears on: +FleetAutoscalerPolicy) +
++
BufferPolicy controls the desired behavior of the buffer policy.
+ +Field | +Description | +
---|---|
+maxReplicas
+
+int32
+
+ |
+
+ MaxReplicas is the maximum amount of replicas that the fleet may have. +It must be bigger than both MinReplicas and BufferSize + |
+
+minReplicas
+
+int32
+
+ |
+
+ MinReplicas is the minimum amount of replicas that the fleet must have +If zero, it is ignored. +If non zero, it must be smaller than MaxReplicas and bigger than BufferSize |
-selectors
+bufferSize
-
-[]GameServerSelector
-
+k8s.io/apimachinery/pkg/util/intstr.IntOrString
|
- Ordered list of GameServer label selectors. -If the first selector is not matched, the selection attempts the second selector, and so on. -This is useful for things like smoke testing of new game servers. -Note: This field can only be set if neither Required or Preferred is set. +BufferSize defines how many replicas the autoscaler tries to have ready all the time +Value can be an absolute number (ex: 5) or a percentage of desired gs instances (ex: 15%) +Absolute number is calculated from percentage by rounding up. +Example: when this is set to 20%, the autoscaler will make sure that 20% +of the fleet’s game server replicas are ready. When this is set to 20, +the autoscaler will make sure that there are 20 available game servers +Must be bigger than 0 +Note: by “ready” we understand in this case “non-allocated”; this is done to ensure robustness +and computation stability in different edge case (fleet just created, not enough +capacity in the cluster etc) |
+(Appears on: +FleetAutoscalerPolicy) +
++
CounterPolicy controls the desired behavior of the Counter autoscaler policy.
+ +Field | +Description | +
---|---|
-scheduling
+key
-agones.dev/agones/pkg/apis.SchedulingStrategy
+string
|
- Scheduling strategy. Defaults to “Packed”. +Key is the name of the Counter. Required field. |
-metadata
+maxCapacity
-
-MetaPatch
-
+int64
|
- MetaPatch is optional custom metadata that is added to the game server at allocation -You can use this to tell the server necessary session data +MaxCapacity is the maximum aggregate Counter total capacity across the fleet. +MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. |
-counters
+minCapacity
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterAction
-
+int64
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counter actions to perform during allocation. +MinCapacity is the minimum aggregate Counter total capacity across the fleet. +If zero, MinCapacity is ignored. +If non zero, MinCapacity must be smaller than MaxCapacity and bigger than BufferSize. |
-lists
+bufferSize
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.ListAction
-
+k8s.io/apimachinery/pkg/util/intstr.IntOrString
|
-(Optional)
- (Alpha, CountsAndLists feature flag) List actions to perform during allocation. +BufferSize is the size of a buffer of counted items that are available in the Fleet (available +capacity). Value can be an absolute number (ex: 5) or a percentage of desired gs instances +(ex: 5%). An absolute number is calculated from percentage by rounding up. +Must be bigger than 0. Required field. |
+(Appears on: +FleetAutoscalerSync) +
++
FixedIntervalSync controls the desired behavior of the fixed interval based sync.
+ +Field | +Description |
---|---|
-status
+seconds
-
-GameServerAllocationStatus
-
+int32
|
+ Seconds defines how often we run fleet autoscaling in seconds |
(Appears on: -GameServerAllocationSpec) +FleetAutoscaleReview)
-
CounterAction is an optional action that can be performed on a Counter at allocation.
+FleetAutoscaleRequest defines the request to webhook autoscaler endpoint
-action
+uid
+
+k8s.io/apimachinery/pkg/types.UID
+
+ |
+
+ UID is an identifier for the individual request/response. It allows us to distinguish instances of requests which are +otherwise identical (parallel requests, requests when earlier requests did not modify etc) +The UID is meant to track the round trip (request/response) between the Autoscaler and the WebHook, not the user request. +It is suitable for correlating log entries between the webhook and apiserver, for either auditing or debugging. + |
+
+name
string
|
-(Optional)
- Action must to either “Increment” or “Decrement” the Counter’s Count. Must also define the Amount. +Name is the name of the Fleet being scaled |
-amount
+namespace
-int64
+string
|
-(Optional)
- Amount is the amount to increment or decrement the Count. Must be a positive integer. +Namespace is the namespace associated with the request (if any). |
-capacity
+status
-int64
+
+FleetStatus
+
|
-(Optional)
- Capacity is the amount to update the maximum capacity of the Counter to this number. Min 0, Max int64. +The Fleet’s status values |
(Appears on: -GameServerSelector) +FleetAutoscaleReview)
-
CounterSelector is the filter options for a GameServer based on the count and/or available capacity.
+FleetAutoscaleResponse defines the response of webhook autoscaler endpoint
-minCount
+uid
-int64
+k8s.io/apimachinery/pkg/types.UID
|
-(Optional)
- MinCount is the minimum current value. Defaults to 0. +UID is an identifier for the individual request/response. +This should be copied over from the corresponding FleetAutoscaleRequest. |
-maxCount
+scale
-int64
+bool
|
-(Optional)
- MaxCount is the maximum current value. Defaults to 0, which translates as max(in64). +Set to false if no scaling should occur to the Fleet |
-minAvailable
+replicas
-int64
+int32
|
-(Optional)
- MinAvailable specifies the minimum capacity (current capacity - current count) available on a GameServer. Defaults to 0. +The targeted replica count |
+
FleetAutoscaleReview is passed to the webhook with a populated Request value, +and then returned with a populated Response.
+ +Field | +Description | +
---|---|
-maxAvailable
+request
-int64
+
+FleetAutoscaleRequest
+
+
+ |
++ | +
+response
+
+
+FleetAutoscaleResponse
+
|
-(Optional)
- MaxAvailable specifies the maximum capacity (current capacity - current count) available on a GameServer. Defaults to 0, which translates to max(int64). |
(Appears on: -GameServerAllocation) +FleetAutoscalerSpec)
-
GameServerAllocationSpec is the spec for a GameServerAllocation
+FleetAutoscalerPolicy describes how to scale a fleet
-multiClusterSetting
+type
-
-MultiClusterSetting
+
+FleetAutoscalerPolicyType
|
- MultiClusterPolicySelector if specified, multi-cluster policies are applied. -Otherwise, allocation will happen locally. +Type of autoscaling policy. |
-required
+buffer
-
-GameServerSelector
+
+BufferPolicy
|
- Deprecated: use field Selectors instead. If Selectors is set, this field is ignored. -Required is the GameServer selector from which to choose GameServers from. -Defaults to all GameServers. +(Optional) +Buffer policy config params. Present only if FleetAutoscalerPolicyType = Buffer. |
-preferred
+webhook
-
-[]GameServerSelector
+
+WebhookPolicy
|
- Deprecated: use field Selectors instead. If Selectors is set, this field is ignored.
-Preferred is an ordered list of preferred GameServer selectors
-that are optional to be fulfilled, but will be searched before the Webhook policy config params. Present only if FleetAutoscalerPolicyType = Webhook. |
-priorities
+counter
-
-[]Priority
+
+CounterPolicy
|
(Optional)
- (Alpha, CountsAndLists feature flag) The first Priority on the array of Priorities is the most -important for sorting. The allocator will use the first priority for sorting GameServers by -available Capacity in the Selector set. Acts as a tie-breaker after sorting the game servers -by State and Strategy Packed. Impacts which GameServer is checked first. +[Stage:Alpha] +[FeatureFlag:CountsAndLists] +Counter policy config params. Present only if FleetAutoscalerPolicyType = Counter. |
-selectors
+list
-
-[]GameServerSelector
+
+ListPolicy
|
- Ordered list of GameServer label selectors. -If the first selector is not matched, the selection attempts the second selector, and so on. -This is useful for things like smoke testing of new game servers. -Note: This field can only be set if neither Required or Preferred is set. +(Optional) +[Stage:Alpha] +[FeatureFlag:CountsAndLists] +List policy config params. Present only if FleetAutoscalerPolicyType = List. |
string
alias)+(Appears on: +FleetAutoscalerPolicy) +
++
FleetAutoscalerPolicyType is the policy for autoscaling +for a given Fleet
+ ++(Appears on: +FleetAutoscaler) +
++
FleetAutoscalerSpec is the spec for a Fleet Scaler
+ +
-scheduling
-
-agones.dev/agones/pkg/apis.SchedulingStrategy
-
- |
-
- Scheduling strategy. Defaults to “Packed”. - |
+Field | +Description |
---|---|---|---|
-metadata
+fleetName
-
-MetaPatch
-
+string
|
- MetaPatch is optional custom metadata that is added to the game server at allocation -You can use this to tell the server necessary session data |
||
-counters
+policy
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.CounterAction
+
+FleetAutoscalerPolicy
|
-(Optional)
- (Alpha, CountsAndLists feature flag) Counter actions to perform during allocation. +Autoscaling policy |
||
-lists
+sync
-
-map[string]agones.dev/agones/pkg/apis/allocation/v1.ListAction
+
+FleetAutoscalerSync
|
(Optional)
- (Alpha, CountsAndLists feature flag) List actions to perform during allocation. +Sync defines when FleetAutoscalers runs autoscaling |
string
alias)-(Appears on: -GameServerAllocationStatus) -
--
GameServerAllocationState is the Allocation state
- -(Appears on: -GameServerAllocation) +FleetAutoscaler)
-
GameServerAllocationStatus is the status for an GameServerAllocation resource
+FleetAutoscalerStatus defines the current status of a FleetAutoscaler
-state
+currentReplicas
-
-GameServerAllocationState
-
+int32
|
- GameServerState is the current state of an GameServerAllocation, e.g. Allocated, or UnAllocated +CurrentReplicas is the current number of gameserver replicas +of the fleet managed by this autoscaler, as last seen by the autoscaler |
-gameServerName
+desiredReplicas
-string
+int32
|
+ DesiredReplicas is the desired number of gameserver replicas +of the fleet managed by this autoscaler, as last calculated by the autoscaler |
-ports
+lastScaleTime
-
-[]GameServerStatusPort
+
+Kubernetes meta/v1.Time
|
+(Optional)
+ lastScaleTime is the last time the FleetAutoscaler scaled the attached fleet, |
-address
+ableToScale
-string
+bool
|
+ AbleToScale indicates that we can access the target fleet |
-addresses
+scalingLimited
-
-[]Kubernetes core/v1.NodeAddress
+bool
+
+ |
+
+ ScalingLimited indicates that the calculated scale would be above or below the range +defined by MinReplicas and MaxReplicas, and has thus been capped. + |
+
+(Appears on: +FleetAutoscalerSpec) +
++
FleetAutoscalerSync describes when to sync a fleet
+ +Field | +Description | +
---|---|
+type
+
+
+FleetAutoscalerSyncType
|
+ Type of autoscaling sync. |
-nodeName
+fixedInterval
-string
+
+FixedIntervalSync
+
|
+(Optional)
+ FixedInterval config params. Present only if FleetAutoscalerSyncType = FixedInterval. |
string
alias)+(Appears on: +FleetAutoscalerSync) +
++
FleetAutoscalerSyncType is the sync strategy for a given Fleet
+ ++(Appears on: +FleetAutoscalerPolicy) +
++
ListPolicy controls the desired behavior of the List autoscaler policy.
+ +Field | +Description | +
---|---|
-source
+key
string
|
- If the allocation is from a remote cluster, Source is the endpoint of the remote agones-allocator. -Otherwise, Source is “local” +Key is the name of the List. Required field. |
-metadata
+maxCapacity
-
-GameServerMetadata
-
+int64
|
+ MaxCapacity is the maximum aggregate List total capacity across the fleet. +MaxCapacity must be bigger than both MinCapacity and BufferSize. Required field. |
-counters
+minCapacity
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.CounterStatus
-
+int64
|
+ MinCapacity is the minimum aggregate List total capacity across the fleet. +If zero, it is ignored. +If non zero, it must be smaller than MaxCapacity and bigger than BufferSize. |
-lists
+bufferSize
-
-map[string]agones.dev/agones/pkg/apis/agones/v1.ListStatus
-
+k8s.io/apimachinery/pkg/util/intstr.IntOrString
|
+ BufferSize is the size of a buffer based on the List capacity that is available over the +current aggregate List length in the Fleet (available capacity). It can be specified either +as an absolute value (i.e. 5) or percentage format (i.e. 5%). +Must be bigger than 0. Required field. |
(Appears on: -GameServerAllocationStatus) +FleetAutoscalerPolicy)
-
GameServerMetadata is the metadata from the allocated game server at allocation time
+WebhookPolicy controls the desired behavior of the webhook policy. +It contains the description of the webhook autoscaler service +used to form url which is accessible inside the cluster
Field | Description | -
---|---|
+url
+
+string
+
+ |
+
+(Optional)
+
The Please note that using The scheme must be “https”; the URL must begin with “https://”. +A path is optional, and if present may be any string permissible in +a URL. You may use the path to pass an arbitrary string to the +webhook, for example, a cluster identifier. +Attempting to use a user or basic auth e.g. “user:password@” is not +allowed. Fragments (“#…”) and query parameters (“?…”) are not +allowed, either. + |
+
-labels
+service
-map[string]string
+
+Kubernetes admissionregistration/v1.ServiceReference
+
|
+(Optional)
+
If the webhook is running within the cluster, then you should use |
-annotations
+caBundle
-map[string]string
+[]byte
|
+(Optional)
+
|
-(Appears on: -GameServerAllocationSpec) +
Package v1 is the v1 version of the API.
+Resource Types: + +-
GameServerSelector contains all the filter options for selecting -a GameServer for allocation.
+GameServerAllocationPolicy is the Schema for the gameserverallocationpolicies API
-LabelSelector
-
-
-Kubernetes meta/v1.LabelSelector
-
-
+apiVersion
+string |
+
+
+multicluster.agones.dev/v1
+
|
+||||||
-
-(Members of See: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ +kind
+string
|
+GameServerAllocationPolicy |
||||||
-gameServerState
+metadata
-
-GameServerState
+
+Kubernetes meta/v1.ObjectMeta
|
- GameServerState specifies which State is the filter to be used when attempting to retrieve a GameServer -via Allocation. Defaults to “Ready”. The only other option is “Allocated”, which can be used in conjunction with -label/annotation/player selectors to retrieve an already Allocated GameServer. +Refer to the Kubernetes API documentation for the fields of the +metadata field.
|
||||||
-players
+spec
-
-PlayerSelector
+
+GameServerAllocationPolicySpec
|
-(Optional)
- [Stage:Alpha] -[FeatureFlag:PlayerAllocationFilter] -Players provides a filter on minimum and maximum values for player capacity when retrieving a GameServer -through Allocation. Defaults to no limits. ++ +
|
(Appears on: -GameServerAllocationSpec) +GameServerAllocationPolicySpec)
-
ListAction is an optional action that can be performed on a List at allocation.
+ClusterConnectionInfo defines the connection information for a cluster
-addValues
+clusterName
-[]string
+string
|
-(Optional)
- AddValues appends values to a List’s Values array. Any duplicate values will be ignored. +Optional: the name of the targeted cluster |
-capacity
+allocationEndpoints
-int64
+[]string
|
-(Optional)
- Capacity updates the maximum capacity of the Counter to this number. Min 0, Max 1000. +The endpoints for the allocator service in the targeted cluster. +If the AllocationEndpoints is not set, the allocation happens on local cluster. +If there are multiple endpoints any of the endpoints that can handle allocation request should suffice |
-(Appears on: -GameServerSelector) -
--
ListSelector is the filter options for a GameServer based on List available capacity and/or the -existence of a value in a List.
- -Field | -Description | -
---|---|
-containsValue
+secretName
string
|
-(Optional)
- ContainsValue says to only match GameServers who has this value in the list. Defaults to “”, which is all. +The name of the secret that contains TLS client certificates to connect the allocator server in the targeted cluster |
-minAvailable
+namespace
-int64
+string
|
-(Optional)
- MinAvailable specifies the minimum capacity (current capacity - current count) available on a GameServer. Defaults to 0. +The cluster namespace from which to allocate gameservers |
-maxAvailable
+serverCa
-int64
+[]byte
|
-(Optional)
- MaxAvailable specifies the maximum capacity (current capacity - current count) available on a GameServer. Defaults to 0, which is translated as max(int64). +The PEM encoded server CA, used by the allocator client to authenticate the remote server. |
-(Appears on: -GameServerAllocationSpec) -
--
MetaPatch is the metadata used to patch the GameServer metadata on allocation
+ConnectionInfoIterator an iterator on ClusterConnectionInfo
-labels
+currPriority
-map[string]string
+int
|
+ currPriority Current priority index from the orderedPriorities |
-annotations
+orderedPriorities
-map[string]string
+[]int32
|
+ orderedPriorities list of ordered priorities |
-(Appears on: -GameServerAllocationSpec) -
--
MultiClusterSetting specifies settings for multi-cluster allocation.
- -Field | -Description | -
---|---|
-enabled
+priorityToCluster
-bool
+map[int32]map[string][]*agones.dev/agones/pkg/apis/multicluster/v1.GameServerAllocationPolicy
|
+ priorityToCluster Map of priority to cluster-policies map |
-policySelector
+clusterBlackList
-
-Kubernetes meta/v1.LabelSelector
-
+map[string]bool
|
+ clusterBlackList the cluster blacklist for the clusters that has already returned |
(Appears on: -GameServerSelector) +GameServerAllocationPolicy)
-
PlayerSelector is the filter options for a GameServer based on player counts
+GameServerAllocationPolicySpec defines the desired state of GameServerAllocationPolicy
-minAvailable
+priority
-int64
+int32
|
@@ -8710,9 +8746,21 @@ PlayerSelector |
-maxAvailable
+weight
-int64
+int
+
+ |
++ | +
+connectionInfo
+
+
+ClusterConnectionInfo
+
|
diff --git a/site/content/en/docs/Reference/fleet.md b/site/content/en/docs/Reference/fleet.md index 87c0cd9601..4d7e095723 100644 --- a/site/content/en/docs/Reference/fleet.md +++ b/site/content/en/docs/Reference/fleet.md @@ -57,14 +57,14 @@ spec: # # [Stage:Alpha] # [FeatureFlag:CountsAndLists] - # Which gameservers in the Fleet are most important to keep around - impacts scale down logic. + # Which `GameServers` in the Fleet are most important to keep around - impacts scale down logic. # priorities: # - type: Counter # Sort by a “Counter” - # key: player # The name of the Counter. No impact if no GameServer found. - # order: Descending # Default is "Ascending" so smaller capacity will be removed first on down scaling. + # key: rooms # The name of the Counter. No impact if no GameServer found. + # order: Descending # Default is "Ascending" so smaller available capacity will be removed first on down scaling. # - type: List # Sort by a “List” - # key: room # The name of the List. No impact if no GameServer found. - # order: Ascending # Default is "Ascending" so smaller capacity will be removed first on down scaling. + # key: players # The name of the List. No impact if no GameServer found. + # order: Ascending # Default is "Ascending" so smaller available capacity will be removed first on down scaling. # template: # GameServer metadata @@ -129,10 +129,11 @@ The `spec` field is the actual `Fleet` specification and it is composed as follo - `Fleet's Scheduling Strategy`: The GameServers associated with the GameServerSet are sorted based on either `Packed` or `Distributed` strategy. - `Packed`: Agones maximizes resource utilization by trying to populate nodes that are already in use before allocating GameServers to other nodes. - `Distributed`: Agones employs this strategy to spread out GameServer allocations, ensuring an even distribution of GameServers across the available nodes. -- `priorities`: (Alpha, requires `CountsAndLists` feature flag): Defines which gameservers in the Fleet are most important to keep around - impacts scale down logic. +- `priorities`: (Alpha, requires `CountsAndLists` feature flag): Defines which `GameServers` in the Fleet are most + important to keep around - impacts scale down logic. - `type`: Sort by a "Counter" or a "List". - `key`: The name of the Counter or List. If not found on the GameServer, has no impact. - - `order`: Order: Sort by “Ascending” or “Descending”. “Descending” a bigger Capacity is preferred. “Ascending” would be smaller Capacity is preferred. + - `order`: Order: Sort by “Ascending” or “Descending”. “Descending” a bigger available capacity is preferred. “Ascending” would be smaller available capacity is preferred. - `template` a full `GameServer` configuration template. See the [GameServer]({{< relref "gameserver.md" >}}) reference for all available fields. diff --git a/site/content/en/docs/Reference/fleetautoscaler.md b/site/content/en/docs/Reference/fleetautoscaler.md index 8bec87e42e..d0e06d82a7 100644 --- a/site/content/en/docs/Reference/fleetautoscaler.md +++ b/site/content/en/docs/Reference/fleetautoscaler.md @@ -57,7 +57,7 @@ spec: ## Counter and List Autoscaling A Counter based autoscaler can be used to autoscale `GameServers` based on a Count and Capacity set on each of the -GameServers in a Fleet to ensure there is always a buffer of total capacity available. +GameServers in a Fleet to ensure there is always a buffer of available capacity available. For example, if you have a game server that can support 10 rooms, and you want to ensure that there are always at least 5 rooms available, you could use a counter-based autoscaler with a buffer size of 5. The autoscaler would then scale the @@ -77,7 +77,7 @@ spec: type: Counter # Counter based autoscaling counter: # Key is the name of the Counter. Required field. - key: players + key: rooms # BufferSize is the size of a buffer of counted items that are available in the Fleet (available capacity). # Value can be an absolute number (ex: 5) or a percentage of the Counter available capacity (ex: 5%). # An absolute number is calculated from percentage by rounding up. Must be bigger than 0. Required field. @@ -92,7 +92,7 @@ spec: ``` A List based autoscaler can be used to autoscale `GameServers` based on the List length and Capacity set on each of the -GameServers in a Fleet to ensure there is always a buffer of total capacity available. +GameServers in a Fleet to ensure there is always a buffer of available capacity available. For example, if you have a game server that can support 10 players, and you want to ensure that there are always room for at least 5 players across `GameServers` in a `Fleet`, you could use a list-based autoscaler with a buffer size @@ -112,7 +112,7 @@ spec: type: List # List based autoscaling. list: # Key is the name of the List. Required field. - key: rooms + key: players # BufferSize is the size of a buffer based on the List capacity that is available over the current # aggregate List length in the Fleet (available capacity). # It can be specified either as an absolute value (i.e. 5) or percentage format (i.e. 5%). diff --git a/site/content/en/docs/Reference/gameserverallocation.md b/site/content/en/docs/Reference/gameserverallocation.md index fa037e35a2..173b69e6c0 100644 --- a/site/content/en/docs/Reference/gameserverallocation.md +++ b/site/content/en/docs/Reference/gameserverallocation.md @@ -80,31 +80,37 @@ spec: mode: deathmatch annotations: map: garden22 - # [Stage:Alpha] - # [FeatureFlag:CountsAndLists] - # The first Priority on the array of Priorities is the most important for sorting. The allocator will - # use the first priority for sorting GameServers by available Capacity in the Selector set. Acts as a - # tie-breaker after sorting the game servers by State and Strategy Packed. Impacts which GameServer - # is checked first. Optional. - # priorities: - # - type: List # Whether a Counter or a List. - # key: rooms # The name of the Counter or List. - # order: Ascending # "Ascending" lists smaller available capacity first. - # [Stage:Alpha] - # [FeatureFlag:CountsAndLists] - # Counter actions to perform during allocation. Optional. - # counters: - # rooms: - # action: increment # Either "Increment" or "Decrement" the Counter’s Count. - # amount: 1 # Amount is the amount to increment or decrement the Count. Must be a positive integer. - # capacity: 5 # Amount to update the maximum capacity of the Counter to this number. Min 0, Max int64. - # List actions to perform during allocation. Optional. - # lists: - # players: - # addValues: # appends values to a List’s Values array. Any duplicate values will be ignored - # - x7un - # - 8inz - # capacity: 40 # Updates the maximum capacity of the Counter to this number. Min 0, Max 1000. + # [Stage: Alpha] + # [FeatureFlag:CountsAndLists] + # `Priorities` configuration alters the order in which `GameServers` are searched for matches to the configured `selectors`. + # + # Priority of sorting is in descending importance. I.e. The position 0 `priority` entry is checked first. + # + # For `Packed` strategy sorting, this priority list will be the tie-breaker within the least utilised infrastructure, to ensure optimal + # infrastructure usage while also allowing some custom prioritisation of `GameServers`. + # + # For `Distributed` strategy sorting, the entire selection of `GameServers` will be sorted by this priority list to provide the + # order that `GameServers` will be allocated by. + # Optional. + # priorities: + # - type: Counter # Whether a Counter or a List. + # key: rooms # The name of the Counter or List. + # order: Ascending # "Ascending" lists smaller available capacity first. + # [Stage: Alpha] + # [FeatureFlag:CountsAndLists] + # Counter actions to perform during allocation. Optional. + # counters: + # rooms: + # action: Increment # Either "Increment" or "Decrement" the Counter’s Count. + # amount: 1 # Amount is the amount to increment or decrement the Count. Must be a positive integer. + # capacity: 5 # Amount to update the maximum capacity of the Counter to this number. Min 0, Max int64. + # List actions to perform during allocation. Optional. + # lists: + # players: + # addValues: # appends values to a List’s Values array. Any duplicate values will be ignored + # - x7un + # - 8inz + # capacity: 40 # Updates the maximum capacity of the Counter to this number. Min 0, Max 1000. {{< /tab >}} {{< tab header="required & preferred (deprecated)" lang="yaml" >}} apiVersion: "allocation.agones.dev/v1" @@ -199,8 +205,7 @@ The `spec` field is the actual `GameServerAllocation` specification, and it is c cluster. See [Scheduling and Autoscaling]({{< ref "/docs/Advanced/scheduling-and-autoscaling.md" >}}) for more details. - `metadata` is an optional list of custom labels and/or annotations that will be used to patch the game server's metadata in the moment of allocation. This can be used to tell the server necessary session data -- `priorities` (Alpha, requires `CountsAndLists` feature flag) manages counters and lists for game servers, setting limits on - room counts and player inclusion/exclusion. +- `priorities` (Alpha, requires `CountsAndLists` feature flag) alters the priority by which game `GameServers` are allocated by available capacity. - `counters` (Alpha, "CountsAndLists" feature flag) Counter actions to perform during allocation. - `lists` (Alpha, "CountsAndLists" feature flag) List actions to perform during allocation. |