惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
Project Zero
Project Zero
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
云风的 BLOG
云风的 BLOG
Microsoft Azure Blog
Microsoft Azure Blog
F
Fortinet All Blogs
Martin Fowler
Martin Fowler
Jina AI
Jina AI
C
Check Point Blog
博客园_首页
The GitHub Blog
The GitHub Blog
The Hacker News
The Hacker News
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Cisco Blogs
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
A
Arctic Wolf
博客园 - 三生石上(FineUI控件)
P
Privacy International News Feed
Application and Cybersecurity Blog
Application and Cybersecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Forbes - Security
Forbes - Security
阮一峰的网络日志
阮一峰的网络日志
Engineering at Meta
Engineering at Meta
T
Troy Hunt's Blog
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
Schneier on Security
Schneier on Security
K
Kaspersky official blog
宝玉的分享
宝玉的分享
Google DeepMind News
Google DeepMind News
V2EX - 技术
V2EX - 技术
Google DeepMind News
Google DeepMind News
AWS News Blog
AWS News Blog
Know Your Adversary
Know Your Adversary
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
S
Security Affairs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The Register - Security
The Register - Security
P
Proofpoint News Feed
小众软件
小众软件
S
Securelist
T
Tor Project blog

Runpod Blog.

DeepSeek V4 in the wild, and how to run it on Runpod New Runpod datacenter now live: AP-IN-1 Track GPU spend across your team with Cost Centers The GPU supply supercycle is here. Here’s what AI builders need to know. Community Spotlight: One-click AI image and video generation on Runpod with SwarmUI | Runpod Blog Community Spotlight: LoRA Pilot Data Prep to Inference Introducing the Runpod Assistant: Manage Your Cloud GPU Resources with Natural Language OpenAI's Parameter Golf: Train the Best Language Model That Fits in 16MB on Runpod LLM inference optimization: techniques that actually reduce latency and cost Pruna P-Video and Vidu Q3 public endpoints now available on Runpod Runpod brand spelling guide Quickstart - Runpod Documentation The AI market looks nothing like the narrative Training StyleGAN3 with Vision-Aided GAN on Runpod KoboldAI – The Other Roleplay Front End, And Why You May Want to Use It How to Connect Cursor to LLM Pods on Runpod for Seamless AI Dev Community Spotlight: How AnonAI Scaled Its Private Chatbot Platform with Runpod Prompt Scheduling with Disco Diffusion on Runpod Runpod's Latest Innovation: Dockerless CLI for Streamlined AI Development Run Your Own AI from Your iPhone Using Runpod Introducing Flash: Run GPU workloads on Runpod Serverless: No Docker required Use Claude Code with your own model on Runpod: No Anthropic account required Avoid Errors by Selecting the Proper Resources for Your Pod What hackers built on Runpod at TreeHacks 2026 Easily Back Up and Restore Your Pod with Cloud Sync + Backblaze B2 The Complete Guide to GPU Requirements for LLM Fine-Tuning AI Guides, Tutorials & GPU Infrastructure Insights | Runpod Your first Claude Code project within Runpod: a complete setup guide 10 billion Serverless requests and counting Building for resilience: Runpod’s response to the AWS us-east-1 outage How to Connect Google Colab to Runpod Founder Series #1: The Runpod Origin Story AMD MI300X vs. NVIDIA H100: Mixtral 8x7B Inference Benchmark How to Run the FLUX Image Generator with ComfyUI on Runpod Run Llama 3.1 405B with Ollama on Runpod: Step-by-Step Deployment How to Run FLUX Image Generator with Runpod (No Coding Needed) How to Use 65B+ Language Models on Runpod Deploy Llama 3.1 with vLLM on Runpod Serverless: Fast, Scalable Inference in Minutes Open Source Video & LLM Roundup: The Best of What’s New Run vLLM on Runpod Serverless: Deploy Open Source LLMs in Minutes Introduction to vLLM and PagedAttention New update to Github integration: release rollback! | Runpod Blog A note to the developers who built Runpod with us Deploy ComfyUI as a Serverless API Endpoint Setting up Slurm on Runpod Clusters: A Technical Guide Building an OCR System Using Runpod Serverless From No-Code to Pro: Optimizing Mistral-7B on Runpod for Power Users Lessons While Using Generative Language and Audio For Practical Use Cases Runpod RoundUp 3 – AI Music and Stock Sound Effect Creation New Navigational Changes To Runpod UI Use alpha_value To Blast Through Context Limits in LLaMa-2 Models Runpod Roundup 5 – Visual/Language Comprehension, Code-Focused LLMs, and Bias Detection Runpod is Proud to Sponsor the StockDory Chess Engine Runpod Roundup 4 – Open Source LLM Evaluators, 3D Scene Reconstruction, Vector Search Meta and Microsoft Release Llama 2 as Open Source SuperHot 8k Token Context Models Are Here For Text Generation How to Manage Funding Your Runpod Account Encrypted Volumes on Runpod: Protect Your Data at Rest How to Run a "Hello World" on Runpod Serverless Runpod AI field notes: December 2025 Faster GitHub Builds: Major Performance Improvements to Our Automated Integration Partnering with Defined AI to Bridge the Data Wealth Gap How to Run Serverless AI and ML Workloads on Runpod How to fine-tune a model using Axolotl Transcribe and translate audio files with Faster Whisper Runpod Achieves SOC 2 Type II Certification: Continuing Our Compliance Journey Orchestrating GPU workloads on Runpod with dstack Exploring Runpod Serverless: Create Workers From Templates DeepSeek V3.1: A Technical Analysis of Key Changes from V3-0324 Deep Cogito Releases Suite of LLMs Trained with Iterative Policy Improvement Wan 2.2 Releases With a Plethora Of New Features Iterative Refinement Chains with Small Language Models The New Runpod.io: Clearer, Faster, Built for What’s Next Introducing Clusters: On-Demand Multi-Node AI Compute Run DeepSeek R1 on Just 480GB of VRAM How Do I Transfer Data Into My Runpod? Spot vs. On-Demand Instances: What’s the Difference? Deploy GitHub Repos to Runpod with One Click Run GGUF Quantized Models Easily with KoboldCPP on Runpod How to Work with GGUF Quantizations in KoboldCPP Introducing Better Forge: Spin Up Stable Diffusion Pods Faster Supercharge Your LLMs with SGLang: Boost Performance and Customization RAG vs. Fine-Tuning: Which Is Best for Your LLM? Run Larger LLMs on Runpod Serverless Than Ever Before – Llama-3 70B (and beyond!) How to Run vLLM on Runpod Serverless (Beginner-Friendly Guide) Embracing New Beginnings: Welcoming Banana.dev Community to Runpod Stable Diffusion + ComfyUI on Runpod: Easy Setup Guide Runpod RoundUp 2 – 32k Token Context LLMs and New StabilityAI Offerings Runpod Roundup: High-Context LLMs, SDXL, and Llama 2 16k Context LLM Models Now Available On Runpod Savings Plans Are Here For Secure Cloud Pods – How To Purchase a Monthly Plan And Save Big Pygmalion-7b from PygmalionAI has been released, and it's amazing Ada Architecture Pods Are Here – How Do They Stack Up Against Ampere? Spin up a Text Generation Pod with Vicuna and Experience a GPT-4 Rival Using OpenPose to Annotate Poses Within Stable Diffusion Set Up a Chatbot with Oobabooga on Runpod Connect VSCode to Your Runpod Instance (Quick SSH Guide) Deploy a Stable Diffusion UI on Runpod in Minutes Google Colab Pro vs. Runpod: Best GPU Cloud for AI Workloads How to Run a GPU-Accelerated Virtual Desktop on Runpod
Mastering Serverless Scaling on Runpod: Optimize Performance and Reduce Costs
Brendan McKeag · 2024-07-25 · via Runpod Blog.

In many sports – golf, baseball, tennis, among others – there is a "sweet spot" to aim for which results in the maximum amount of lift or distance for the ball given an equivalent amount of kinetic energy in the swing. While you'll still get somewhere with an imperfect swing, it might not be as far as you might have hoped.

It turns out that scaling your workload on Runpod Serverless isn't much different. Missing on the mark on one side leads to unnecessary spend, while missing the other leads to a degraded user experience. There are several variables that go into maximizing and efficiently using your serverless spend – so let's go into what it takes to develop your strategy.

Imagine that you are a developer tasked with creating a chatbot to field technical questions before they're forwarded to your support team. You're already saving quite a bit by having a Runpod-hosted LLM handle those as opposed to your support associates, but the real question is: could you save even more by tuning your worker scaling strategy?

Why scaling matters

While you could simply rent a GPU pod for the job, and in some cases that is actually preferable – mostly for tasks where you know you will be utilizing the GPU at full blast for hours on end, such as training a model – scaling inference is simply a far more efficient use of resources. It's very rare for user-based workload demand to fit into nice, contiguous blocks to be efficiently fed into a GPU pod server. In reality, you'll often have blocks of time where the GPU is sitting idle, which leads to wasted spend.

Enter serverless AI functions, that simply uses a worker to ingest a job, spends a few seconds (or perhaps minutes, if needed) on the job, gives you the results, and shuts down when complete. This ensures that you only pay for the time you actually use, compared to pods where you pay for the hardware time whether it is being utilized or not.

One of the most compelling examples is for chatbot applications like the use case mentioned above. Because the vast majority of the elapsed time is the user processing the AI response, considering, and typing the response, the end result is the GPU sits idle for the vast majority of the time. For AI chatbot use, serverless could represent an 80% cost savings or more compared to using a pod server. dannysemi has provided a serverless proxy worker running on FastAPI and vLLM that will enable chatbot use on Sillytavern and similar applications. Wing Lian also has an article on Medium demonstrating how you could use quantized models on Runpod to optimize response times, so that your workers can get the job done even faster.

Tolerance of delays in your use case

Before you alter your strategy at all, you need to consider your serverless use case. Are you serving job results to a general public that expects immediate results? According to Google, 53% of mobile visits are abandoned if a site takes more than three seconds to load. If your use case is such that you are trying to attract new users into your funnel, you might not want to even risk any cold starts. On the other hand, if you are perhaps running inference on an input and the results will be collected on a server for later human review, in that case a slight delay in running a task is probably not a big deal at all. You will want to define a service level agreement with your users so that everyone is on the same page – without this, you are essentially scrambling in the dark without a plan. Once you have a specific target to aim for, then you'll be able to proceed. In the case of a support chatbot, you'll need fairly immediate, if not immediate results. There may be some tolerance there (maybe a couple of seconds) but excessive cold starting may cause delays that leave a bad impression.

In this entry, we'll go through the variables that go into your serverless strategy, along with their primary advantage, disadvantage, and example use case.

Active Workers

Active workers in serverless will bill for every second the worker is active, but at a 40% discount compared to a flex worker.

The primary advantage of active workers is that they are spun up and ready to accept work immediately - no cold starts, no delays, they are just ready to go.

The primary disadvantage is that they bill whether or not they have anything to work on, so any funds spent on an idle active worker are not devoted to actual inference time, only providing availability.

The use case for active workers should be to handle your baseline workload. Note that you can adjust your amount of active workers in your endpoint at any time through manually editing in the endpoint or in GraphQL. You can increase or decrease your number of active workers through API calls at any time.

You can send an API call using GraphQL to update your number of active workers - these can be automated to fire programmatically at certain points during the day when you know your demand levels may change. Further examples of this can be found in our docs.

You might find cron or postman useful for having these worker updates kick off at certain points in the day - for example, if support requests for your chatbot drop off after end of business locally, there's no need to have all of those workers running overnight.


Flex workers

Flex workers spin up on-demand to handle incoming workloads when all of your active workers are currently occupied with tasks.

The primary advantage of flex workers is that they are convenient and able to handle an essentially infinite amount of additional work if needed. They do their job and shut down after a few seconds if no further work is received.

The primary disadvantage is that they are more expensive for inference time than active workers.

The use case of flex workers is to reduce friction for users and prevent churn (such as the user feeling that the service is slow/unresponsive and them moving on for a competitor.) Think of flex workers as your "goalkeeper" to prevent unexpected spikes in demand from impacting your users – especially users that are contacting your support for help and may already be carrying a certain level of frustration.

Try Runpod Serverless

Idle Timeout

Idle timeout keeps a flex worker running and ready for new tasks after it has finished its current job.

The primary advantage of idle timeout is that it keeps you poised to handle workload spikes with your flex workers, instead of needing to spin up additional workers.

The primary disadvantage is that an idle flex worker has the greatest potential for wastage; not only do you miss the discount from maintaining an active worker while it runs, but it's not accomplishing any useful work in the process.

The use case of an idle timeout is similar to flex workers, helping to boost availability for your end users by keeping them available for further work.

Scale Type

When increasing your number of workers dynamically, you have two options for increasing your number of workers: queue delay or request delay. The purpose of these delays is to smoothly increase your worker count to ensure that workers are utilized efficiently, rather than simply adding a ton of extra workers that may not be used for more than one job.

Queue Delay adds additional workers after jobs have been waiting for a certain number of seconds.

Request Count adds additional workers based on how many jobs are currently being handled.

Request Count is something of a moving target based on how many jobs you currently have active, which makes it more challenging to use. However, it generally leads to more efficient use of resources. Queue Delay will likely be perceived as a smoother user experience.

What about Flashboot?

We go into Flashboot and you can learn more about how it works - but long story short, there's no real reason to not keep it enabled. It doesn't cost anything, and can easily reduce cold starts down to a second or less. The only real caveat is how much it can improve your situation tends to be variable on a number of factors – such as how popular the image you're using is. Images that get used more get cached more, for example. Also, it's not a guarantee that a worker will be booted by a certain time, so while it is a boon for reducing overall delays, do not solely use it for a process that absolutely must be up and running by a certain time because edge cases can still slip through. In the case of a chatbot, though, this is the use case that Flashboot was designed for and it will perform quite handily.

So what is right for your use case?

As mentioned above, the first thing is to find out what your service level agreement is with your users. Even if you don't have one defined, you still have an unspoken SLA which is governed by your user behavior; the average time where your users feel dissatisfaction with your service, even if it is not outwardly expressed, could be considered to be a breaking of this de facto service level agreement.

While you could allocate enough workers to have zero delays for any of your users at any point, this could also be prohibitively expensive and not even be something that your users are actually expecting.

Optimally, you would want to listen and communicate with your users. Set up a poll or survey seeking this information to find out how long of a delay they would be willing to tolerate, and then tweak your worker counts and strategy to meet those expectations.

If you need an overview of serverless functions, check out Getting Started with Runpod Serverless - community member Ashley Kleynhans has provided an 8 minute rundown for a bird's eye view over what you'll need to begin testing.

Getting Started

So now that you've learned about how to optimize Runpod Serverless for chatbot use, how might you demonstrate the value to your organization, and how much might you save using serverless compared to your previous implementation?

If you haven't yet begun exploring serverless yet, then you may be interested in our vLLM Quick Deploy feature which guides you through setting up an endpoint in just a few clicks. We also have a vibrant community full of developers on our Discord where you can share your own story, seek feedback, and ask questions – feel free to join us here!

Runpod has many additional tools to help you get started with running serverless functions, and we're adding more all the time. It's never been easier to run serverless functions on the platform. Check out the following docs and community contributions:

Author profile: Brendan McKeag