Files
nexus/wiki/concepts/Elasticity.md
2026-05-03 05:42:12 +08:00

47 lines
1.6 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "Elasticity"
type: concept
tags: [sre, cloud, scalability, reliability, capacity-planning]
last_updated: 2026-04-20
---
# Elasticity
弹性Elasticity是指系统在无需人工干预的情况下根据需求动态调整容量的能力是云原生的核心特性之一。
## Definition
真正的弹性需要**策略、测试和对瓶颈的认知**。它不仅仅是自动扩容,而是一个包含规划、执行和验证的完整体系。
## Core Requirements
1. **策略Policy**:明确定义扩容和缩容的规则
2. **测试Testing**:在非生产环境验证弹性行为
3. **瓶颈认知Bottleneck Awareness**:理解系统的性能瓶颈在哪里
## Elasticity vs. Autoscaling
| Aspect | [[Autoscaling]] | Elasticity |
|--------|-----------------|-----------|
| 性质 | 工具/机制 | 设计原则/能力 |
| 范围 | 单一维度(资源) | 多维度(容量、性能、成本) |
| 前瞻性 | 被动响应 | 主动规划 |
| 人类角色 | 可能被排除 | 必须参与 |
## Key Insight
Autoscaling 是实现弹性的**工具之一**,但 Autoscaling 本身不等同于弹性。缺乏策略和测试的 Autoscaling 可能在故障期间造成更大损害。
## Implementation Pillars
- **Capacity Planning**:预测需求,提前规划
- **Cost Optimization**:在弹性和成本之间取得平衡
- **Observability**:通过遥测数据理解系统边界
- **Chaos Engineering**:通过实验验证系统韧性
## Related Concepts
- [[Autoscaling]]
- [[Scalability]]
- [[Cost-Optimization]]
- [[Observability]]
- [[Resilience]]
## Source
- SRE Weekly Issue #513 — [[sre-weekly-issue-513]]