All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kairosdb.rollup.BalancingAlgorithm Maven / Gradle / Ivy

Go to download

KairosDB is a fast distributed scalable time series abstraction on top of Cassandra.

There is a newer version: 1.2.28
Show newest version
package org.kairosdb.rollup;

import java.util.Map;
import java.util.Set;

public interface BalancingAlgorithm {

    /**
     * Returns balanced server assignments.
     *
     * @param hosts  list of hosts
     * @param scores mapping between task id and scores
     * @return map of task id to host assigned
     */
    Map rebalance(Set hosts, Map scores);

    /**
     * Returns an assignment mapping of task id to hostname for unassigned tasks.
     */
    Map balance(Set hosts, Map currentAssignments, Map scores);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy