エラスティックコンピューティング

実際のワークロード需要に応じて、クラウドインフラストラクチャが自動的にコンピューティングリソース(サーバー、コンテナ、関数)をプロビジョニングおよびデプロビジョニングする能力 — 使用した分だけ支払う。

ブロックチェーンインフラでは、NFTミントやトークン発売時の急激なトラフィックスパイクを吸収するために、インデクサーノードやRPCプロバイダーにとってエラスティックコンピューティングが不可欠です。

        graph LR
  Center["エラスティックコンピューティング"]:::main
  Rel_scalability["scalability"]:::related -.-> Center
  click Rel_scalability "/terms/scalability"
  Rel_data_modeling["data-modeling"]:::related -.-> Center
  click Rel_data_modeling "/terms/data-modeling"
  classDef main fill:#7c3aed,stroke:#8b5cf6,stroke-width:2px,color:white,font-weight:bold,rx:5,ry:5;
  classDef pre fill:#0f172a,stroke:#3b82f6,color:#94a3b8,rx:5,ry:5;
  classDef child fill:#0f172a,stroke:#10b981,color:#94a3b8,rx:5,ry:5;
  classDef related fill:#0f172a,stroke:#8b5cf6,stroke-dasharray: 5 5,color:#94a3b8,rx:5,ry:5;
  linkStyle default stroke:#4b5563,stroke-width:2px;

      

🧠 理解度チェック

1 / 1

🧒 5歳でもわかるように説明

客数に応じてキッチンが魔法のように大きくなったり小さくなったりするレストランを想像してください。静かな火曜日は2人のシェフ、混んだ土曜の夜は即座に20人。実際に料理した時間分だけ支払います。エラスティックコンピューティングはソフトウェアのための魔法のキッチン — アプリが忙しいとき、クラウドが自動的に「コンピュータシェフ」を追加し、トラフィックが落ちると削除します。

🤓 Expert Deep Dive

Auto Scaling Group(ASG): Target Tracking Scalingは目標メトリクス値を維持(例:平均CPU 60%)。クールダウン期間(デフォルト300秒)でスラッシングを防止。Kubernetes HPA v2: 15秒ごとにMetrics Serverを照会。計算式: desiredReplicas = ceil[currentReplicas × (currentMetricValue / desiredMetricValue)]。Lambdaコールドスタート: Lambdaは温かい実行環境のプールを維持。~15分の非アクティブ後に凍結。次の呼び出しでパッケージをロードしランタイムを起動 — 100–1000msのレイテンシ。Provisioned ConcurrencyはN個の環境を事前ウォームアップ(継続課金)。

❓ よくある質問

What is the difference between elastic computing and auto-scaling?

Auto-scaling is the specific mechanism (adding/removing servers based on metrics). Elastic computing is the broader principle — the cloud infrastructure's ability to match capacity to demand dynamically. Auto-scaling is one implementation of elasticity.

What is a 'cold start' in serverless computing?

A cold start occurs when a serverless function (like AWS Lambda) is invoked after its execution environment has been idle and deallocated. The cloud must provision a new environment, load the runtime, and run initialization code before the function logic executes, adding 100ms–1s of latency.

Is elastic computing always cheaper than fixed infrastructure?

No. Elasticity saves money for workloads with high variability (e.g., e-commerce sites with day/night cycles). For flat, predictable workloads, reserved instances with 1-3 year commitments are typically 40–60% cheaper than on-demand elastic pricing.

📚 出典