AGENT SKILL

vercel-load-scale

Implement Vercel load testing, auto-scaling, and capacity planning strategies. Use when running performance tests, configuring horizontal scaling, or planning capacity for Vercel integrations. Trigger with phrases like "vercel load test", "vercel scale", "vercel performance test", "vercel capacity", "vercel k6", "vercel benchmark".

License 许可
MIT
最近更新
2026-05-26
Stars
★ 0
Forks
0

01 前言 Front Matter

name
vercel-load-scale
author
Jeremy Longshore <jeremy@intentsolutions.io>
license
MIT
version
1.0.0
description
Implement Vercel load testing, auto-scaling, and capacity planning strategies. Use when running performance tests, configuring horizontal scaling, or planning capacity for Vercel integrations. Trigger with phrases like "vercel load test", "vercel scale", "vercel performance test", "vercel capacity", "vercel k6", "vercel benchmark".
allowed-tools
Read, Write, Edit, Bash(k6:*), Bash(kubectl:*)
compatible-with
claude-code, codex, openclaw

02 资源文件 5

03 SKILL.md 正文

Vercel Load Scale

Prerequisites

  • k6 load testing tool installed
  • Kubernetes cluster with HPA configured
  • Prometheus for metrics collection
  • Test environment API keys

Instructions

Load testing Vercel deployments requires understanding the platform's auto-scaling model: serverless functions scale horizontally without configuration, but they have per-invocation concurrency limits and cold-start penalties that can cause latency spikes under sudden traffic bursts. Load tests should simulate both sustained load (to measure steady-state performance) and spike scenarios (to measure cold-start amplification) to give a complete picture of behavior under production traffic patterns.

Step 1: Create Load Test Script

Write a k6 test script that models your realistic traffic pattern including the read/write ratio, request size distribution, and geographic origin if applicable. Set thresholds for P95 and P99 latency at values aligned to your user experience SLAs. Include a warm-up phase to establish a baseline before the peak load phase to isolate cold-start latency from steady-state latency.

Step 2: Configure Auto-Scaling

Vercel serverless functions scale automatically, but you may need to configure concurrency limits or use Vercel's Edge Functions for lower-latency scaling at the edge. For workloads with predictable spikes, consider pre-warming strategies or migrating latency-critical paths to edge functions which eliminate cold starts entirely.

Step 3: Run Load Test

Execute the test against a staging deployment that mirrors production configuration. Collect function invocation metrics from the Vercel dashboard alongside your k6 output. Watch for error rate increases at high concurrency levels and log cold-start occurrences to quantify their frequency and duration.

Step 4: Analyze and Document

Record results in the benchmark template documenting throughput, latency percentiles, cold-start frequency, and error rate at each load level. Derive capacity recommendations identifying the traffic volume at which latency SLAs are breached.

Output

  • Load test script covering steady-state and spike traffic scenarios
  • Scaling configuration aligned to traffic patterns and latency requirements
  • Benchmark results documenting performance at each load level
  • Capacity recommendations with identified SLA breach thresholds

Error Handling

See ${CLAUDE_SKILL_DIR}/references/errors.md for comprehensive error handling.

Examples

See ${CLAUDE_SKILL_DIR}/references/examples.md for detailed examples.

Resources

Overview

Implement Vercel load testing, auto-scaling, and capacity planning strategies.

04 同仓库更多 Skills

SamuelChien
SamuelChien/mega-skills-collection

zustand-store-ts

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zustand-store-creator

Zustand Store Creator - Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zero-trust-config-helper

Zero Trust Config Helper - Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zapier-integration-helper

Zapier Integration Helper - Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

zai-cli

Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP. Use when user needs image/video analysis, OCR, UI-to-code conversion, error diagnosis, real-time web search, web page to markdown extraction, or GitHub code exploration. Trigger with phrases like "analyze this image", "search the web for", "read this page", "explore this repo", or "use zai". Requires Z_AI_API_KEY.

★ 0
SamuelChien
SamuelChien/mega-skills-collection

yt-research

Research competitor YouTube channels, niches, and trending topics for your content strategy. Use this skill whenever the user says "research channels", "analyze competitors", "find trending topics", "niche analysis", "competitive research", "what are other creators doing", "scrape YouTube channels", or wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.

★ 0