weaving containers in amazon's eca

19
Weaving containers in Amazon's ECS Alfonso Acosta Software Engineer at Weaveworks

Upload: amazon-web-services

Post on 12-Jan-2017

838 views

Category:

Business


0 download

TRANSCRIPT

Page 1: Weaving Containers in Amazon's ECA

Weaving containers in Amazon's ECS

Alfonso AcostaSoftware Engineer at Weaveworks

Page 2: Weaving Containers in Amazon's ECA
Page 3: Weaving Containers in Amazon's ECA

Outline1.Problem statement2.What's Weave?3.What's ECS?4.Weave+ECS5.Future work

Page 4: Weaving Containers in Amazon's ECA

Problem statement

No ELBs No config

Page 5: Weaving Containers in Amazon's ECA

What's Weaveworks

Founded in 2014Goals:

connect, observe and control containerssimple to usedeveloper friendly

Weave passes Mårten Mickos' 15 min test - Adrian Cockroft

Page 6: Weaving Containers in Amazon's ECA

Not only a SDN

Weave Net: Overlay container network

Page 7: Weaving Containers in Amazon's ECA

Not only a SDN

Weave Run: IPAM, LB, SD (weaveDNS) ...

Page 8: Weaving Containers in Amazon's ECA

Not only a SDN

Weave Scope: Container visualization

Page 9: Weaving Containers in Amazon's ECA

Weave Demo

Page 10: Weaving Containers in Amazon's ECA

ECS

Page 11: Weaving Containers in Amazon's ECA

ECS

? ?

Page 12: Weaving Containers in Amazon's ECA

ECS+Weave

Page 13: Weaving Containers in Amazon's ECA

Data producer

while true; do

# Get IP

IP=`hostname -i | awk '{ print $1 }'`

# Offer data on port 4540

echo "Hi, this is the data producer in $IP" | nc -

q 0 -l -p 4540

done

Page 14: Weaving Containers in Amazon's ECA

"HTTP" Server

while true; do

# Get a message from a data producer

DATA_PRODUCER_MESSAGE=`nc dataproducer 4540`

# Render message

HTML="… <h1>Chosen data producer message:<\/h1>

<h2>${DATA_PRODUCER_MESSAGE}<\/h2> … "

echo "$HTML" | nc -q 0 -l -p 80

done

Page 15: Weaving Containers in Amazon's ECA

Weave+ECS Demo

Page 16: Weaving Containers in Amazon's ECA

Scope 'Cloud' (private beta)

Page 17: Weaving Containers in Amazon's ECA

Future work

Lift AutoScaling group limitationEasily join Autoscaling Groups/CloudsFast Data Path (Open vSwitch support) ✓

Page 18: Weaving Containers in Amazon's ECA

Recap

Weave provides a SDN but alsoIPAMLoad BalancingService DiscoveryVisualization

You can use Weave's AMI to integrate Weave in Amazon's ECS

Page 19: Weaving Containers in Amazon's ECA

Questions?

@[email protected]

Presentation based on

Weave's ECS Guide