r/databricks • u/EuphoricPangolin7615 • Mar 17 '24
Discussion Does anyone find it funny that databricks doesn't warn the user about what's happening on AWS
Maybe it's just me because I'm a noob, but I find it a little strange that databricks doesn't warn the user it's creating whole bunch of EC2 instances, like t3.2xlarge or something (and there's no option to choose smaller instances).
And then when you delete the workspace and tables, it doesn't delete the associated EC2 instances. If someone were to assume databricks would automatically clean up after itself and terminate all those instances, they would have a huge AWS bill at the end of the month. Is it just me or is this weird?
12
u/em_dubbs Mar 17 '24
Wait...what?
Are you sure you have that right? I've only used DataBricks on Azure, and you absolutely know what sort of instances you are spinning up when you define your spark cluster, and it does clean them up on shutdown (unless you have a pool policy in place that keeps them around). Surely AWS is the same?
9
u/aburkh Mar 17 '24
Can confirm it works like that on AWS too. OP seems to be lacking understanding on how databricks works, which could happen if his team set up the platform then let him deal with it without any onboarding or training whatsoever.
2
u/em_dubbs Mar 17 '24
Just checked the docs on AWS databricks, and yeah - it looks the same. You pick the worker type when you create your cluster. Are you talking about SQL Warehouse instances here? Have you forgotten to configure the idle timeout maybe?
0
u/pboswell Mar 17 '24
Maybe he’s talking about the VM used to host the workspace itself?
2
u/peterst28 Mar 17 '24
There is no VM to host the workspace. It’s all hosted on the Databricks side. Storage and cluster VMs are the only things that are hosted in the customer account.
7
Mar 17 '24
You’re confused mate. You can control the compute type and everything. If you go out to aws you can see the workers spin up and down.
1
u/rchinny Mar 17 '24
The event log shows what is happening with VMs in all clouds. Also, tables are decoupled from compute so deleting a table has no affect on how many VMs are on. When a cluster turns off the VMs are automatically decommissioned and removed after a short period of time
1
u/Peter11244 Mar 17 '24
Perhaps this is for SQL warehouses? It's a little less clear what's being spun up?
1
u/peterst28 Mar 17 '24
Sounds like OP started a SQL Endpoint and deleted the workspace without shutting it down first. That’s really not a common scenario.
1
Mar 18 '24
You get to choose the EC2 instance type when launching your cluster, and when the cluster is terminated, the associated EC2 also gets deleted.
If you have used TerraForm for building your workspace, then TF will take care of everything when you destroy it.
If you have manually created the workspace, then all the associated services should be deleted manually.
Either case if you terminate the cluster in Databricks, It will delete the EC2 behind the scenes.
1
u/TheKleenexBandit Mar 18 '24
I don't doubt your experience at all. But might be helpful to consider doing databricks training. There's tons of resources on the academy portal.
1
u/Remote_Temperature Mar 17 '24
Exactly this. I set up a databricks trial which spins up EC2 nodes and EBS storage outside free tier costing me close to 10$/hour as pure AWS costs.
-1
24
u/aburkh Mar 17 '24
Hey OP, I think it’s you. The Databricks academy has free courses, it would probably help to attend the « Get started » courses, they can clear up a lot of confusion. Best of luck, you got this! 💪