concept Dask cluster in category dask

appears as: Dask cluster
Data Science with Python and Dask

This is an excerpt from Manning's book Data Science with Python and Dask.

For best performance, a Dask cluster should use a distributed filesystem like S3 or HDFS to back its data storage. To illustrate why this is important, consider the following counterexample, where a file is stored on only one machine. For the sake of our example, the data is stored on server A. When server A is directed to work on partition 26, it can read the partition directly off its hard disk. However, this poses a problem for server B. Before server B can work on partition 8, server A will need to send partition 8 to server B. Any additional partitions that server B is to work on will also need to be sent over to server B before the work can begin. This will cause a considerable slowdown in the computations because operations involving networking (even 10 Gb fiber) are slower than direct reads off of locally attached disks.

That said, it’s still worth seeing firsthand how to set up, maintain, and monitor a Dask cluster. In this chapter, we’ll walk through how to set up a cluster using Amazon AWS that you can use as a private sandbox. AWS was chosen for this exercise because it is a very popular cloud computing platform with a supportive community, lots of learning resources, and a generous account tier that allows you to experiment with AWS free of charge. Dask is just as suited to run on other cloud computing platforms such as Microsoft Azure or Google Cloud Platform, and, of course, can also be run on private server farms. While this exercise will also provide some good hands-on experience with elements of AWS and Docker, the focus will primarily be on Dask. We’ll cover only the essentials of AWS and Docker that you need to know to get the cluster up and running. We’ll also look at a few general troubleshooting steps you can take if you run into issues with AWS and Docker. However, they are both vast subjects in their own right, and it wouldn’t be useful to cover them in depth here.