Your SlideShare is downloading. ×
AWS Start-Up Conference 6/2010<br />Effective Cloud Computing at Amazon: The benefits and the challenges.<br />joshua@adcl...
Challenges – What can you expect?<br />System issues<br />Reasonable OS selections for most.<br />Various Linux distributi...
Challenges – What can you expect?<br />Mail (SMTP) issues.<br />Amazon IP blocks are on many blacklists.   Why?  <br />Rel...
Challenges – What can you expect?<br />Elastic Load Balancer issues.<br />Client (Source) IP address in HTTP requests come...
Don’t panic<br />Despite a few of the previously mentioned  inconveniences - the technology is sound, stable and actively ...
Benefits<br />Seamless scaling for your application’s demand.   <br />Easily handle massive volume at peak times and autom...
Benefits<br />Amazon Elastic Load Balancing<br />Other major cloud service vendors don’t offer load balancing.  Managing y...
Benefits<br />Custom Image Builds<br />Build your custom image (AMI) and deploy it across your network with ease.<br />Rol...
Benefits<br />APIs<br />EC2 API<br />Manage your EC2 instances – spawn new instances, terminate existing instances, manage...
Benefits<br />EBS Volumes<br />Easily add more storage to your instance as needed.<br />EBS Volumes are block devices that...
Various Tips<br />Embrace the EC2/ELB API and their equivalent shell scripts.   They will make your life easy.<br />Packag...
Cloud Computing: Doing it wrong.<br />50 ssh sessions open on your desktop: bad.<br />
Cloud Computing: Doing it right<br />Spin up an instance and never worry about it.   <br />It should automatically join a ...
Thanks!<br />Download this presentation and some example scripts from http://adcloudmedia.com/AWS-Startup/<br />Poll a loa...
Upcoming SlideShare
Loading in...5
×

AWS Customer Presentation - adcloud

1,029

Published on

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

  • Be the first to like this

No Downloads
Views
Total Views
1,029
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "AWS Customer Presentation - adcloud "

  1. 1. AWS Start-Up Conference 6/2010<br />Effective Cloud Computing at Amazon: The benefits and the challenges.<br />joshua@adcloudmedia.com<br />
  2. 2. Challenges – What can you expect?<br />System issues<br />Reasonable OS selections for most.<br />Various Linux distributions are available including: Fedora, Gentoo, openSUSE, Ubuntu, Debian, Redhat Enterprise. Other options include OpenSolaris and Windows.<br />No BSD distributions though.<br />Some vendors don’t keep builds current (Fedora 8? Really?)<br />In most cases, you can update system binaries to recent builds. It is nonetheless moderately inconvenient and can be a time consuming process.<br />Some do stay current. Ubuntu, for example, stays up to date.<br />A number of Amazon Partner provided images are provided by various software vendors.<br />Oracle, MySQL images, IBM DB2, Informix AMIs.<br />Apache, IIS/ASP.NET, Websphere AMIs.<br />No custom kernel builds.<br />But you can build kernel modules.<br />These may be useful if you’re implementing some sort of clustering filesystem across your instance nodes, or any other lower level implementation.<br />Redhat Enterprise beta is nice but it does have additional costs apart from Amazon EC2 instance costs. Large server deployments may become significantly more expensive.<br />
  3. 3. Challenges – What can you expect?<br />Mail (SMTP) issues.<br />Amazon IP blocks are on many blacklists. Why? <br />Relay your SMTP mail through a third party host. Not a huge deal, but an inconvenience regardless.<br />Service providers for this - usually cheap and provide other helpful options like Anti Spam and Virus filtering for your inbound mail too.<br />Depending on your business or application, your servers being associated with an IP blacklist may have an adverse effect on your business apart from your mail. <br />Various web proxies and security appliances implement blacklist filtering. Some even use IP blacklists related to spam for HTTP filtering.<br />Amazon is actively addressing the issue<br />So it should be fixed soon.<br />
  4. 4. Challenges – What can you expect?<br />Elastic Load Balancer issues.<br />Client (Source) IP address in HTTP requests come to you as the Elastic Load Balancer IP. Reference the HTTP X-FORWARDED-FOR header for the actual client IP address.<br />Be wary of possible HTTP request header forgery. Amazon Load Balancers will append to HTTP X-FORWARDED-FOR request headers; not overwrite them.<br />Client (Source) IP address in an HTTPS configured Elastic Load Balancer not readily available in the HTTP header.<br />Elastic Load Balancers configured for HTTPS use don’t work at the HTTP protocol level (man in the middle issues) and use TCP instead. Referencing the Source IP address can be tricky but is possible using cookies/sessions before the HTTPS connection is established. Possibly there are other methods.<br />Apache, lighttpd, nginx Log File Formats to store X-FORWARDED-FOR address.<br />
  5. 5. Don’t panic<br />Despite a few of the previously mentioned inconveniences - the technology is sound, stable and actively supported and widely used across the globe by a huge community of users and contributors.<br />
  6. 6. Benefits<br />Seamless scaling for your application’s demand. <br />Easily handle massive volume at peak times and automatically scale down during slower periods. Know your traffic patterns.<br />Cheap.<br />Cheaper if you do it right.<br />Even cheaper if you pre-pay instances too.<br />You have to keep your eye on these expenses. Optimize your servers for the purpose of running as few as possible.<br />
  7. 7. Benefits<br />Amazon Elastic Load Balancing<br />Other major cloud service vendors don’t offer load balancing. Managing your own redundant load balancers involves overhead (and paranoia).<br />Hold up well under extreme conditions – our peak was 330 million HTTP requests in one day earlier this month.<br />Super cheap. $0.025 per hour.<br />API interaction with Elastic Load Balancers.<br />Use shell scripts or code to perform tasks related to your load balancer and it’s associated amazon server instances.<br />
  8. 8. Benefits<br />Custom Image Builds<br />Build your custom image (AMI) and deploy it across your network with ease.<br />Roll back to previous image builds if there is a problem. <br />Easily test and deploy your server optimizations.<br />You can do all of this with a small shell script.<br />
  9. 9. Benefits<br />APIs<br />EC2 API<br />Manage your EC2 instances – spawn new instances, terminate existing instances, manage your keys, security groups, …<br />Shell scripts implement the API too. Easy for non-programmers who have basic Linux shell scripting skills.<br />Elastic Load Balancer (ELB) API<br />Manage your Load Balancers easily, their configurations, their associated instances easily.<br />Shell scripts implement the API too. Easy for non-programmers.<br />Lots of cool uses of the API in existing applications.<br />The AWS Management console.<br />ElasticFox– a Firefox Plugin allows you to manage your EC2 instances and spawn new ones, among other things.<br />Many others.<br />
  10. 10. Benefits<br />EBS Volumes<br />Easily add more storage to your instance as needed.<br />EBS Volumes are block devices that attach to your instance as a device (/dev/sdc). <br />Format it yourself with your filesystem preferences and mount it where you prefer.<br />Unmount it and move it to different instances<br />But only in the same zone.<br />I/O rates are significantly higher than the default filesystem on instances. Good for MySQL, … or any critical data that is accessed frequently.<br />If your instance is terminated, the data on your EBS volume is still available and can be mounted somewhere else.<br />
  11. 11. Various Tips<br />Embrace the EC2/ELB API and their equivalent shell scripts. They will make your life easy.<br />Packages for the shell scripts are available for quick install under most Linux distributions.<br />Use them to perform actions on initial instance startup.<br />You can use wget to fetch various instance properties from Amazon (instance ID, …)<br />Fine tune your image builds for deployments<br />Keep an ‘image building server’ running to update your custom image builds as necessary.<br />Optimize, test, rebuild, …<br />Rsync – essential tool. <br />When you build a custom AMI it will have your source tree (at the time you build it), if you deploy updates to your source tree, new images you spin up will have old code. Rsync your source tree at boot time to make sure.<br />SSH – essential tool. <br />Use private key authentication and automate maintenance or statistics related actions as needed.<br />
  12. 12. Cloud Computing: Doing it wrong.<br />50 ssh sessions open on your desktop: bad.<br />
  13. 13. Cloud Computing: Doing it right<br />Spin up an instance and never worry about it. <br />It should automatically join a load balancer and serve requests.<br />It should have current source trees for your application - thanks to rsync.<br />Your MySQL replication should magically succeed with your refined custom image build.<br />There are some tricks to this, but you have some options.<br />It is worth mentioning that Amazon now has a relational database service (Amazon RDS) with supported database engines such as MySQL. It will actually provide asynchronous replication for you.<br />Or various equivalent issues for your own application. The point is that things should be automatic and they should work again and again.<br />Pay attention. Use scripts with the EC2/ELB API’s to monitor the status of your instances so you can uncover any issues that need resolution.<br />Also to kill servers you don’t need.<br />Or to spin up servers because you need more.<br />Debug servers that have a problem so you can fix it and build an updated AMI if necessary.<br />For example, check the number of HTTPD processes running.<br />Or the number of MySQL threads running.<br />Or the amount of space left on your instance partitions.<br />Or …<br />
  14. 14. Thanks!<br />Download this presentation and some example scripts from http://adcloudmedia.com/AWS-Startup/<br />Poll a load balancer and query the status of server instances associated with it.<br />Associate the current instance ID with a load balancer (useful for startup RC scripts).<br />Disassociate instances from a load balancer and terminate them (useful for shutdown RC scripts).<br />

×