Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Comment se crasher avec classe pendant un pic d...

Comment se crasher avec classe pendant un pic d’audience, a.k.a #effetcapital

Comment allez vous préparer une mise en avant de votre application lors d’un reportage TV ? Allez vous réussir à absorber ce pic de traffic massif, ou autrement dit “Effet Capital”. Je vous propose dans ce talk quelques quickwins pour éviter la catastrophe !

Avatar for Guillaume Marchand

Guillaume Marchand

December 17, 2021

Other Decks in Programming

Transcript

  1. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Comment se crasher avec classe Guillaume Marchand Solutions Architect AWS France A W S M E E T U P P A R I S # E F F E T C A P I T A L
  2. mesures rapides P O U R É V I T

    E R L A C A T A S T R O P H E
  3. Ma stratégie de healthchecks ? “ O N N E

    M ’ A V A I T P A S D I T Q U I F A L L A I T Q U E J ’ E N P R E N N E … ”
  4. Le DNS “ I T ’ S A L W

    A Y S D N S ”
  5. Le CDN C ’ E S T L A V

    I E , M Ê M E P O U R L E C O N T E N U D Y N A M I Q U E
  6. Le CDN Amazon Cloudfront cache.monsite.com CNAME xxx.cloudfront.net Default (*) :

    Min TTL=2s Q: Origine non disponible ? Q: Mise en cache des pages d’erreur ? Bonus : If-Modified-Since → HTTP 304 Feature: Origin Failover
  7. Mon site est la page d’erreur 500 Amazon Simple Storage

    Service (S3) Amazon CloudFront Amazon API Gateway AWS Lambda Amazon DynamoDB
  8. Et les timeouts ? E U H H … I

    L S V O N T B I E N …
  9. Et les timeouts ? Q: Quelle valeur choisir ? p99.9

    ElastiCache for Redis MySQL instance API Application Load balancer CDN ? ? ? ? ?
  10. Comment se sont passés les tests de charge ? O

    N N ’ E N F A I T P A S , C E N ’ E S T P A S R E P R É S E N T A T I F D U T R A F F I C R É E L tests
  11. “Max Connections” ? J U S Q U ’ À

    L ’ I N F I N I E T A U D E L À …
  12. Tester le Failover ”A failure event results in a brief

    interruption, during which read and write operations fail with an exception. However, service is typically restored in less than 120 seconds, and often less than 60 seconds.” Read Replica Séparer les “insert” des ”select” (PHP, Java) Amazon RDS Proxy “With RDS Proxy, failover times for Aurora and RDS databases are reduced by up to 66%” Amazon RDS / Aurora
  13. Conclusion F A I T E S L E A

    U J O U R D ’ H U I
  14. 1. Healthchecks 2. DNS 3. CDN 4. Page d’erreur Conclusion

    5. Timeouts 6. Tests de charge 7. Max Connections 8. Bases de données
  15. Healthcheck AWS Well-Architected Framework > Operational Excellence > “OPS 8:

    How do you understand the health of your workload?” Amazon Builders’ Library > ”Implementing health checks” Workshop ”Health check and dependencies” Timeout Amazon Builders’ Library > “Timeouts, retries and backoff with jitter” “Resources consumed by idle PostgreSQL connections” Gestion d’un incident Session AWS Reinvent 2020 : Incident management in a distributed organization AWS Gameday Test de charge Distributed Load Testing on AWS Tests de résilience AWS Fault Injection Simulator Et ensuite ?
  16. © 2020, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Merci ! Freepik smashicons https://www.linkedin.com/in/guillaumemarchand/