concept scheduler in category dask

appears as: scheduler, schedulers, scheduler
Data Science with Python and Dask

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

The other interesting pieces of information about the DataFrame’s metadata give us insight into how Dask’s scheduler is deciding to break up the work of processing this file. The npartitions value shows how many partitions the DataFrame is split into. Since the 2017 file is slightly over 2 GB in size, at 33 partitions, each partition is roughly 64 MB in size. That means that instead of loading the entire file into RAM all at once, each Dask worker thread will work on processing the file one 64 MB chunk at a time.

Figure 11.1 shows that we’ve arrived at the final part of our workflow: deployment and monitoring. Although it’s always good to be planning ahead when designing a solution, it’s quite rare for the final version to closely represent how it was originally envisioned. This is why deployment and monitoring have been put last in our workflow. Once you have a good idea of what data is necessary to solve a problem, the volume of that data, and how quickly you or your applications must provide an answer to the problem, you can begin to plan out what resources will be needed to host your final solution. These considerations are typically settled during prototyping of the solution. Fortunately, Dask is intended to make the transition from a prototype on a laptop to a full-scale application on a cluster as seamless as possible. In fact, whether the scheduler is running in local mode or cluster mode is transparent to everything else. This means that any Dask code you write—and by association all the code we’ve covered in the past 10 chapters—will run both on your laptop and on any size cluster without modifications.