Class WorkloadScheduling

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)",
               date="2022-09-11T03:06:35.140Z")
    @Stability(Stable)
    public class WorkloadScheduling
    extends PodScheduling
    Controls the pod scheduling strategy of this workload.

    It offers some additional API's on top of the core pod scheduling.

    • Constructor Detail

      • WorkloadScheduling

        protected WorkloadScheduling​(software.amazon.jsii.JsiiObjectRef objRef)
      • WorkloadScheduling

        protected WorkloadScheduling​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • WorkloadScheduling

        @Stability(Stable)
        public WorkloadScheduling​(@NotNull
                                  AbstractPod instance)
        Parameters:
        instance - This parameter is required.
    • Method Detail

      • spread

        @Stability(Stable)
        public void spread​(@Nullable
                           WorkloadSchedulingSpreadOptions options)
        Spread the pods in this workload by the topology key.

        A spread is a separation of the pod from itself and is used to balance out pod replicas across a given topology.

        Parameters:
        options -
      • spread

        @Stability(Stable)
        public void spread()
        Spread the pods in this workload by the topology key.

        A spread is a separation of the pod from itself and is used to balance out pod replicas across a given topology.