RousselTMLEARNING

Article · Cloud Computing: From Discovery to Expertise

Elasticity vs scalability

This article is available in French.

1. Scalabilité Verticale vs Horizontale #

Comprendre comment augmenter la puissance de traitement.

Scale-Up vs Scale-Out #

La scalabilité verticale (Scale-up) consiste à ajouter de la RAM ou du CPU à un serveur. Elle a des limites physiques. La scalabilité horizontale (Scale-out) consiste à ajouter de nouveaux serveurs identiques, offrant une croissance quasi infinie.

2. L'Élasticité : L'Auto-scaling en action #

L'élasticité est la capacité du système à déclencher automatiquement l'ajout ou la suppression de ressources en fonction de métriques précises (CPU > 70% ou latence réseau). C'est ce qui permet d'économiser de l'argent la nuit et de tenir la charge durant les soldes.

3. Design pour la Haute Disponibilité #

Pour être élastique, une application doit être 'stateless' (sans état local). Les sessions doivent être stockées dans des bases de données externes ou des caches (Redis) pour permettre aux serveurs d'apparaître et de disparaître sans couper la connexion des utilisateurs.

Mise en pratique : mettre à l'échelle #

Commandes de scalabilité.

Schéma #

Élasticité, scalabilité verticale et horizontale
L'élasticité est la capacité d'ajuster automatiquement la scalabilité.

Exemples #

# Scalabilité horizontale manuelle (Kubernetes)
kubectl scale deployment web --replicas=6
# Élasticité : ajustement automatique selon le CPU
kubectl autoscale deployment web --cpu-percent=70 --min=2 --max=20

# AWS Auto Scaling : politique de suivi de cible
aws autoscaling put-scaling-policy --auto-scaling-group-name web-asg --policy-name cpu70 --policy-type TargetTrackingScaling \
  --target-tracking-configuration '{"PredefinedMetricSpecification":{"PredefinedMetricType":"ASGAverageCPUUtilization"},"TargetValue":70}'

📄 Élasticité vs Scalabilité : Les clés de la performance ↗

My progress

  • ⏱ Estimated time : ≈ 5 min

Sign in to track your progress and take notes. Sign in

✉️ Ask a question

Recommended Articles

License consumption types

Understand the evolution of billing in Dynatrace: the difference between the old licensing model ...

Grafana Alloy: The importance of Self-Monitoring

Discover why and how to configure Grafana Alloy so that it monitors itself, collecting its own lo...

Grafana Alloy: Understanding and exploiting the User Interface (UI)

Discover how to enable, secure, and use Grafana Alloy's built-in web interface to visualize your ...

Grafana Alloy: Introduction and Architecture

Discover the fundamental concepts of Grafana Alloy, the transition from the static Agent to Alloy...

Grafana Alloy: Syntax and Configuration (Alloy Language: River)

As part of a Grafana training or observability training, master the declarative syntax of Grafana...

Grafana Alloy: Metrics Collection (Prometheus & Ecosystem)

Learn how to configure Grafana Alloy to collect, transform, and forward metrics using the Prometh...

Grafana Alloy: Log Management with Loki

Discover how to configure Grafana Alloy to read log files, journald, or network streams, process ...

Grafana Alloy: Trace Management with Tempo

Dive into distributed trace processing. Learn how to ingest OTLP, Jaeger, or Zipkin traces with G...

Grafana Alloy: Continuous Profiling with Pyroscope

Discover how to configure continuous profiling in your environments using Grafana Alloy and Pyros...