scale the cloud - skaluj chmurę
TRANSCRIPT
Scale the CloudDaniel Bykowski
Loft16-01-2017
About me
Daniel Bykowski
@KainosPolska 02/05/2023 2
Solution Architect
Why to scale?
@KainosPolska 02/05/2023 3
One server
One application one server
• DNS• Public IP• Just one server instance
– Application– Database– File Storage– ...
@KainosPolska 02/05/2023 5
Scaling up
• It’s simple, it’s easy• High CPU • High memory• High storage• High I/O
• Limited• Require outage
@KainosPolska 02/05/2023 6
One application one server
• We can achieve a lot with scaling up
• Perfect for development environment
• No failover• No redundancy• All in one machine
@KainosPolska 02/05/2023 7
Database
Divide and conquer
• Separate DB instance• No code changes• Scale up application and DB
separately
@KainosPolska 02/05/2023 9
Database as a Service
• Multi AZ – fault tolerant• Scale up in runtime without
break• Horizontal scaling – replication• Monitoring• Management• Backups• Continuous backups
RDS
@KainosPolska 02/05/2023 10
Scaling web application
Load Balancing
• Highly available• Session stickiness• Health checks• Security • HTTPS/HTTP• Monitoring• Logging
Elastic Load Balancer
@KainosPolska 02/05/2023 12
Horizontal Scaling
• Automatic resize of compute cluster• Management and monitoring• Fault tolerant
• Limitations– Number on machines in subnet– DB connection limit
Auto Scaling Group
@KainosPolska 02/05/2023 13
Auto Scaling
• Scheduled • Replace unhealthy instances• Alerts• Save money - Spot Instance
• Metrics
Auto Scaling Group
02/05/2023 14@KainosPolska
Scaling background application
Workers
• Scale out – easy– add new instance
• Scale in – hard– long runnig jobs– delayed termination– AWS Metrics is not
enough
@KainosPolska 02/05/2023 16
Workers
• Scaling script – AWS API• Predict load
• Lambda
@KainosPolska 02/05/2023 17
What else we can scale?
Services
ElastiCache – distributed cache
S3 – object storage
SES – email service
Cloud Watch – metrics & logs
Elasticsearch - logs
CloudFront – Content Delivery Network@KainosPolska 02/05/2023 19
Why to scale?
Keep your users happpy ...... for lowest possible
costs!
@KainosPolska 02/05/2023 20
Questions?