SlideShare ist ein Scribd-Unternehmen logo
1 von 34
sean666666@gmail.com, 2013 P1
Cloud OS development
Sean Chang
2013/6
sean666666@gmail.com, 2013 P2
Agenda
• Software Defined XXX
• What we did in Cloud OS
• What we did actually in Cloud
• Yesterday & Today
• Conclusion
sean666666@gmail.com, 2013 P3
What the hell is Cloud Computing ?
• 5 features of NIST Definition
o On-demand self-service
o Broad network access
o Resource pooling
o Rapid elasticity
o Measured Service
sean666666@gmail.com, 2013 P4
Who care …
sean666666@gmail.com, 2013 P5
Cloud computing is…(personal defininition)
App, Web…anything provide fantastic user experience
anytime/anywhere/any-device.
sean666666@gmail.com, 2013 P6
Leading character(legecy…)
Photo:
- www.bulandwaterandair.com
- www.countryfarm.url.tw
sean666666@gmail.com, 2013 P7
IaaS with Software
• Software Defined XXX
sean666666@gmail.com, 2013 P8
IaaS Roadmap
…
Networking
Storage
Virtualization
Photo:
- www.slashgear.com
- softwarestrategiesblog.com/
Data Center
sean666666@gmail.com, 2013 P9
Our Cloud OS
COS
Cloud OS
sean666666@gmail.com, 2013 P10
Targets
• Design criterion
o Adapt multiple enterprise scale from 1 physical
machines to over thousands machines.
o Fast deploy
– One disc & scripts & inventories
o Tightly but loosely software design components
for both of all-in-one one stop shopping and
single patent module.
o Allow cloud computing resources scale
horizontal and vertical dynamically without
timeout service.
sean666666@gmail.com, 2013 P11
Physical machine roles
Roles Description Implementations
Web
- UI
- Restful API
- Server load balance
- Pylons 1.0
- Nginx
- Spring MVC
- jQuery 1.3.2
Center
- Master node
- >2 nodes suggestion for HA
- Dynamically scale out
- Global DB
- python 2.6
- CentOS 5.4
- Spring IoC
- PostgreSQL 8.4
- Libvirt 0.8.8
Host
- Computing node
- Support Multi-Hypervisor
- HA each other
- Xen 3.4
- KVM 0.11
Storage
- Share storage
- Volume:save image, vdisk,
meta-data…etc
- XML
- NFS
- iSCSI
- SAN
Develop Date:2010
sean666666@gmail.com, 2013 P12
COS Deployment
Web Layer
Center Layer
Host Layer
Storage Layer
DB
…
…
…
DB
DB Cluster
…
…
Persistent data
Persistent data
PXE
DHCP
RPM
sean666666@gmail.com, 2013 P13
COS operations
• Software-defined Cloud OS
• Enable with python environment
• Fast & auto deploy
• Machines’ role play defined by asking Center with configurations
• Machines’ role convert dynamically
• Machines’ HA by heartbeat
• VMs service also have HA
• Master & Slave
sean666666@gmail.com, 2013 P14
Role changable
Center
Computing
Node
Storage
Center
Computing
Node
Storage
Computing
Node
Computing
Node
Computing
Node
Computing
Node
Computing
Node
Computing
Node
Center
Storage
Storage
sean666666@gmail.com, 2013 P15
Web architecture
COS Web
View Controller
COS Center
Browser
JavaScript
jQueryHtml
CSS
AJAX mako
RPC
Pyro
RESTful
Model
HTTP/HTTPS
SpringPython
Python
COSLib
AAA
Pylons
Pyro
sean666666@gmail.com, 2013 P16
COS modules
Cloud
Manager
Hypervisor
ControlImage
Repository
Snapshot
DB
HA
Monitor
Auto
Scaling
Alarm
Portal
AAA
UI
Drag&Drop
Web
Center
Storage
Deploy
sean666666@gmail.com, 2013 P17
Networking segments configuration
• Service network
o public ip of VMs
• Function network
o intranet for dev/servers communication
• Storage network
o intranet for access storages
sean666666@gmail.com, 2013 P18
Troubles
• jQuery effects and animations was not so
fancy before.
• Fire in a hole
o Unstable open source.
• Show me the money
• Very less practices to learn.
• New team without institution.
sean666666@gmail.com, 2013 P19
Poor’s DEV/Test approach
• Every developer only own <2 machines.
• How did we do integration testing ?
COS Web
(COS/web)
COS Center
(COSl/center)
COMS system call
DEV port
COS/
springWeb.xml
dynavirtual_3_0/
dev-springWeb.xml
config/
dev-service.ini
config/
service.ini
Configures by each developer
sean666666@gmail.com, 2013 P20
Poor’s teamwork approaches
• Free Git server
o Customized it
– Combine requirement forms
– Build configuration management institution
• Free issue tracking system
o Integrated with Git
sean666666@gmail.com, 2013 P21
Attitude of using open source
• Open source is one kind of fantastic
solution, but also a poison.
• Taiwan should not only learn how to use it,
but also learn more spirits inside.
o Write the great code
o Design & Architecture
o Vision
sean666666@gmail.com, 2013 P22
VM running status Log from Libvirt
sean666666@gmail.com, 2013 P23
23
Good artists copy, great artists steal
• Steal the solution of VirtManager
>>> dir(conn)
o listDomainsID
o listDefinedDomains
sean666666@gmail.com, 2013 P24
VM vLan switching
• No API in the past
o # brctl
peth0
peth1
eth0
vif0.0
vif1.0
xenbr0
xenbr1
dom0 dom1
eth0
eth1vif1.1
sean666666@gmail.com, 2013 P25
Snapshot
• No snapshot API in the past
o VHD2
o Xen4.0
• Deal with Memory and Disk separately
o Libvirt API
o qcow2 + cmd
sean666666@gmail.com, 2013 P26
Hardware Stress Issues
• Pay bananas, get monkeys
o Network cards
– We broken 3 ethernet cards in one day…
o Storage
– NFS ?
– ZFS ?
– NetAPP ?
– Microsoft Storage Sever 2012 ?
sean666666@gmail.com, 2013 P27
Future
• Increase modules
o Analyzer
o Image transformer
o Auto test
• Software Define Networking
• Software Define Storage
o Disaster recovery
sean666666@gmail.com, 2013 P28
Do we really earn money ?
• Business model ?
Photo: abcnews.go.com
sean666666@gmail.com, 2013 P29
ROI of pure public cloud service
0
200
400
600
800
1000
1200
CAPEX OPEX Revenue(every year)
Employees
IDC
Guest OS
Hypervisor
Hardware
Income
300 VMs (2 cores, 2G memory) scale
(unit: $)
sean666666@gmail.com, 2013 P30
ROI in large scale
0
10000
20000
30000
40000
50000
60000
70000
80000
CAPEX OPEX Revenue(every year)
Employees
IDC
Guest OS
Hypervisor
Hardware
Income
30,000 VMs scale
(unit: $)
sean666666@gmail.com, 2013 P31
CAPEX
Hypervisor
Hardware
Guest OS
CAPEX analysis
30%
30%
40%
Photo: freephotoshop.org
sean666666@gmail.com, 2013 P32
Communities today
Photo: www.qyjohn.net
sean666666@gmail.com, 2013 P33
Conclusion
• Heaven or Hell depends on what kind of hardware
you use.
• Large scale! Please !
o 程辉:新浪SAE云计算平台架构
• Hardware is not critical for TW’s Cloud supply
chain. Software could leverage TW in the whole
IT world. And better late than never.
• Grade A player oriented.
• Keep learning.
sean666666@gmail.com, 2013 P34
Keep walking …

Weitere ähnliche Inhalte

Was ist angesagt?

Build public private cloud using openstack
Build public private cloud using openstackBuild public private cloud using openstack
Build public private cloud using openstack
Framgia Vietnam
 
Session 4 - News from ACS Community
Session 4 - News from ACS CommunitySession 4 - News from ACS Community
Session 4 - News from ACS Community
tcloudcomputing-tw
 

Was ist angesagt? (20)

Introduction to CloudStack
Introduction to CloudStack Introduction to CloudStack
Introduction to CloudStack
 
Guaranteeing Storage Performance by Mike Tutkowski
Guaranteeing Storage Performance by Mike TutkowskiGuaranteeing Storage Performance by Mike Tutkowski
Guaranteeing Storage Performance by Mike Tutkowski
 
Apache CloudStack from API to UI
Apache CloudStack from API to UIApache CloudStack from API to UI
Apache CloudStack from API to UI
 
Automating CloudStack and hypervisor installation and configuration
Automating CloudStack and hypervisor installation and configurationAutomating CloudStack and hypervisor installation and configuration
Automating CloudStack and hypervisor installation and configuration
 
CloudStack Overview
CloudStack OverviewCloudStack Overview
CloudStack Overview
 
CloudStack Architecture
CloudStack ArchitectureCloudStack Architecture
CloudStack Architecture
 
Cloud stack networking shapeblue technical deep dive
Cloud stack networking   shapeblue technical deep diveCloud stack networking   shapeblue technical deep dive
Cloud stack networking shapeblue technical deep dive
 
Introduction to Apache CloudStack by David Nalley
Introduction to Apache CloudStack by David NalleyIntroduction to Apache CloudStack by David Nalley
Introduction to Apache CloudStack by David Nalley
 
Deploying Apache CloudStack from API to UI
Deploying Apache CloudStack from API to UIDeploying Apache CloudStack from API to UI
Deploying Apache CloudStack from API to UI
 
The Future of SDN in CloudStack by Chiradeep Vittal
The Future of SDN in CloudStack by Chiradeep VittalThe Future of SDN in CloudStack by Chiradeep Vittal
The Future of SDN in CloudStack by Chiradeep Vittal
 
CloudStack vs OpenStack
CloudStack vs OpenStackCloudStack vs OpenStack
CloudStack vs OpenStack
 
Building clouds with apache cloudstack apache roadshow 2018
Building clouds with apache cloudstack   apache roadshow 2018Building clouds with apache cloudstack   apache roadshow 2018
Building clouds with apache cloudstack apache roadshow 2018
 
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
Introduction to CloudStack: How to Deploy and Manage Infrastructure-as-a-Serv...
 
CloudStack-Developer-Day
CloudStack-Developer-DayCloudStack-Developer-Day
CloudStack-Developer-Day
 
CloudStack Hyderabad Meetup: How the Apache community works
CloudStack Hyderabad Meetup: How the Apache community worksCloudStack Hyderabad Meetup: How the Apache community works
CloudStack Hyderabad Meetup: How the Apache community works
 
Decisions behind hypervisor selection in CloudStack 4.3
Decisions behind hypervisor selection in CloudStack 4.3Decisions behind hypervisor selection in CloudStack 4.3
Decisions behind hypervisor selection in CloudStack 4.3
 
Build public private cloud using openstack
Build public private cloud using openstackBuild public private cloud using openstack
Build public private cloud using openstack
 
Hypervisor Selection in Apache CloudStack 4.4
Hypervisor Selection in Apache CloudStack 4.4Hypervisor Selection in Apache CloudStack 4.4
Hypervisor Selection in Apache CloudStack 4.4
 
LISA2017 Big Three Cloud Networking
LISA2017 Big Three Cloud NetworkingLISA2017 Big Three Cloud Networking
LISA2017 Big Three Cloud Networking
 
Session 4 - News from ACS Community
Session 4 - News from ACS CommunitySession 4 - News from ACS Community
Session 4 - News from ACS Community
 

Ähnlich wie Cloud OS development

Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...
Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...
Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...
Spark Summit
 
A Day in the Life of a Druid Implementor and Druid's Roadmap
A Day in the Life of a Druid Implementor and Druid's RoadmapA Day in the Life of a Druid Implementor and Druid's Roadmap
A Day in the Life of a Druid Implementor and Druid's Roadmap
Itai Yaffe
 
Netflix oss season 2 episode 1 - meetup Lightning talks
Netflix oss   season 2 episode 1 - meetup Lightning talksNetflix oss   season 2 episode 1 - meetup Lightning talks
Netflix oss season 2 episode 1 - meetup Lightning talks
Ruslan Meshenberg
 
Big Data in 200 km/h | AWS Big Data Demystified #1.3
Big Data in 200 km/h | AWS Big Data Demystified #1.3  Big Data in 200 km/h | AWS Big Data Demystified #1.3
Big Data in 200 km/h | AWS Big Data Demystified #1.3
Omid Vahdaty
 

Ähnlich wie Cloud OS development (20)

Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Berlin 2017
 
Thinking DevOps in the Era of the Cloud - Demi Ben-Ari
Thinking DevOps in the Era of the Cloud - Demi Ben-AriThinking DevOps in the Era of the Cloud - Demi Ben-Ari
Thinking DevOps in the Era of the Cloud - Demi Ben-Ari
 
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
Monitoring Big Data Systems Done "The Simple Way" - Codemotion Milan 2017 - D...
 
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
Demi Ben-Ari - Monitoring Big Data Systems Done "The Simple Way" - Codemotion...
 
Hybrid Transactional/Analytics Processing with Spark and IMDGs
Hybrid Transactional/Analytics Processing with Spark and IMDGsHybrid Transactional/Analytics Processing with Spark and IMDGs
Hybrid Transactional/Analytics Processing with Spark and IMDGs
 
Kick starting Network Automation
Kick starting Network AutomationKick starting Network Automation
Kick starting Network Automation
 
Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...
Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...
Going Real-Time: Creating Frequently-Updating Datasets for Personalization: S...
 
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems Done "The Simple Way" - Demi Ben-Ari - Codemotion...
 
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
Monitoring Big Data Systems "Done the simple way" - Demi Ben-Ari - Codemotion...
 
A Day in the Life of a Druid Implementor and Druid's Roadmap
A Day in the Life of a Druid Implementor and Druid's RoadmapA Day in the Life of a Druid Implementor and Druid's Roadmap
A Day in the Life of a Druid Implementor and Druid's Roadmap
 
Networking Challenges for the Next Decade
Networking Challenges for the Next DecadeNetworking Challenges for the Next Decade
Networking Challenges for the Next Decade
 
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
OVHcloud Tech Talks S01E09 - OVHcloud Data Processing : Le nouveau service po...
 
SDN Demystified, by Dean Pemberton [APNIC 38]
SDN Demystified, by Dean Pemberton [APNIC 38]SDN Demystified, by Dean Pemberton [APNIC 38]
SDN Demystified, by Dean Pemberton [APNIC 38]
 
Netflix oss season 2 episode 1 - meetup Lightning talks
Netflix oss   season 2 episode 1 - meetup Lightning talksNetflix oss   season 2 episode 1 - meetup Lightning talks
Netflix oss season 2 episode 1 - meetup Lightning talks
 
NetflixOSS Meetup season 3 episode 1
NetflixOSS Meetup season 3 episode 1NetflixOSS Meetup season 3 episode 1
NetflixOSS Meetup season 3 episode 1
 
Video Analysis in Hadoop
Video Analysis in HadoopVideo Analysis in Hadoop
Video Analysis in Hadoop
 
The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!
The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!
The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!
 
Big Data in 200 km/h | AWS Big Data Demystified #1.3
Big Data in 200 km/h | AWS Big Data Demystified #1.3  Big Data in 200 km/h | AWS Big Data Demystified #1.3
Big Data in 200 km/h | AWS Big Data Demystified #1.3
 
"How overlay networks can make public clouds your global WAN" by Ryan Koop o...
 "How overlay networks can make public clouds your global WAN" by Ryan Koop o... "How overlay networks can make public clouds your global WAN" by Ryan Koop o...
"How overlay networks can make public clouds your global WAN" by Ryan Koop o...
 
Introducción a Microsoft Azure 2023
Introducción a Microsoft Azure 2023Introducción a Microsoft Azure 2023
Introducción a Microsoft Azure 2023
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Cloud OS development

  • 1. sean666666@gmail.com, 2013 P1 Cloud OS development Sean Chang 2013/6
  • 2. sean666666@gmail.com, 2013 P2 Agenda • Software Defined XXX • What we did in Cloud OS • What we did actually in Cloud • Yesterday & Today • Conclusion
  • 3. sean666666@gmail.com, 2013 P3 What the hell is Cloud Computing ? • 5 features of NIST Definition o On-demand self-service o Broad network access o Resource pooling o Rapid elasticity o Measured Service
  • 5. sean666666@gmail.com, 2013 P5 Cloud computing is…(personal defininition) App, Web…anything provide fantastic user experience anytime/anywhere/any-device.
  • 6. sean666666@gmail.com, 2013 P6 Leading character(legecy…) Photo: - www.bulandwaterandair.com - www.countryfarm.url.tw
  • 7. sean666666@gmail.com, 2013 P7 IaaS with Software • Software Defined XXX
  • 8. sean666666@gmail.com, 2013 P8 IaaS Roadmap … Networking Storage Virtualization Photo: - www.slashgear.com - softwarestrategiesblog.com/ Data Center
  • 9. sean666666@gmail.com, 2013 P9 Our Cloud OS COS Cloud OS
  • 10. sean666666@gmail.com, 2013 P10 Targets • Design criterion o Adapt multiple enterprise scale from 1 physical machines to over thousands machines. o Fast deploy – One disc & scripts & inventories o Tightly but loosely software design components for both of all-in-one one stop shopping and single patent module. o Allow cloud computing resources scale horizontal and vertical dynamically without timeout service.
  • 11. sean666666@gmail.com, 2013 P11 Physical machine roles Roles Description Implementations Web - UI - Restful API - Server load balance - Pylons 1.0 - Nginx - Spring MVC - jQuery 1.3.2 Center - Master node - >2 nodes suggestion for HA - Dynamically scale out - Global DB - python 2.6 - CentOS 5.4 - Spring IoC - PostgreSQL 8.4 - Libvirt 0.8.8 Host - Computing node - Support Multi-Hypervisor - HA each other - Xen 3.4 - KVM 0.11 Storage - Share storage - Volume:save image, vdisk, meta-data…etc - XML - NFS - iSCSI - SAN Develop Date:2010
  • 12. sean666666@gmail.com, 2013 P12 COS Deployment Web Layer Center Layer Host Layer Storage Layer DB … … … DB DB Cluster … … Persistent data Persistent data PXE DHCP RPM
  • 13. sean666666@gmail.com, 2013 P13 COS operations • Software-defined Cloud OS • Enable with python environment • Fast & auto deploy • Machines’ role play defined by asking Center with configurations • Machines’ role convert dynamically • Machines’ HA by heartbeat • VMs service also have HA • Master & Slave
  • 14. sean666666@gmail.com, 2013 P14 Role changable Center Computing Node Storage Center Computing Node Storage Computing Node Computing Node Computing Node Computing Node Computing Node Computing Node Center Storage Storage
  • 15. sean666666@gmail.com, 2013 P15 Web architecture COS Web View Controller COS Center Browser JavaScript jQueryHtml CSS AJAX mako RPC Pyro RESTful Model HTTP/HTTPS SpringPython Python COSLib AAA Pylons Pyro
  • 16. sean666666@gmail.com, 2013 P16 COS modules Cloud Manager Hypervisor ControlImage Repository Snapshot DB HA Monitor Auto Scaling Alarm Portal AAA UI Drag&Drop Web Center Storage Deploy
  • 17. sean666666@gmail.com, 2013 P17 Networking segments configuration • Service network o public ip of VMs • Function network o intranet for dev/servers communication • Storage network o intranet for access storages
  • 18. sean666666@gmail.com, 2013 P18 Troubles • jQuery effects and animations was not so fancy before. • Fire in a hole o Unstable open source. • Show me the money • Very less practices to learn. • New team without institution.
  • 19. sean666666@gmail.com, 2013 P19 Poor’s DEV/Test approach • Every developer only own <2 machines. • How did we do integration testing ? COS Web (COS/web) COS Center (COSl/center) COMS system call DEV port COS/ springWeb.xml dynavirtual_3_0/ dev-springWeb.xml config/ dev-service.ini config/ service.ini Configures by each developer
  • 20. sean666666@gmail.com, 2013 P20 Poor’s teamwork approaches • Free Git server o Customized it – Combine requirement forms – Build configuration management institution • Free issue tracking system o Integrated with Git
  • 21. sean666666@gmail.com, 2013 P21 Attitude of using open source • Open source is one kind of fantastic solution, but also a poison. • Taiwan should not only learn how to use it, but also learn more spirits inside. o Write the great code o Design & Architecture o Vision
  • 22. sean666666@gmail.com, 2013 P22 VM running status Log from Libvirt
  • 23. sean666666@gmail.com, 2013 P23 23 Good artists copy, great artists steal • Steal the solution of VirtManager >>> dir(conn) o listDomainsID o listDefinedDomains
  • 24. sean666666@gmail.com, 2013 P24 VM vLan switching • No API in the past o # brctl peth0 peth1 eth0 vif0.0 vif1.0 xenbr0 xenbr1 dom0 dom1 eth0 eth1vif1.1
  • 25. sean666666@gmail.com, 2013 P25 Snapshot • No snapshot API in the past o VHD2 o Xen4.0 • Deal with Memory and Disk separately o Libvirt API o qcow2 + cmd
  • 26. sean666666@gmail.com, 2013 P26 Hardware Stress Issues • Pay bananas, get monkeys o Network cards – We broken 3 ethernet cards in one day… o Storage – NFS ? – ZFS ? – NetAPP ? – Microsoft Storage Sever 2012 ?
  • 27. sean666666@gmail.com, 2013 P27 Future • Increase modules o Analyzer o Image transformer o Auto test • Software Define Networking • Software Define Storage o Disaster recovery
  • 28. sean666666@gmail.com, 2013 P28 Do we really earn money ? • Business model ? Photo: abcnews.go.com
  • 29. sean666666@gmail.com, 2013 P29 ROI of pure public cloud service 0 200 400 600 800 1000 1200 CAPEX OPEX Revenue(every year) Employees IDC Guest OS Hypervisor Hardware Income 300 VMs (2 cores, 2G memory) scale (unit: $)
  • 30. sean666666@gmail.com, 2013 P30 ROI in large scale 0 10000 20000 30000 40000 50000 60000 70000 80000 CAPEX OPEX Revenue(every year) Employees IDC Guest OS Hypervisor Hardware Income 30,000 VMs scale (unit: $)
  • 31. sean666666@gmail.com, 2013 P31 CAPEX Hypervisor Hardware Guest OS CAPEX analysis 30% 30% 40% Photo: freephotoshop.org
  • 32. sean666666@gmail.com, 2013 P32 Communities today Photo: www.qyjohn.net
  • 33. sean666666@gmail.com, 2013 P33 Conclusion • Heaven or Hell depends on what kind of hardware you use. • Large scale! Please ! o 程辉:新浪SAE云计算平台架构 • Hardware is not critical for TW’s Cloud supply chain. Software could leverage TW in the whole IT world. And better late than never. • Grade A player oriented. • Keep learning.