Scalr Demo

4,156 views
3,957 views

Published on

Slides from a hands on demo of Scalr the Cloud management solution - or how to scale Wordpress on AWS in notime.

Presented at AWS Usergroup meetup 4

Published in: Technology
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,156
On SlideShare
0
From Embeds
0
Number of Embeds
1,253
Actions
Shares
0
Downloads
1
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide

Scalr Demo

  1. 1. Scalr Demo…..or how to scale Wordpress on AWS in 20 minutes 24 May 2012 Andreas Chatzakis Teo Kotsilinis AWS Usergroup Greece
  2. 2. Here is the plan We will set up a scalable web infra in minutes andinstall wordpress to prove it works!– ELB as load balancer– Multiple autoscaling EC2 Apache servers– EC2 memcache– EC2 MySQL master-slave setup– S3/cloudfront for static storageWe will show Scalr features like Deployments Server Snapshots Farms setup and config Failover, Autoscaling Scripting engine DNS, Vhosts DB management Services configuration 2
  3. 3. Architecture 3
  4. 4. Prep done in advanceRegistered for an AWS accountRegistered for a trial www.scalr.net accountAdded my AWS keys on ScalrCreated S3 bucket and setup permissions 4
  5. 5. Create a new farm 5
  6. 6. Config DB role 6
  7. 7. Config memcache role 7
  8. 8. Config App role 8
  9. 9. Launch farm 9
  10. 10. DNS Management 10
  11. 11. Vhost 11
  12. 12. And I can change mysql config via GUI 12
  13. 13. Bootstrap application role 13
  14. 14. Bye bye Cron! 14
  15. 15. Create DB user 15
  16. 16. Deploy app 16
  17. 17. Configure wordpress 17
  18. 18. DiscoveryI can use DNS, API or command line to get a view of my surounding environment,automating config changes: int.master.mysql.farm-hash.scalr-dns.net int.slave.redis.farm-hash.scalr-dns.net ext.master.postgresql.farm-hash.scalr-dns.net ext.server-index.farm-role-id.farm-hash.scalr-dns.net #ls /etc/scalr/private.d/hosts app memcache mysql-slave mysql-master #ls /etc/scalr/private.d/hosts/mysql-master 10.241.6.71 18
  19. 19. Edit php.ini via the browser session.save_handler = memcache . session.save_path="tcp://memcachserver:port ” 19
  20. 20. SnapshotNow that we have prepared our app server, lets “save” it in a server snapshot: Easy rollback: 20
  21. 21. Lets autoscale!ab -n 1000 -c 100 http://my-awsuggr-elb.us-east-1.elb.amazonaws.com 21
  22. 22. The chaos monkey Kill mysql instance #1 (the master) Scalr triggers failover Slave server promoted to master Other slaves reconfigured to replicate from new master Extra slave initialized if minimum servers dictates so Scalr always initializes slaves from latest snapshot Slave in same AZ? Scalr re-uses EBS volume Slave in other AZ? Scalr creates snapshot of the dead-master EBS volume, creates new EBS volume from it 22
  23. 23. PHPMyAdmin, DNS endpoints, Replication/Backup Status 23
  24. 24. Utilization metrics 24
  25. 25. Add Caching & S3 plugin 25
  26. 26. Taking advantage of Master-Slave DB 26
  27. 27. What we did not showMulti cloud deployments: 27
  28. 28. Pricing 28
  29. 29. Questions? 29

×