17. Longer latency in AWS
On-premise
time=0.063 ms
time=0.083 ms
time=0.077 ms
time=0.070 ms
time=0.092 ms
time=0.069 ms
time=0.077 ms
AWS, extreme case
time=1.88 ms
time=1.96 ms
time=2.60 ms
time=3.72 ms
time=2.46 ms
time=1.05 ms
time=2.37 ms
20. Longer latency in AWS (3)
This is not always true
Just an extreme case
This applies to intra-AZ
“Option” to group servers in
near racks would be great
22. Possible workarounds
Assume the latency
Design your app accordingly
Use persistent connections
Put hot data on local
Still, lower latency gives
“extra” room
43. Bugs can be fatal
A bug can destroy your
whole system
What if you accidentally
Terminate an instance
Set a wrong route table
Delete RR from Route53
44. “Sandbox” for testing
VPC is (sometimes) not
enough
Test 100% bootstrap in a
safe environment
Register IAM accounts
Add Route53 zones
Set up S3 buckets, etc…
45. Framework for testing
Test-kitchen to test your
Chef cookbooks
Serverspec to test your
server setups
How do you verify your
changes to AWS?
46. Possible workarounds
Use a separate account
Maybe we need more
environments in the future?
Costs money
CloudFormer converts
environments to
configuration
47. Scenario #1
You add a new rule to your
security group
aws ec2 authorize-security-…
You want to make sure a
port is open or closed
between particular hosts
How?
48. Workaround #1
Create a new VPC
Apply the new rule
Launch two instances
Check connectivity
49. Scenario #2
You set up Route53 Health
Checks
Now you want to test if it
actually fails-over
How?
50. Workaround #2
Set up two ELBs / instances
Stop instances registered to
one ELB
Query to R53 until it fails-
over
51. Need a solution!
A “common language” to
verify AWS configuration
Want to run tests
cheaper, quicker and safer
Even the requirements are
not yet clear…
53. What makes AWS invincible?
Lower latency
Giving options or hints to EC2
“Playback” feature
Generate CLI commands
using simple UI
Testing methodology