Class RedisBackedDistributor

java.lang.Object
org.openqa.selenium.grid.distributor.Distributor
org.openqa.selenium.grid.distributor.redis.RedisBackedDistributor
All Implemented Interfaces:
Closeable, AutoCloseable, Predicate<HttpRequest>, HttpHandler, Routable, HasReadyState

public class RedisBackedDistributor extends Distributor implements Closeable
Stateless, horizontally-scalable implementation of Distributor backed by Redis.

All grid model state (node registry, slot reservations, health counts) is stored in Redis via RedisBackedNodeRegistry and RedisBackedGridModel. Multiple replicas of this class can safely run concurrently against the same Redis instance; slot reservation uses atomic SET NX to prevent double-allocation.

Configure via:

[distributor]
implementation = "org.openqa.selenium.grid.distributor.redis.RedisBackedDistributor"
redis-url = "redis://redis-service:6379"