0Pricing
RabbitMQ Messaging & Async Systems · レッスン

キャパシティプランニングと負荷テスト

PerfTestなどのツールを使って、RabbitMQのデプロイメント規模を決め、現実的な負荷で検証する方法を学びます。本番環境でスループットが突然低下する事態を防げます。

「キャパシティプランニングと負荷テスト」はCoddyKit上の無料RabbitMQ Messaging & Async Systemsレッスンです。 これはレッスン4/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはRabbitMQ Messaging & Async Systems学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 RabbitMQ Messaging & Async Systemsコースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Why Plan Capacity?

Production incidents often stem from undersized brokers: queues back up, memory alarms fire, and publishers block.

Capacity planning and load testing prevent these surprises.

Key Metrics to Size For

  • Publish and deliver rates (messages/sec)
  • Average message size
  • Peak queue depth
  • Number of connections and channels

Memory and Disk Headroom

RabbitMQ triggers a memory alarm and blocks publishers when memory crosses the high watermark. Size RAM so steady-state stays well below it.

Introducing PerfTest

The official rabbitmq-perf-test tool generates configurable publisher and consumer load to benchmark a broker.

A Basic Load Run

Run a test with a fixed publish rate and several consumers.

rabbitmq-perf-test --uri amqp://localhost --producers 4 --consumers 4 --rate 1000

Testing Message Size Impact

Vary the payload size to see how throughput changes; larger messages saturate network and disk sooner.

rabbitmq-perf-test --size 8192 --rate 500

Finding the Throughput Cliff

Gradually raise the rate until latency spikes or the broker flow-controls publishers. That inflection point is your practical ceiling; plan to run below it.

Flow Control

When a broker is overwhelmed it applies flow control, slowing fast publishers. Seeing this in tests means you are at capacity.

Test With Persistence

Benchmark with persistent messages and publisher confirms enabled, since those reflect real reliable workloads and cost throughput.

rabbitmq-perf-test --flag persistent --confirm 100

Connection and Channel Limits

Each connection and channel consumes resources. Test with a realistic connection count, since thousands of idle connections still cost memory and file descriptors.

From Test to Plan

  • Measure peak rates and add headroom (often 2x)
  • Pick node count and instance size from results
  • Re-test after every major topology change

Quick Check

Test your capacity planning knowledge.

Recap

Capacity planning sizes a broker from real metrics, and load testing with PerfTest validates it under realistic, persistent, confirmed traffic.

Find the throughput cliff where flow control kicks in, plan to run with headroom below it, and re-test after topology changes.

よくある質問

「キャパシティプランニングと負荷テスト」レッスンは無料ですか?

はい。「キャパシティプランニングと負荷テスト」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、RabbitMQ Messaging & Async Systemsコースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 RabbitMQ Messaging & Async Systemsコースには全4レッスンが含まれています。

「キャパシティプランニングと負荷テスト」で何を学びますか?

PerfTestなどのツールを使って、RabbitMQのデプロイメント規模を決め、現実的な負荷で検証する方法を学びます。本番環境でスループットが突然低下する事態を防げます。 ブラウザで直接実行するハンズオンコードでRabbitMQ Messaging & Async Systemsを演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

RabbitMQ Messaging & Async Systemsを始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのRabbitMQ Messaging & Async Systemsは初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン4/4です。

「キャパシティプランニングと負荷テスト」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このRabbitMQ Messaging & Async Systemsレッスンでコードを書いて実行できますか?

はい。すべてのRabbitMQ Messaging & Async Systemsレッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. RabbitMQでよくある問題
  2. メッセージフローのデバッグ
  3. 本番システムのベストプラクティス
  4. キャパシティプランニングと負荷テスト
← RabbitMQ Messaging & Async Systemsに戻る