Skip to content

Commit

Permalink
Document Distributed pod scheduling. (#3662)
Browse files Browse the repository at this point in the history
It's come up a few times, where people use `Distributed` and it doesn't
distribute, because their scheduler on their custom cluster isn't
spreading the Pods as they would expect.

Adding a note as to why that is, so people know why, and how to mitigate
it.

Closes #2856
  • Loading branch information
markmandel authored Feb 20, 2024
1 parent 793a998 commit 24e7f83
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions site/content/en/docs/Advanced/scheduling-and-autoscaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,16 @@ on bare metal, and the cluster size rarely changes, if at all.
This attempts to distribute the load across the entire cluster as much as possible, to take advantage of the static
size of the cluster.

{{% alert title="Note" color="info" %}}
`Distributed` scheduling does not set
a [`PodAffinity`](https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#inter-pod-affinity-and-anti-affinity-beta-feature)
on `GameServer` `Pods`, and instead assumes that the default scheduler for your cluster will distribute the
`GameServer` `Pods` across the cluster by default.

If your default scheduler does not do this, you may wish to set your own `PodAffinity` to spread the load across the
cluster, or update the default scheduler to provide this functionality.
{{% /alert %}}

This affects Allocation Scheduling, Pod Scheduling and Fleet Scale Down Scheduling.

#### Cluster Autoscaler
Expand Down

0 comments on commit 24e7f83

Please sign in to comment.