wso2 con raspberry-pi-cluster

62
Raspberry Pi – WSO2 Style

Upload: afkhamazeez

Post on 13-May-2015

25.979 views

Category:

Technology


9 download

DESCRIPTION

How the Raspberry Pi cluster containing 24 RPis, was built

TRANSCRIPT

Page 1: Wso2 con raspberry-pi-cluster

Raspberry Pi – WSO2 Style

Page 2: Wso2 con raspberry-pi-cluster

Raspberry Pie?

Page 3: Wso2 con raspberry-pi-cluster

Raspberry Pie?

Page 4: Wso2 con raspberry-pi-cluster
Page 5: Wso2 con raspberry-pi-cluster

A humble beginning

IMG_20121220_124101.jpg

Page 6: Wso2 con raspberry-pi-cluster

What the Pi??

WSO2 middleware on Pi??

Page 7: Wso2 con raspberry-pi-cluster

High level plan

• Run Java on Pi• Run vanilla Carbon kernel on Pi• Run enhanced Carbon kernel on Pi• Use enhanced kernel with WSO2 AppServer• Conduct load tests to get an idea about performance on

Pi• Do something useful using GPIO functionality• Bootup script which will connect any Pi into AS cluster

Page 8: Wso2 con raspberry-pi-cluster

Supplying Power to a

Raspberry Pi Cluster

Page 9: Wso2 con raspberry-pi-cluster
Page 10: Wso2 con raspberry-pi-cluster
Page 11: Wso2 con raspberry-pi-cluster
Page 12: Wso2 con raspberry-pi-cluster
Page 13: Wso2 con raspberry-pi-cluster
Page 14: Wso2 con raspberry-pi-cluster
Page 15: Wso2 con raspberry-pi-cluster
Page 16: Wso2 con raspberry-pi-cluster
Page 17: Wso2 con raspberry-pi-cluster
Page 18: Wso2 con raspberry-pi-cluster
Page 19: Wso2 con raspberry-pi-cluster
Page 20: Wso2 con raspberry-pi-cluster
Page 21: Wso2 con raspberry-pi-cluster

Power Supply Schematic

Page 22: Wso2 con raspberry-pi-cluster

V = IRW = VI

Page 23: Wso2 con raspberry-pi-cluster
Page 24: Wso2 con raspberry-pi-cluster
Page 25: Wso2 con raspberry-pi-cluster
Page 26: Wso2 con raspberry-pi-cluster

Managing the work area

Page 27: Wso2 con raspberry-pi-cluster

Rack prototype #1

Page 28: Wso2 con raspberry-pi-cluster
Page 29: Wso2 con raspberry-pi-cluster
Page 30: Wso2 con raspberry-pi-cluster
Page 31: Wso2 con raspberry-pi-cluster

Rack prototype #2

Page 32: Wso2 con raspberry-pi-cluster
Page 33: Wso2 con raspberry-pi-cluster
Page 34: Wso2 con raspberry-pi-cluster
Page 35: Wso2 con raspberry-pi-cluster
Page 36: Wso2 con raspberry-pi-cluster
Page 37: Wso2 con raspberry-pi-cluster
Page 38: Wso2 con raspberry-pi-cluster
Page 39: Wso2 con raspberry-pi-cluster
Page 40: Wso2 con raspberry-pi-cluster

The final outcome

Page 41: Wso2 con raspberry-pi-cluster

Setting up the

Network

Page 42: Wso2 con raspberry-pi-cluster

Network setup

Page 43: Wso2 con raspberry-pi-cluster

Cluster Management&

Monitoring

Page 44: Wso2 con raspberry-pi-cluster

Pis everywhere!

Page 45: Wso2 con raspberry-pi-cluster

Too many instances to manage!

Page 46: Wso2 con raspberry-pi-cluster

GPIO

Page 47: Wso2 con raspberry-pi-cluster

The App

• wso2con.com/m• Android• iOS

Page 48: Wso2 con raspberry-pi-cluster

API Dashboards

wso2con.com/m

Page 49: Wso2 con raspberry-pi-cluster

Software Optimizations

Page 50: Wso2 con raspberry-pi-cluster

Carbon kernel & AppServer enhancements

• Run in worker mode without any admin services• Disable unused deployers• Lazy loading deployment artifacts• Cut down bootup time from 5 minutes to 1.5 minutes• Bleeding edge Hazelcast based clustering

implementation

Page 51: Wso2 con raspberry-pi-cluster

Software• OS

• Raspbian “wheezy”• Linux kernel

• Linux raspberrypi 3.2.27+ #250 PREEMPT Thu Oct 18 19:03:02 BST 2012 armv6l GNU/Linux• JAVA

• Java(TM) SE Embedded Runtime Environment (build 1.7.0_10-b18, headless)• Python

• Python 2.7.3 • python-dev

• GPIO• RPi.GPIO-0.4.1a

• WSO2• AppServer with enhanced Carbon kernel

Page 52: Wso2 con raspberry-pi-cluster

Other Experiments

Page 53: Wso2 con raspberry-pi-cluster

LXC on Raspberry Pi

Page 54: Wso2 con raspberry-pi-cluster

LXC on Raspberry Pi

Page 55: Wso2 con raspberry-pi-cluster
Page 56: Wso2 con raspberry-pi-cluster
Page 57: Wso2 con raspberry-pi-cluster

LXC on Raspberry Pi

Page 58: Wso2 con raspberry-pi-cluster
Page 59: Wso2 con raspberry-pi-cluster

No Raspberry Pis were harmed

in this production

Page 60: Wso2 con raspberry-pi-cluster

But we managed to explode

few capacitors

Page 61: Wso2 con raspberry-pi-cluster

Questions?

Page 62: Wso2 con raspberry-pi-cluster

Thank you