Interface ReplicationController

    • Method Detail

      • create

        @Contract("null -> new")
        static ReplicationController create​(uk.co.ractf.polaris.api.deployment.Replication replication)
      • getScaleAmount

        int getScaleAmount​(java.util.List<uk.co.ractf.polaris.api.instance.Instance> instances,
                           ClusterState clusterState)
        Calculate how many instances need scheduling or descheduling based on the current state of the cluster.
        Parameters:
        instances - the current instance list
        clusterState - the cluster state
        Returns:
        the amount to scale by