SlideShare une entreprise Scribd logo
1  sur  26
Integrating OpenStack to
  Existing Infrastructure




         Cheng, Hui
      freedomhui@gmail.com
                                      1
                             2012-04-19
Agenda
Background
●   Who We Are
●   Infrastructure & Platform
●   Challenges

Integration Challenges
●   Network Deployment
●   Security Consideration
●   Load Balancer
●   Swift Evaluation

Our Contributions
●   Billing
●   Monitoring


                                         2
Who Are We
                                      Sina.com
                                      • Largest infotainment web portal in China
                                      • Provides various on-line services, like news, Finance,
                                      video, email, blog hosting, etc.
                                      • Operates first PaaS cloud computing platform




Sina Weibo
• twitter-like microblog service
• over 300m users
• huge influence on China's society



             We are building a reliable, scalable and secure
          infrastructure and platform to support our business.

                                                                                             3
Infrastructure & Platform
Physical Servers
Traditional Operation

Virtualization Platform(IaaS)
●VM Management System(VMMS) → Sina Web

Service(SWS)
●VMMS is private solution developed in-house

●SWS is based on OpenStack




Application Platform(PaaS)
●Virtual Host → Sina App Engine(SAE)

●SAE provides both Public and Private Service.

●Proved to be Efficient and Robust




                                                 4
Sina App Engine
• No. 1 Public PaaS Platform in
China launched in Nov 2009
• PHP, Python, Java and Ruby
Support
• Numbers
160,000+ developers
200,000+ apps on SAE
800 million page views per day
20+ Services
• SAE Cloud Storage Service is replaced by Swift
• Deploy SAE on OpenStack



                                                   5
Challenges

SAE meets the majority of business needs, but does not cover
all, especially for web games

Customers require full   stack of cloud computing
We Choose OpenStack as our IaaS solution




                                                               8
Why Choose OpenStack



  100% Python & Open Source




                              9
OpenStack Deployment
                                    Rabbit
                                    MySQL
   dashboard
                                                           schedule
               nova-api

                          nova-compute                nova-compute
                          nova-network                nova-network
               keystone


                                             glance
Sina SSO

                                                                 Swift




                                                                         10
Nova Network
Networking is the biggest challenges for IaaS
Network Topology:
•   VLAN
•   FlatDHCP
•   FlatDHCP & Multihost




                                                11
Network Topology --- VLAN
Capability:
• Accessibility of VMs within one tenant
• Isolation of VMs from different tenants
• VM is able to access public network
• VM can be accessible from public network
• Isolation between virtual network and
  internal network




 Drawback:
 • Pre-allocate network for future projects
 • Traffic bottleneck in the NAT gateway




                                              12
Network Topology(Flat)
Capability:
• Accessibility of all VMs in the fixed IP range
• VM is able to access public network
• VM can be accessible from public network
• Full isolation between virtual network and
  internal network


Drawback:
Tenant isolation lessens
Traffic bottleneck in the NAT gateway




                                                   13
Network Topology(Flat &
                  Multihost)
Capability:
• Accessibility of all VMs in the fixed IP range
• VM is able to access public network
• VM can be accessible from public network

Bonus:
• Totally distributed architecture avoid
  single-point failure.
• Multiple gateway eliminates NAT bottleneck
• High throughout between OS regions

Drawback:
• Tenant isolation lessens
• Need security facility(SWS-filter) to protect
   intranet



           If security problems were solved, this would be our best choice!

                                                                              14
Security in OpenStack
Security Group --- Layer 3 Filter          Static filters --- Layer 2 Filter
Role-based firewall                        MAC, IP, and ARP spoofing protection
  One security group is a Role             Not configurable
Ingress filtering                           Defined in /etc/libvirt/nwfilter/*.xml
  Target is the instance                  Implemented by ebtables
  Source can be CIDR or another group      ebtables -t nat --list
Implemented by iptables
  See details: iptables -t filter -n -L
  Whitelist mechanism(ACCEPT rules)




                                                                               15
Security Enhancement
SWS Filter

Prevent Intranet Penetration
• Intranet is the internal network outside of
  OpenStack
Egress filtering
• Target is internal network
• Source is instances in OpenStack
Implementation
• Whitelist mechanism(ACCEPT rules)
• On the top of nova-filter-top Forward
  Chain

Rational
• SWS filter is managed by cloud manager
• Only explicit authorized packets can reach Internal network C
• Packet should be controlled within Compute Node



                                                                  16
Security Enhancement
Security Group VS SWS Filter




                                     17
Load Balancer
Design

Load Balance
• Dispatch request                                  DNS Acceleration Design
• Support multiple routing algorithm
• Health check
                                                                        Smart DNS
Acceleration
• Reality: narrow bandwidth between ISPs
• Building fiber channels from ISPs to pivot        Public Network
• Given the same endpoint within user’s ISP

IPv4 Shortage                             Telecom      Unicom     Mobile        Others ISP
• Reality: dozens of public IPs support
   hundreds of VMs                                   High speed fiber channel
• IPv4 has been exhausted
• IPv6 is not realistic yet in China
                                                                Pivot



                                                                                     18
Load Balancer
Layer 7 Load Balancer
Consideration:
1. dispatch request by Host header
2. nginx module




                                      19
Load Balancer
Layer 4 Load Balancer
Consideration:
1. dispatch request by TCP port
2. lvs + haproxy




                                      20
Swift Evaluation
   Extremely Durable and Highly Available
   Superior Scalability
   Linear Growth of Performance
   Symmetric Architecture
   No Single-failure
   Simple & Reliable




                                             21
Swift Evaluation
                                                       • 1 Zone = 1 Physical Server with 12x2T disk
                            GET abc.png                • Write/Read applies quorum protocol
                   PUT abc.png


                                      Load Balancer


   Zone1              Zone2                  Zone3                 Zone4              Zone5

 Proxy Server       Proxy Server           Proxy Server          Proxy Server       Proxy Server




Object Server      Object Server          Object Server          Object Server      Object Server

Container Server   Container Server       Container Server      Container Server   Container Server


Account Server     Account Server         Account Server         Account Server     Account Server


                                                                                                      22
Swift Evaluation

   Swift packages
    Proxy Server
   Account Server
  Container Server
    Object Server            Physical Deployment




                                          Storage Nodes
 OS installation


      sda            sdb          sdc        sdd                sdk
      raid 1                                              ……
disk1      disk2     disk3        disk4      disk5             disk12


                                                                        23
Swift Evaluation
Performance issue
CPU utilization rate up to 100% even without request

Testing environment:                 Audit:
Nodes: 5 x Dell R510                 swift-account-auditor :     1.5m
CPU: Intel® Xeon® E5360              swift-account-replicator:   9.5m
Memory: 12GB
Replica: 3                           swift-container-auditor:    8.4m
                                     swift-container-replicator: 9.3m
No. of Objects:    150,000,000       swift-container-updater: 19.0m
No. of Accounts: 120,000
No. of Containers: 160,000           swift-object-updater:       0.1 s
                                     swift-object-replicator:    10.5 hours
                                     swift-object-auditor:       48.3 hours

Result:
Periodic scanning all partitions, calculating checksum and synchronization

                                                                              24
RPC
●   Biling & Monitoring                        Database
                                                Client

    Compute

     Network                RDBMS             Dashboard

     Storage




               Monitoring
                                    Billing
               (Metering)




                                                          25
                NoSQL
●   Kanyun: Monitoring system
     Compute
                     Worker
      Network                            RDBMS                          Dashboard

      Storage

    Worker
                    Retrieve
                     usage
                      info


                                       API daemon                         Billing
    Aggregator
                                    Responds to client
                Calculates/stores       request
                    metrics

                                     http://github.com/lzyeval/kanyun               26
      NoSQL
RPC
●   Dough:Billing system                                              Database
                                                                       Client

    Compute

     Network                   RDBMS                              Dashboard

     Storage




                   Collector


    Monitoring
                                            Farmer               API daemon
    (Metering)

                                          Dispatch jobs          Subscribe or
                   Collector                                     unsubscribe
                                                                  products /
                  Check status /                                  Query info
                 Retrieve usage /   http://github.com/lzyeval/dough              27
                 Create purchases
Q&A




      28

Contenu connexe

Tendances

NSX Reference Design version 3.0
NSX Reference Design version 3.0NSX Reference Design version 3.0
NSX Reference Design version 3.0
Doddi Priyambodo
 
SEC8022_Securing_SDDC_NSX_Hammad_Shahzad
SEC8022_Securing_SDDC_NSX_Hammad_ShahzadSEC8022_Securing_SDDC_NSX_Hammad_Shahzad
SEC8022_Securing_SDDC_NSX_Hammad_Shahzad
shezy22
 

Tendances (20)

Win2k8 cluster kaliyan
Win2k8 cluster kaliyanWin2k8 cluster kaliyan
Win2k8 cluster kaliyan
 
VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014VMware VSAN Technical Deep Dive - March 2014
VMware VSAN Technical Deep Dive - March 2014
 
Understanding network and service virtualization
Understanding network and service virtualizationUnderstanding network and service virtualization
Understanding network and service virtualization
 
CloudStack and SDN
CloudStack and SDNCloudStack and SDN
CloudStack and SDN
 
NSX for vSphere Logical Routing Deep Dive
NSX for vSphere Logical Routing Deep DiveNSX for vSphere Logical Routing Deep Dive
NSX for vSphere Logical Routing Deep Dive
 
VMware NSX and Arista L2 Hardware VTEP Gateway Integration
VMware NSX and Arista L2 Hardware VTEP Gateway IntegrationVMware NSX and Arista L2 Hardware VTEP Gateway Integration
VMware NSX and Arista L2 Hardware VTEP Gateway Integration
 
NSX Reference Design version 3.0
NSX Reference Design version 3.0NSX Reference Design version 3.0
NSX Reference Design version 3.0
 
VMware NSX + Cumulus Networks: Software Defined Networking
VMware NSX + Cumulus Networks: Software Defined NetworkingVMware NSX + Cumulus Networks: Software Defined Networking
VMware NSX + Cumulus Networks: Software Defined Networking
 
VMworld 2015: vSphere Distributed Switch 6 –Technical Deep Dive
VMworld 2015: vSphere Distributed Switch 6 –Technical Deep DiveVMworld 2015: vSphere Distributed Switch 6 –Technical Deep Dive
VMworld 2015: vSphere Distributed Switch 6 –Technical Deep Dive
 
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
OpenStack Collaboration made in heaven with Heat, Mistral, Neutron and more..
 
Is OpenStack Neutron production ready for large scale deployments?
Is OpenStack Neutron production ready for large scale deployments?Is OpenStack Neutron production ready for large scale deployments?
Is OpenStack Neutron production ready for large scale deployments?
 
2012 CloudStack Design Camp in Taiwan--- CloudStack Overview-1
2012 CloudStack Design Camp in Taiwan--- CloudStack Overview-12012 CloudStack Design Camp in Taiwan--- CloudStack Overview-1
2012 CloudStack Design Camp in Taiwan--- CloudStack Overview-1
 
Network Virtualization: Delivering on the Promises of SDN
Network Virtualization: Delivering on the Promises of SDNNetwork Virtualization: Delivering on the Promises of SDN
Network Virtualization: Delivering on the Promises of SDN
 
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
Orchestration tool roundup   kubernetes vs. docker vs. heat vs. terra form vs...Orchestration tool roundup   kubernetes vs. docker vs. heat vs. terra form vs...
Orchestration tool roundup kubernetes vs. docker vs. heat vs. terra form vs...
 
SEC8022_Securing_SDDC_NSX_Hammad_Shahzad
SEC8022_Securing_SDDC_NSX_Hammad_ShahzadSEC8022_Securing_SDDC_NSX_Hammad_Shahzad
SEC8022_Securing_SDDC_NSX_Hammad_Shahzad
 
IaaS with Software Defined Networking
IaaS with Software Defined NetworkingIaaS with Software Defined Networking
IaaS with Software Defined Networking
 
VMworld Europe 2014: Advanced Network Services with NSX
VMworld Europe 2014: Advanced Network Services with NSXVMworld Europe 2014: Advanced Network Services with NSX
VMworld Europe 2014: Advanced Network Services with NSX
 
VMworld 2013: An Introduction to Network Virtualization
VMworld 2013: An Introduction to Network Virtualization VMworld 2013: An Introduction to Network Virtualization
VMworld 2013: An Introduction to Network Virtualization
 
VMworld 2013: Operational Best Practices for NSX in VMware Environments
VMworld 2013: Operational Best Practices for NSX in VMware Environments VMworld 2013: Operational Best Practices for NSX in VMware Environments
VMworld 2013: Operational Best Practices for NSX in VMware Environments
 
VMworld 2013: Troubleshooting VXLAN and Network Services in a Virtualized Env...
VMworld 2013: Troubleshooting VXLAN and Network Services in a Virtualized Env...VMworld 2013: Troubleshooting VXLAN and Network Services in a Virtualized Env...
VMworld 2013: Troubleshooting VXLAN and Network Services in a Virtualized Env...
 

En vedette (6)

Open stack private cloud panel
Open stack private cloud panelOpen stack private cloud panel
Open stack private cloud panel
 
Open stack private cloud panel
Open stack private cloud panelOpen stack private cloud panel
Open stack private cloud panel
 
Chris Kemp Nebula Keynote
Chris Kemp Nebula KeynoteChris Kemp Nebula Keynote
Chris Kemp Nebula Keynote
 
Valbona
ValbonaValbona
Valbona
 
Virtual Data Centers with OpenStack Quantum
Virtual Data Centers with OpenStack QuantumVirtual Data Centers with OpenStack Quantum
Virtual Data Centers with OpenStack Quantum
 
Vmware horizon6
Vmware horizon6Vmware horizon6
Vmware horizon6
 

Similaire à Integrating OpenStack to Existing infrastructure

OpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDNOpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDN
Te-Yen Liu
 
NaaS in OpenStack - CloudCamp Moscow
NaaS in OpenStack - CloudCamp MoscowNaaS in OpenStack - CloudCamp Moscow
NaaS in OpenStack - CloudCamp Moscow
Ilya Alekseyev
 
Open stack journey from folsom to grizzly
Open stack journey from folsom to grizzlyOpen stack journey from folsom to grizzly
Open stack journey from folsom to grizzly
openstackindia
 
Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13
Dan Wendlandt
 
Hacking apache cloud stack
Hacking apache cloud stackHacking apache cloud stack
Hacking apache cloud stack
Nitin Mehta
 

Similaire à Integrating OpenStack to Existing infrastructure (20)

ONUG Tutorial: Bridges and Tunnels Drive Through OpenStack Networking
ONUG Tutorial: Bridges and Tunnels Drive Through OpenStack NetworkingONUG Tutorial: Bridges and Tunnels Drive Through OpenStack Networking
ONUG Tutorial: Bridges and Tunnels Drive Through OpenStack Networking
 
Quantum for Cloud Operators - Folsom Conference
Quantum for Cloud Operators  - Folsom Conference Quantum for Cloud Operators  - Folsom Conference
Quantum for Cloud Operators - Folsom Conference
 
OpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDNOpenStack 2012 fall summit observation - Quantum/SDN
OpenStack 2012 fall summit observation - Quantum/SDN
 
CloudStack Architecture
CloudStack ArchitectureCloudStack Architecture
CloudStack Architecture
 
Cloud stack overview
Cloud stack overviewCloud stack overview
Cloud stack overview
 
Midokura OpenStack Day Korea Talk: MidoNet Open Source Network Virtualization...
Midokura OpenStack Day Korea Talk: MidoNet Open Source Network Virtualization...Midokura OpenStack Day Korea Talk: MidoNet Open Source Network Virtualization...
Midokura OpenStack Day Korea Talk: MidoNet Open Source Network Virtualization...
 
OpenStack Networking and Automation
OpenStack Networking and AutomationOpenStack Networking and Automation
OpenStack Networking and Automation
 
NSX: La Virtualizzazione di Rete e il Futuro della Sicurezza
NSX: La Virtualizzazione di Rete e il Futuro della SicurezzaNSX: La Virtualizzazione di Rete e il Futuro della Sicurezza
NSX: La Virtualizzazione di Rete e il Futuro della Sicurezza
 
Quantum - The Network Mechanics
Quantum - The Network MechanicsQuantum - The Network Mechanics
Quantum - The Network Mechanics
 
OpenStack Quantum
OpenStack QuantumOpenStack Quantum
OpenStack Quantum
 
OpenStack Quantum: Cloud Carrier Summit 2012
OpenStack Quantum: Cloud Carrier Summit 2012OpenStack Quantum: Cloud Carrier Summit 2012
OpenStack Quantum: Cloud Carrier Summit 2012
 
NaaS in OpenStack - CloudCamp Moscow
NaaS in OpenStack - CloudCamp MoscowNaaS in OpenStack - CloudCamp Moscow
NaaS in OpenStack - CloudCamp Moscow
 
Open stack journey from folsom to grizzly
Open stack journey from folsom to grizzlyOpen stack journey from folsom to grizzly
Open stack journey from folsom to grizzly
 
Secure Multi Tenant Cloud with OpenContrail
Secure Multi Tenant Cloud with OpenContrailSecure Multi Tenant Cloud with OpenContrail
Secure Multi Tenant Cloud with OpenContrail
 
Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13Openstack Quantum yahoo meetup 1 23-13
Openstack Quantum yahoo meetup 1 23-13
 
Learn OpenStack from trystack.cn ——Folsom in practice
Learn OpenStack from trystack.cn  ——Folsom in practiceLearn OpenStack from trystack.cn  ——Folsom in practice
Learn OpenStack from trystack.cn ——Folsom in practice
 
Navigating OpenStack Networking
Navigating OpenStack NetworkingNavigating OpenStack Networking
Navigating OpenStack Networking
 
Hacking apache cloud stack
Hacking apache cloud stackHacking apache cloud stack
Hacking apache cloud stack
 
Midokura OpenStack Meetup Taipei
Midokura OpenStack Meetup TaipeiMidokura OpenStack Meetup Taipei
Midokura OpenStack Meetup Taipei
 
CloudStack Overview
CloudStack OverviewCloudStack Overview
CloudStack Overview
 

Plus de laurabeckcahoon

Hp gavin pratt - open stack networking presentation
Hp   gavin pratt - open stack networking presentationHp   gavin pratt - open stack networking presentation
Hp gavin pratt - open stack networking presentation
laurabeckcahoon
 
San Diego Super Computer
San Diego Super ComputerSan Diego Super Computer
San Diego Super Computer
laurabeckcahoon
 

Plus de laurabeckcahoon (12)

Nova, Folsom presentation, Compute PTL
Nova, Folsom presentation, Compute PTLNova, Folsom presentation, Compute PTL
Nova, Folsom presentation, Compute PTL
 
Nectar openstack 2012 v3
Nectar openstack 2012 v3Nectar openstack 2012 v3
Nectar openstack 2012 v3
 
Rackspace Open-cloud, Engates, Interrante Keynote
Rackspace Open-cloud, Engates, Interrante KeynoteRackspace Open-cloud, Engates, Interrante Keynote
Rackspace Open-cloud, Engates, Interrante Keynote
 
DOE Magellan OpenStack user story
DOE Magellan OpenStack user storyDOE Magellan OpenStack user story
DOE Magellan OpenStack user story
 
NICTA, Disaster Recovery Using OpenStack
NICTA, Disaster Recovery Using OpenStackNICTA, Disaster Recovery Using OpenStack
NICTA, Disaster Recovery Using OpenStack
 
OpenStack NASA
OpenStack NASAOpenStack NASA
OpenStack NASA
 
Reliable Redundant Resilient
Reliable Redundant ResilientReliable Redundant Resilient
Reliable Redundant Resilient
 
Radio Free Asia
Radio Free AsiaRadio Free Asia
Radio Free Asia
 
HP Open Stack Keynote 4 18_2012 final
HP Open Stack Keynote 4 18_2012 finalHP Open Stack Keynote 4 18_2012 final
HP Open Stack Keynote 4 18_2012 final
 
Deutsche telekom
Deutsche telekomDeutsche telekom
Deutsche telekom
 
Hp gavin pratt - open stack networking presentation
Hp   gavin pratt - open stack networking presentationHp   gavin pratt - open stack networking presentation
Hp gavin pratt - open stack networking presentation
 
San Diego Super Computer
San Diego Super ComputerSan Diego Super Computer
San Diego Super Computer
 

Dernier

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
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
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 

Integrating OpenStack to Existing infrastructure

  • 1. Integrating OpenStack to Existing Infrastructure Cheng, Hui freedomhui@gmail.com 1 2012-04-19
  • 2. Agenda Background ● Who We Are ● Infrastructure & Platform ● Challenges Integration Challenges ● Network Deployment ● Security Consideration ● Load Balancer ● Swift Evaluation Our Contributions ● Billing ● Monitoring 2
  • 3. Who Are We Sina.com • Largest infotainment web portal in China • Provides various on-line services, like news, Finance, video, email, blog hosting, etc. • Operates first PaaS cloud computing platform Sina Weibo • twitter-like microblog service • over 300m users • huge influence on China's society We are building a reliable, scalable and secure infrastructure and platform to support our business. 3
  • 4. Infrastructure & Platform Physical Servers Traditional Operation Virtualization Platform(IaaS) ●VM Management System(VMMS) → Sina Web Service(SWS) ●VMMS is private solution developed in-house ●SWS is based on OpenStack Application Platform(PaaS) ●Virtual Host → Sina App Engine(SAE) ●SAE provides both Public and Private Service. ●Proved to be Efficient and Robust 4
  • 5. Sina App Engine • No. 1 Public PaaS Platform in China launched in Nov 2009 • PHP, Python, Java and Ruby Support • Numbers 160,000+ developers 200,000+ apps on SAE 800 million page views per day 20+ Services • SAE Cloud Storage Service is replaced by Swift • Deploy SAE on OpenStack 5
  • 6. Challenges SAE meets the majority of business needs, but does not cover all, especially for web games Customers require full stack of cloud computing We Choose OpenStack as our IaaS solution 8
  • 7. Why Choose OpenStack 100% Python & Open Source 9
  • 8. OpenStack Deployment Rabbit MySQL dashboard schedule nova-api nova-compute nova-compute nova-network nova-network keystone glance Sina SSO Swift 10
  • 9. Nova Network Networking is the biggest challenges for IaaS Network Topology: • VLAN • FlatDHCP • FlatDHCP & Multihost 11
  • 10. Network Topology --- VLAN Capability: • Accessibility of VMs within one tenant • Isolation of VMs from different tenants • VM is able to access public network • VM can be accessible from public network • Isolation between virtual network and internal network Drawback: • Pre-allocate network for future projects • Traffic bottleneck in the NAT gateway 12
  • 11. Network Topology(Flat) Capability: • Accessibility of all VMs in the fixed IP range • VM is able to access public network • VM can be accessible from public network • Full isolation between virtual network and internal network Drawback: Tenant isolation lessens Traffic bottleneck in the NAT gateway 13
  • 12. Network Topology(Flat & Multihost) Capability: • Accessibility of all VMs in the fixed IP range • VM is able to access public network • VM can be accessible from public network Bonus: • Totally distributed architecture avoid single-point failure. • Multiple gateway eliminates NAT bottleneck • High throughout between OS regions Drawback: • Tenant isolation lessens • Need security facility(SWS-filter) to protect intranet If security problems were solved, this would be our best choice! 14
  • 13. Security in OpenStack Security Group --- Layer 3 Filter Static filters --- Layer 2 Filter Role-based firewall MAC, IP, and ARP spoofing protection  One security group is a Role  Not configurable Ingress filtering  Defined in /etc/libvirt/nwfilter/*.xml  Target is the instance Implemented by ebtables  Source can be CIDR or another group  ebtables -t nat --list Implemented by iptables  See details: iptables -t filter -n -L  Whitelist mechanism(ACCEPT rules) 15
  • 14. Security Enhancement SWS Filter Prevent Intranet Penetration • Intranet is the internal network outside of OpenStack Egress filtering • Target is internal network • Source is instances in OpenStack Implementation • Whitelist mechanism(ACCEPT rules) • On the top of nova-filter-top Forward Chain Rational • SWS filter is managed by cloud manager • Only explicit authorized packets can reach Internal network C • Packet should be controlled within Compute Node 16
  • 16. Load Balancer Design Load Balance • Dispatch request DNS Acceleration Design • Support multiple routing algorithm • Health check Smart DNS Acceleration • Reality: narrow bandwidth between ISPs • Building fiber channels from ISPs to pivot Public Network • Given the same endpoint within user’s ISP IPv4 Shortage Telecom Unicom Mobile Others ISP • Reality: dozens of public IPs support hundreds of VMs High speed fiber channel • IPv4 has been exhausted • IPv6 is not realistic yet in China Pivot 18
  • 17. Load Balancer Layer 7 Load Balancer Consideration: 1. dispatch request by Host header 2. nginx module 19
  • 18. Load Balancer Layer 4 Load Balancer Consideration: 1. dispatch request by TCP port 2. lvs + haproxy 20
  • 19. Swift Evaluation  Extremely Durable and Highly Available  Superior Scalability  Linear Growth of Performance  Symmetric Architecture  No Single-failure  Simple & Reliable 21
  • 20. Swift Evaluation • 1 Zone = 1 Physical Server with 12x2T disk GET abc.png • Write/Read applies quorum protocol PUT abc.png Load Balancer Zone1 Zone2 Zone3 Zone4 Zone5 Proxy Server Proxy Server Proxy Server Proxy Server Proxy Server Object Server Object Server Object Server Object Server Object Server Container Server Container Server Container Server Container Server Container Server Account Server Account Server Account Server Account Server Account Server 22
  • 21. Swift Evaluation Swift packages Proxy Server Account Server Container Server Object Server Physical Deployment Storage Nodes OS installation sda sdb sdc sdd sdk raid 1 …… disk1 disk2 disk3 disk4 disk5 disk12 23
  • 22. Swift Evaluation Performance issue CPU utilization rate up to 100% even without request Testing environment: Audit: Nodes: 5 x Dell R510 swift-account-auditor : 1.5m CPU: Intel® Xeon® E5360 swift-account-replicator: 9.5m Memory: 12GB Replica: 3 swift-container-auditor: 8.4m swift-container-replicator: 9.3m No. of Objects: 150,000,000 swift-container-updater: 19.0m No. of Accounts: 120,000 No. of Containers: 160,000 swift-object-updater: 0.1 s swift-object-replicator: 10.5 hours swift-object-auditor: 48.3 hours Result: Periodic scanning all partitions, calculating checksum and synchronization 24
  • 23. RPC ● Biling & Monitoring Database Client Compute Network RDBMS Dashboard Storage Monitoring Billing (Metering) 25 NoSQL
  • 24. Kanyun: Monitoring system Compute Worker Network RDBMS Dashboard Storage Worker Retrieve usage info API daemon Billing Aggregator Responds to client Calculates/stores request metrics http://github.com/lzyeval/kanyun 26 NoSQL
  • 25. RPC ● Dough:Billing system Database Client Compute Network RDBMS Dashboard Storage Collector Monitoring Farmer API daemon (Metering) Dispatch jobs Subscribe or Collector unsubscribe products / Check status / Query info Retrieve usage / http://github.com/lzyeval/dough 27 Create purchases
  • 26. Q&A 28