pub enum SchedulingStrategy {
Packed,
Distributed,
}
Expand description
the strategy that a Fleet & GameServers will use when scheduling GameServers’ Pods across a cluster. In future versions, this will also impact Fleet scale down, and Pod Scheduling.
Variants
Packed
Prioritise allocating GameServers on Nodes with the most Allocated, and then Ready GameServers to bin pack as many Allocated GameServers on a single node. This is most useful for dynamic Kubernetes clusters - such as on Cloud Providers.
Distributed
prioritise allocating GameServers on Nodes with the least Allocated, and then Ready GameServers to distribute Allocated GameServers across many nodes. This is most useful for statically sized Kubernetes clusters - such as on physical hardware.
Trait Implementations
sourceimpl Clone for SchedulingStrategy
impl Clone for SchedulingStrategy
sourcefn clone(&self) -> SchedulingStrategy
fn clone(&self) -> SchedulingStrategy
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SchedulingStrategy
impl Debug for SchedulingStrategy
sourceimpl<'de> Deserialize<'de> for SchedulingStrategy
impl<'de> Deserialize<'de> for SchedulingStrategy
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for SchedulingStrategy
impl JsonSchema for SchedulingStrategy
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl Serialize for SchedulingStrategy
impl Serialize for SchedulingStrategy
Auto Trait Implementations
impl RefUnwindSafe for SchedulingStrategy
impl Send for SchedulingStrategy
impl Sync for SchedulingStrategy
impl Unpin for SchedulingStrategy
impl UnwindSafe for SchedulingStrategy
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FromRef<T> for Twhere
T: Clone,
impl<T> FromRef<T> for Twhere
T: Clone,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request