Raspberry Pi – WSO2 Style
Raspberry Pie?
Raspberry Pie?
A humble beginning



         IMG_20121220_124101.jpg
What the Pi??
      WSO2 middleware
          on Pi??
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
Supplying Power
       to a
Raspberry Pi Cluster
Power Supply Schematic
V = IR
W = VI
Managing the work
      area
Rack prototype #1
Rack prototype #2
The final outcome
Setting up
    the
 Network
Network setup
Cluster Management
         &
     Monitoring
Pis everywhere!
Too many instances to manage!
GPIO
The App

• wso2con.com/m
• Android
• iOS
API Dashboards

wso2con.com/m
Software
Optimizations
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
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
Other Experiments
LXC on Raspberry Pi
LXC on Raspberry Pi
LXC on Raspberry Pi
No Raspberry Pis
    were harmed
in this production 
But we managed to
     explode
  few capacitors
Questions?
Thank you

Wso2 con raspberry-pi-cluster

Editor's Notes