Class LocalCluster

Create local Scheduler and Workers

Declaration

class LocalCluster(SpecCluster)
source link

Documentation

This creates a "cluster" of a scheduler and workers running on the local
machine.

Attributes

Examples

>>> cluster = LocalCluster()  # Create a local cluster with as many workers as cores  # doctest: +SKIP
>>> cluster  # doctest: +SKIP
LocalCluster("127.0.0.1:8786", workers=8, threads=8)

>>> c = Client(cluster)  # connect to local cluster  # doctest: +SKIP

Scale the cluster to three workers

>>> cluster.scale(3)  # doctest: +SKIP

Pass extra keyword arguments to Bokeh

>>> LocalCluster(service_kwargs={'dashboard': {'prefix': '/foo'}})  # doctest: +SKIP

Methods

Inherited methods

Reexports