Description
Load balancing is a simple process of the optimal assignment of jobs to the nodes where these jobs to be executed. As almost all kernel level functionality in GridGain the load balancing is designed as load balancing SPI (Service Provider Interface). It consists of the public SPI and several implementations. Number of pre-built implementations are shipped with GridGain and user can develop one easily.
This load balancing is usually referred as early load balancing as it happens early in the process of the grid task execution during mapping phase of MapReduce process. Note that late load balancing happens during collision resolution and is handled by collision SPI.
For more information see load balancing at useful concepts.
Load Balancing SPI
Load balancing SPI provides the next best balanced node for job execution. This SPI is used either implicitly or explicitly whenever a job gets mapped to a node during GridTask.map(List, Object) invocation:
