Coiled can often save money for an organization running Dask. This article goes through the most common ways in which we see that happen.
We start and end with the big abstract points of “people are expensive” and “you can move faster” and fill in the middle with lots of technical details.
First and foremost, running Dask in the cloud takes effort by smart people. Smart people are expensive. We often see data science groups spending half of an FTE maintaining the cloud environment where Dask is run. This includes activities like the following:
Half-an-FTE often costs between $50k and $150k/year depending on their seniority. Allowing this person to go back to their day job is, often, the largest cost savings for groups just getting started.
People leave things on, either through negligence (whoops! I didn’t realize that I left this notebook open) through things slipping through the cracks (hrm, I definitely shut this down, but it looks like the signal never made it to the cloud manager) or through ignorance (what do you mean I had to clean up network resources as well as instances? We get charged for those separately?)
Coiled tracks everything and provides a zero-cost default experience, allowing people to rest easier. If, somehow, something sneaks through, our pagers go off, not yours.
This changes the way we work. As Coiled users we often don’t really care about being diligent shutting down clusters. We know that the automated systems will detect idleness and clean them up.
Instances that can disappear are cheaper than instances that can’t, often by a factor of 2-3x. By leveraging spot instances we can drastically reduce costs. However, using Spot is hard, especially when you need something to work. Coiled allows the following policies:
1. Prefer spot, but use on-demand if no spot instances are available
2. As spot machines are reclaimed
a. Give Dask workers notice so that they can gracefully terminate, allowing smooth operation within Dask and no lost work
b. Backfill these slots with new on-demand instances
3. As spot instances become available again (work in progress)
a. Gracefully retire on-demand instances
b. Backfill with spot
Doing this dance well is hard, but it allows us to substitute an expensive resource with a cheap one with little degradation in experience. Cost savings here can be ~ 50%
ARM chips are fast and cheap, often resulting in 20-30% cost reductions. Coiled makes it easy to switch between instance types and try ARM on your existing workloads. Coiled also makes it easy to substitute out x86 Python packages for ARM packages without any effort in the common case.
This effort is new and exciting. We encourage users engaged with ARM chips to get in touch.
Coiled tracks everything that is going on and gives aggregated views to cost owners in an organization. This allows organizations to make informed decisions and focus their energies appropriately.
Transparency takes a few forms. You can view the cost of currently running clusters, as well as the cost of historical computations both started by yourself, and by others in your team. You can also dive in to individual clusters and see what operations and even what lines of code accounted for the largest part of the cost.
You can also view aggregated cost information by user and by time to help identify opportunities for future improvement and cost assignment.
We also make it easy to bound the amount that you spend with us both through sensible tagging of cloud resources, and through our own limiting controls.
Each resource that Coiled creates will be tagged with owner: coiled, allowing you to see all the resources created by your account. Alternatively, you can set custom tags for each cluster created so you have better visibility into cost breakdown. Refer to the section about Tags in the documentation.
This allows you to more easily set alerts in your cloud provider account.
When you set alerts, AWS or GCP will send you an email notification when you have reached a certain threshold, so you can know how much you have spent so far. You can follow the official documentation on how to set up billing alerts:
Additionally Coiled can help you bound how much you or your teammates spend with us. Coiled offers the following bounds:
These allow users to bound their overall spend, as well as enforce bounds on individual teammates. See our documentation to learn more.
Coiled is maintained by a professional team and monitored 24x7. The risk associated with such a platform is lower than a DIY approach. This team understands cloud infrastructure, Dask, and the underlying computational libraries well enough to provide a more consistent and predictable experience for organizations that rely on this technology stack for business-critical workloads.
There are many other small configuration choices that we make in our cloud architecture that each have non-trivial effects. These compound to significant savings. We’ll list a few below:
These choices are technical and in the weeds, but can each have a strongly positive impact on overall costs.
You’ve opted to use the cloud because you value moving quickly.
The median Coiled user spends low thousands of dollars per month. While real money, this isn’t that big of a deal related to the value of moving faster. Coiled empowers teams to shave several months off of their timelines. When compared to the costs of monthly burn and waiting to build something internally, the costs here are often trivial in relation.
Coiled is free to try, up to about $500/month of managed cloud usage. Many of our customers pay only tens of thousands of dollars per year, far less than they would pay trying to build such a system themselves. Coiled provides a cost-constrained experience that also delights data science and data engineering users, making them more productive with their time.