Community Articles

Find and share helpful community-sourced technical articles.
avatar
Cloudera Employee

Migrating or hosting data workloads to the cloud brings massive scalability, but without a proactive approach to cost optimisation, monthly bills can quickly spiral. Optimising your underlying cloud infrastructure, virtual machines, storage volumes, and billing models that support Cloudera Data Platform (CDP) is your first line of defense against cloud waste and a critical step toward operational excellence.

Beyond cloud infrastructure cost optimisation, Cloudera Observability plays a crucial role in true cost and performance optimisation by providing deep visibility into query efficiency, job executions, and resource consumption, allowing you to identify bottlenecks, fine-tune auto-scaling, and ensure every compute cycle is utilised efficiently.

Cloud Infrastructure Optimisation

Your infrastructure strategy sets the foundation for efficiency. Focus on these three pillars to keep costs under control:

Maximise Commercial Discount Models: Avoid running 24/7 production workloads on pure on-demand pricing. For persistent components in Production like datalake nodes, datahub nodes and for data services liftie nodes, shared services nodes and core production nodes, commit to 1-year or 3-year Reserved Instances (RIs) or Savings Plans, aiming for >85% coverage.  

Recommended Practice

  • Production Environments: Leverage Reservations and Savings Plans. Aim for >85% of compute coverage on instance families running round-the-clock.
  • Non-Production Environments: Rely on strict Scheduling Auto shutdowns in non business hours & Periodic Right-Sizing.

Clean Up Cloud Hygiene Issues: A common FinOps trap for Cloudera customers is the silent accumulation of orphaned cloud infrastructure. When a CDP cluster is terminated via the Management Console, the underlying block storage (such as AWS EBS, Azure Managed Disks, or GCP Persistent Disks) can occasionally be left behind. This risk multiplies if a cluster is "force deleted", an action that bypasses the graceful teardown sequence and strands the underlying cloud infrastructure, requiring the need for manual cleanup.

Because cloud providers continue to charge for storage whether a virtual machine is attached or not, these orphaned resources act as a silent budget drain.

Recommendations 

  • Periodic Audits: Conduct regular assessments of your cloud environment to hunt down unused or leftover resources.

  • Automated Cleanup: Implement cloud-native scripts to continuously scan for and terminate unattached volumes.

  • Lifecycle Policies: Enforce strict retention policies to automatically delete aging or obsolete data snapshots.

Adopt Modern Compute Architectures: Where supported, migrate to ARM-based instances (like AWS Graviton or Azure ARM). These modern architectures yield significant price-to-performance improvements, providing direct cost reductions and performance boosts.

Cloudera Data Platform  supports AWS Graviton processors (ARM-based EC2 instances) across services like Cloudera Data Engineering (CDE) and Cloudera Operational Database (COD), delivering 15% to 20% infrastructure cost savings.

AWS Graviton support for Datahub data engineering template is currently in technical preview.  For Azure, ARM-based compatibility is limited only to Impala Virtual Warehouses under Cloudera Data Warehouse (CDW).

Fine-Tuning  Data Services

How you configure CDP’s internal data services dictates how efficiently your cloud resources are consumed. Fine-tuning these services ensures you aren't over-provisioning compute.

Data Lake & Warehousing

  • Right-Size Data Lake Topologies: Use Enterprise Duty Data Lakes for production/staging requiring High Availability. For Dev/Test environments, deploy Light Duty Data Lakes with fewer nodes. For infrequent & adhoc data processing jobs , use entirely ephemeral environments.
  • Optimise Cloudera Data Warehouse (CDW): Don't be too conservative with auto-scaling. Reduce auto-suspend timeouts from 60 minutes to 15 minutes and lower trigger shutdown delays for Impala coordinators to free resources faster. Tune auto suspend timeout and shutdown delays parameter value as per business levers. 

Auto-suspend timeout value in the virtual warehouse will shut down the compute-heavy executor nodes when idle & immediately start scaling up compute nodes when a query is queued..

Trigger shutdown delay: This parameter controls the Coordinator. It defines how long the Impala Coordinator stays alive after the executors have been suspended.

Factors to Consider When Tuning

  • If your business users can tolerate cold start and can wait for execution of query or dashboard, keep the Auto shutdown minimum
  • If an analyst typically spends a longer time to read the query results and then runs a follow-up query, set the timeout longer to accommodate human reading time.
  • Batch Processing of queries, when queries are being executed in bulk & batch and it's known that no more queries will arrive for a certain duration, keep the timeout very low to kill the expensive compute.
  • If you have heavy BI tool usage, extend the "Trigger Shutdown Delay" so the Coordinator stays alive longer.

Data Engineering & Machine Learning

  • Fine-Tune Cloudera Data Engineering (CDE): Actively use suspend/resume capabilities tied to your orchestration scheduler. For temporary testing, destroy clusters completely via code rather than letting them sit idle. Leverage Spot Instances for CDE to reduce compute costs by up to 90%.  Suspend & Resume CDE .                                                               

In AWS Data engineering cluster, all infrastructure & compute node groups will be shutdown except RDS. However AWS does not natively support scaling the entire cluster down to zero,  AWS will charge a baseline hourly rate for the EKS control plane. Where as in Azure, all node groups will be scaled to "0" except DB instance, Azure Kubernetes Service (AKS) allows you to completely stop the cluster, dropping those compute charges to zero

  • Right-Sizing & Scheduling Cloudera Machine Learning (CML): Audit CPU/GPU node groups; if utilisation stays below 40%, resize to smaller instance types. Enforce business-hours scheduling in non-production environments to avoid overnight waste. Use workbench suspend and resume capabilities to automate the scheduling of lower environments of workbench. Adjust and tune the GPU and CPU node group Auto-scale ranges, setting the minimum range to zero (where supported) to eliminate idle compute costs, and capping the maximum range based on your cloud budget and quota limits.

Data-Driven Optimisation via Cloudera Observability

Make data-driven sizing decisions based on actual usage rather than guesswork. 

Cloudera Observability acts as a "single pane of glass" for financial governance and technical optimisation, bridging the gap between engineering efficiency and financial accountability.

 Cloudera Observability monitoring capabilities

  • "Busyness" Monitor: Utilise the Busyness percentage metric. A high busyness value indicates a cluster is consistently utilised, whereas low busyness suggests the cluster is over-provisioned. Periodically review these charts to decide whether to tune for scale up or down your compute resources.  Monitor Cluster Busyness Using Cloudera Observability.
  • Live Query Monitoring: Instead of waiting for a query to finish to analyse its performance, monitor live running queries to catch bottlenecks (such as wait times, disk spillage, or data skew) as they happen. Real-Time Monitoring.
  • Analyse Historical Data: Leverage historical reports to track CPU, memory, and Network I/O patterns over time to detect hotspots and capacity trends. Infrastructure Monitoring, Service Monitoring, Engine & Cluster Performance. 

Storage & Data Layout Optimisation

Reduce storage costs and improve performance by aligning data with storage tiers.

  • Implement Tiering: Use "Hot vs. Cold" table analysis to identify rarely accessed data. Move cold data to cheaper storage tiers (e.g., S3 Standard-IA or Archive) to significantly lower long-term storage expenses.
  • Cleanup Metadata Bloat: Use observability insights to identify small files and over-partitioned tables that cause NameNode stress. Consolidating these small files reduces metadata overhead and speeds up query execution. Storage & Table Analysis.

Hive Metastore & Query Analysis

Improve system stability and reclaim resources from inefficient usage patterns.

  • Metastore Schema Audit: Visualise your Metastore footprint to detect bloated schemas that increase memory and CPU demand.  Metastore Analysis 
  • Query-Level Analysis: Use the resource efficiency analysis widget to identify "heavy hitters" , the top users, queries, and resource pools consuming excessive CPU and memory. Once identified, you can apply tuning recommendations or kill rogue processes consuming capacity before they impact other users.

Financial Governance

  • Chargeback & Cost Allocation: Implement cost allocation per department or team. This allows you to measure provisioned resources against actual consumed resources, helping business units understand their financial impact. Financial Governance Cost Center allocation, Budgeting 
  • Automated Guardrails (AutoActions): Configure AutoActions to trigger alerts for query failures or sudden resource over utilisation. Setting up budget controls and proactive alerts across environments ensures you can forecast capacity needs before the monthly bill arrives. Alerting & Auto Actions.

Conclusion

Optimising Infrastructure Cost is a continuous journey. By combining smart infrastructure choices, service-specific fine-tuning, and the deep visibility offered by Cloudera Observability, organisations can eliminate cloud waste and significantly improve price-to-performance. These practices don't just save money but build a more resilient, performant, and scalable data platform for the future.

61 Views