scale the cloud - skaluj chmurę

22
Scale the Cloud Daniel Bykowski Loft 16-01-2017

Upload: kainos-polska

Post on 14-Apr-2017

13 views

Category:

Internet


3 download

TRANSCRIPT

Page 1: Scale the Cloud - Skaluj chmurę

Scale the CloudDaniel Bykowski

Loft16-01-2017

Page 2: Scale the Cloud - Skaluj chmurę

About me

Daniel Bykowski

@KainosPolska 02/05/2023 2

Solution Architect

Page 3: Scale the Cloud - Skaluj chmurę

Why to scale?

@KainosPolska 02/05/2023 3

Page 4: Scale the Cloud - Skaluj chmurę

One server

Page 5: Scale the Cloud - Skaluj chmurę

One application one server

• DNS• Public IP• Just one server instance

– Application– Database– File Storage– ...

@KainosPolska 02/05/2023 5

Page 6: Scale the Cloud - Skaluj chmurę

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

Page 7: Scale the Cloud - Skaluj chmurę

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

Page 8: Scale the Cloud - Skaluj chmurę

Database

Page 9: Scale the Cloud - Skaluj chmurę

Divide and conquer

• Separate DB instance• No code changes• Scale up application and DB

separately

@KainosPolska 02/05/2023 9

Page 10: Scale the Cloud - Skaluj chmurę

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

Page 11: Scale the Cloud - Skaluj chmurę

Scaling web application

Page 12: Scale the Cloud - Skaluj chmurę

Load Balancing

• Highly available• Session stickiness• Health checks• Security • HTTPS/HTTP• Monitoring• Logging

Elastic Load Balancer

@KainosPolska 02/05/2023 12

Page 13: Scale the Cloud - Skaluj chmurę

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

Page 14: Scale the Cloud - Skaluj chmurę

Auto Scaling

• Scheduled • Replace unhealthy instances• Alerts• Save money - Spot Instance

• Metrics

Auto Scaling Group

02/05/2023 14@KainosPolska

Page 15: Scale the Cloud - Skaluj chmurę

Scaling background application

Page 16: Scale the Cloud - Skaluj chmurę

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

Page 17: Scale the Cloud - Skaluj chmurę

Workers

• Scaling script – AWS API• Predict load

• Lambda

@KainosPolska 02/05/2023 17

Page 18: Scale the Cloud - Skaluj chmurę

What else we can scale?

Page 19: Scale the Cloud - Skaluj chmurę

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

Page 20: Scale the Cloud - Skaluj chmurę

Why to scale?

Keep your users happpy ...... for lowest possible

costs!

@KainosPolska 02/05/2023 20

Page 21: Scale the Cloud - Skaluj chmurę

Questions?

Page 22: Scale the Cloud - Skaluj chmurę