1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| def main(): config.set({ "distributed.worker.memory.target": 0.6, "distributed.worker.memory.spill": 0.7, "distributed.worker.memory.pause": 0.8, "distributed.worker.memory.terminate": 0.95, }) cluster = LocalCluster(n_workers=1, threads_per_worker=3, memory_limit='6GB')
client = Client(cluster)
print(client)
|