<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kube-dAI on Medium]]></title>
        <description><![CDATA[Stories by Kube-dAI on Medium]]></description>
        <link>https://medium.com/@kubedai24?source=rss-1782b80120c9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9sQoLrLH3-k_fBTDVad5PQ.jpeg</url>
            <title>Stories by Kube-dAI on Medium</title>
            <link>https://medium.com/@kubedai24?source=rss-1782b80120c9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:27:13 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kubedai24/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[3x Boost with Spark RAPIDS — Why GPUs Are the Future of Data Processing]]></title>
            <link>https://medium.com/@kubedai24/3x-boost-with-spark-rapids-why-gpus-are-the-future-of-data-processing-cf7f3aae6426?source=rss-1782b80120c9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf7f3aae6426</guid>
            <category><![CDATA[data-processing]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[big-data-analytics]]></category>
            <category><![CDATA[gpu]]></category>
            <category><![CDATA[spark-rapids]]></category>
            <dc:creator><![CDATA[Kube-dAI]]></dc:creator>
            <pubDate>Mon, 14 Oct 2024 04:39:59 GMT</pubDate>
            <atom:updated>2024-10-14T04:39:59.165Z</atom:updated>
            <content:encoded><![CDATA[<h3>3x Boost with Spark RAPIDS — Why GPUs Are the Future of Data Processing</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xb7ZY83ZxXFXqJyFjwOpfg.png" /></figure><p><strong><em>Imagine processing your data 3x faster</em></strong> — yes, you read that right. The graph above is a real-world example of how Spark RAPIDS, by leveraging GPUs, drastically outperforms traditional CPU-based Spark jobs. From joining large datasets with billions of rows to sorting millions of rows, GPUs offer performance gains that CPUs simply can’t match.</p><p>Intrigued? Let’s dive into how Spark RAPIDS can take your data processing to the next level and what makes this library a game-changer for both speed and cost-efficiency.</p><p>In today’s fast-paced, data-driven world, businesses are constantly seeking faster and more cost-efficient ways to process large datasets. <strong>Spark RAPIDS</strong>, an extension of the existing Apache Spark framework, is designed to accelerate Spark jobs by leveraging the parallel processing power of GPUs. By offloading tasks traditionally handled by CPUs to GPUs, Spark RAPIDS transforms the performance of both data processing and machine learning (ML) workloads. This enables faster execution times for tasks such as <strong>joins, aggregations, and sorting</strong>, while also reducing overall infrastructure costs.</p><p><em>(And let’s be honest — once you see what a GPU can do, you’ll wonder why you were making that poor CPU suffer all this time.)</em></p><h4>Why Choose Spark RAPIDS?</h4><p>So, why should you care? Well, because your CPUs are like a lone worker running around trying to handle every request, while GPUs are an army of super-efficient robots. GPUs can handle multiple tasks at once, making them ideal for heavy data lifting like joins, aggregations, and machine learning predictions. With Spark RAPIDS, you can take advantage of this power without having to rewrite all your code — just tweak a few configurations, sit back, and watch your Spark jobs fly.</p><p><em>(Trust me, once you see the speed difference, your CPU might start getting nervous.)</em></p><h4>Spark ❤️ Kubernetes: The Dream Team</h4><p>If Spark is your trusted data-processing machine, then running <strong>Spark on Kubernetes</strong> is like adding wings to a Formula 1 car. 🏎️ ✨ That’s exactly what <strong>Spark RAPIDS on Kubernetes</strong> does — it takes Spark’s parallel data processing capabilities and supercharges it with GPU acceleration, running seamlessly on a Kubernetes cluster.</p><p>Creating a custom <a href="https://github.com/KubedAI/spark-rapids-on-kubernetes/blob/main/docker/Dockerfile-SparkRAPIDS">Docker image</a> with Spark RAPIDS is a breeze. You can easily integrate the latest versions of Spark and RAPIDS into your image, and, better yet, use your <strong>existing PySpark or Scala Spark jobs</strong> with almost no changes to the code! 🚀</p><p>Just update a few configurations to enable GPU acceleration, and voilà — your Spark jobs are now flying at warp speed. Plus, with Kubernetes’ ability to scale, you can easily handle multiple tenants, further reducing costs while boosting performance.</p><p>In a nutshell: Spark loves Kubernetes, and when you throw GPUs into the mix, it’s like turning your F1 car into a jet. 🏎️ ➡️ ✈️</p><h4>How Easy Is It?</h4><ol><li><strong>Build your custom Docker image</strong>: Integrate Spark and RAPIDS libraries.</li><li><strong>Reuse your existing Spark code</strong>: No need to refactor; just change the Spark configs.</li><li><strong>Submit the job</strong>: Leverage GPU optimization to accelerate speed, reduce costs, and make your infrastructure do the heavy lifting.</li></ol><p>For example, in my benchmarks, I took my trusty old PySpark jobs and simply swapped out a few configuration settings to let Spark RAPIDS and GPUs do the work. It’s like upgrading from a bicycle to a rocket with just a push of a button!</p><h4>Benchmarking Spark on GPUs vs. CPUs</h4><p>To show the power of Spark RAPIDS, I ran several benchmark tests comparing Spark jobs on CPUs and GPUs using <strong>Amazon EKS</strong> with the <strong>Spark Operator</strong> to submit the jobs. The results? Well, let’s just say it wasn’t even close:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*lisc7yVif2YXIk7eqC0ZQg.png" /><figcaption>Benchmark Test Config for GPU and CPU Tests</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gUlF3ydNk_MRY813jzQrBw.png" /><figcaption>Spark query execution times on both GPU and CPU instances</figcaption></figure><blockquote><strong>Tip:</strong> While working with Spark RAPIDS, always keep an eye on the logs for warnings. Refer to the <a href="https://nvidia.github.io/spark-rapids/docs/supported_ops.html">Supported Operators</a> and <a href="https://nvidia.github.io/spark-rapids/docs/compatibility.html">Compatibility Docs</a> to identify potential issues and improve your scripts. This way, you can optimize your job performance and ensure that you’re fully utilizing the GPU capabilities.</blockquote><h4>Key Spark RAPIDS Configurations</h4><p>Here’s a peek into the key configurations used in the benchmarks for Spark RAPIDS on GPUs. Remember, this setup was running on instances with 1 GPU, so adjust based on your environment.</p><pre># Determines CPU and GPU allocation per task<br>spark.task.cpus: &quot;1&quot;  # Allocates 1 CPU core per task<br>spark.task.resource.gpu.amount: &quot;0.166&quot;  # Each task uses 1/6th of a GPU (6 tasks per GPU)<br><br># Allocates full GPU to each executor<br>spark.executor.resource.gpu.amount: &quot;1&quot;  # 1 GPU per executor<br>spark.rapids.sql.concurrentGpuTasks: &quot;2&quot;  # Limits each task to half of the GPU for concurrent tasks<br><br># Optimizes memory and batch sizes for GPU processing<br>spark.rapids.memory.pinnedPool.size: &quot;2g&quot;<br>spark.rapids.sql.batchSizeBytes: &quot;512m&quot;<br>spark.rapids.sql.reader.batchSizeBytes: &quot;512m&quot;<br><br># Configures shuffle and SQL operations for GPU acceleration<br>spark.shuffle.manager: &quot;com.nvidia.spark.rapids.spark351.RapidsShuffleManager&quot;<br>spark.sql.files.maxPartitionBytes: &quot;512m&quot;<br>spark.sql.shuffle.partitions: &quot;8&quot;<br>spark.rapids.sql.enabled: &quot;true&quot;<br>spark.rapids.shuffle.enabled: &quot;true&quot;</pre><p><em>(Pretty neat, right? Now, don’t say I didn’t warn you — use the correct configurations or risk not taking full advantage of the GPU.)</em></p><h4>Making the Switch: Is It Worth It?</h4><p>Look, I know what you’re thinking — GPUs are expensive. But here’s the thing: GPUs aren’t just faster, they’re smarter. They can process tasks so quickly that your infrastructure costs will drop faster than you can finish your coffee. Here’s why it’s worth it:</p><ol><li><strong>Faster Processing</strong>: Most tasks see a 3x speed-up. Do the math — fewer nodes, less time spent processing, and a big reduction in cloud costs. You’ll be getting more bang for your buck. 🤑</li><li><strong>Unified Workloads</strong>: With Spark RAPIDS, data scientists can stop waiting around for data pipelines to finish before getting their hands on the final datasets for ML model training or predictions. You can handle <strong>both data processing and ML inferences in the same script</strong>, dramatically simplifying workflows.</li><li><strong>Operational Cost Savings</strong>: Instead of running huge CPU clusters and paying for hours of compute time, you’ll run fewer, faster GPU nodes. It’s not just about speed, it’s about smarter use of resources. 🌍 Your finance team will be singing your praises!</li></ol><h3><strong>Next Steps: Getting Started</strong></h3><p>If you’re ready to give your Spark jobs the ultimate boost, start experimenting with Spark RAPIDS in your environment. You can get started with this guide: <a href="https://kubedai.github.io/spark-rapids-on-kubernetes/docs/intro">Kube-dAI Spark RAPIDS on Kubernetes Docs</a>.</p><p>And don’t miss <strong>Part 2</strong> of this blog, where we’ll dive into <strong>Observability of Spark RAPIDS</strong> with <strong>GPUs</strong>. We’ll cover how to monitor GPU performance with <strong>Prometheus, Grafana, CloudWatch, and FluentBit</strong>, ensuring you get the most out of your Spark RAPIDS setup.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf7f3aae6426" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>