vng/ird - cloud computing & openstack discussion 3/5/2014

48
Cloud Computing OpenStack VNG Infrastructure platform Tran Anh Nhan IRD department head Pham Tran Kim Chi Lead System Engineer May 2014

Upload: tran-nhan

Post on 26-Jan-2015

112 views

Category:

Technology


1 download

DESCRIPTION

Cloud computing - Openstack architecture & deployment

TRANSCRIPT

Page 1: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing

OpenStack

VNG – Infrastructure platform

Tran Anh Nhan – IRD department head

Pham Tran Kim Chi – Lead System Engineer

May 2014

Page 2: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Agenda

• VNG - IRD

• What is Cloud Computing?

• OpenStack Architecture

• OpenStack Networking

• Deployment Model

• Ceilometer

Page 3: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

New Section VNG Corp introduction

Page 4: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

VNG Corporation

• Game publisher/developer (VLTK, VLCM,

Gunny, Boom, Khu vuon tren may,

ZingPlay …)

• Online music/media (ZingMP3, ZingTV)

• Social network (Zing Me, Zalo)

• E-commerce (123mua.vn, 123pay.vn)

Page 5: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

IRD Department Research and build the infrastructure platform for VNG to enhance business, optimize quality and cost, meet the new technology.

• Content Delivery Network (CDN) system is used by all VNG products that want to optimize static bandwidth.

• Live-streaming system is a streaming platform for Zing events, Talk TV.

• OpenStack provides servers and networks for some products with a small scale (in pilot phase. Project Team is receiving feedback for further enhancement).

• Object storage (in POC phase).

Page 6: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

New Section What is Cloud Computing?

Page 7: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

References

• Gartner

• Synergy research

• The National Institute of Standards and

Technology (NIST)

• Cloud computing today

• 451 Research

Page 8: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Number & trend

Page 9: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Number & trend

Page 10: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

What is Cloud computing?

Page 11: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

What is Cloud computing?

Page 12: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

What is Cloud computing?

Page 13: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Cloud Services

Page 14: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Cloud Services

• AWS #1 of cloud services provider - What services AWS provide? – Amazon Web Services (AWS) continues to dominate

the IaaS and PaaS space in terms of revenue. AWS: 3.8$B revenue (2013)

– Compute & Networking (Amazon EC2, Auto Scaling, Elastic Load Balancing, Route 53 ,..)

– Storage & CDN (Amazon S3, Amazon Glacier a low cost storage for backup, Amazon EBS, Cloud Front/CDN)

– DB – Cache: RDS (MySQL, Oracle, SQL Server, and PostgreSQL), DynamoDB (NoSQL data store), ElastiCache (In-Memory Caching Service), Redshift (Data Warehouse Service)

– Application services: Elastic Transcoder,..

Page 15: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Cloud Orchestration Framework

Page 16: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

New Section OpenStack Architecture

Page 17: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

History

• OpenStack is an open source IaaS

initiative for managing and creating huge

groups of virtual private servers in a cloud

computing environment. It was initially

developed by Rackspace and NASA.

Page 18: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Page 19: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Nowadays

Page 20: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Servers Storage

Network switch Network switch Network switch

Virtualization Solution (VMWare VCenter,

Citrix XEN Server, Ovirt, Proxmox….)

Hypervisor (VMWARE, XEN, QEMU, KVM, Hyper-V)

Page 21: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Cloud Infrastructure

• Modular architecture

• Designed to easily scale out

• Based on set of core services

Page 22: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

OpenStack Platform

Servers Storage

Network switch Network switch Network switch

Hypervisor (VMWARE, XEN, QEMU, KVM, Hyper-V)

Page 23: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Infrastructure As A Service Overview

Page 24: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Infrastructure As A Service roles

• Cloud Ops: monitor/add/remove physical compute nodes, storage nodes, controller nodes, network nodes.

• App Owner: add/remove/upgrade cloud services, check billing status.

• Dev Ops: launch/ terminate/ scale instances, storage. Register/ unregister new image. Backup/ restore instances/ storage. These tasks can be done via dashboard or API.

• App Devs: call the dev ops tasks inside application logical flow.

Page 25: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

OpenStack Architecture

Page 26: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

OpenStack Architecture

On-Demand Self-Services

Resource

pooling

Broad

Network

Access

Mesearued

services

Page 27: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

OpenStack Architecture

Hypervisor

Server

Storage Network

Nova compute Cinder Neutron

Page 28: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Page 29: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

New Section OpenStack Networking

Page 30: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

OpenStack Networking

Page 31: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Network Node Compute Node

phy-br-

em2

phy-br-

em2

em1: 172.16.0.2 em1: 172.16.0.3

em2: no ip address

em2: no ip address

Nova API …

ovs/ br-int

dnsmasq

dchp agentIP name space

Nova Compute …

tap-xx

qvo-xx

int-br-em2

tap-xx qvb-xx

Linux bridge

qbr-xxxxx

Instance

eth0

ovs/ br-int

qvo-xx

int-br-em2

veth

Neutron API0.0.0.0:9696

management network

dedicated physical VLAN for neutron traffic between nodes

neutron ovs plugin

veth

Page 32: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Page 33: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

New Section Deployment Model

Page 34: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Cinder

API

COROSYNC + HAProxy

Controller 01 Controller 02

Rabbit

MQ

Keyston

e

Glance

API

Nova

API

PACEMAKER

Compute node 1

Compute node n

Ceph node 1

Ceph node n

QE

MU

Driver

Ceph node 2Compute node 2

RBD Driver

Page 35: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

OpenStack Networking

Neutron Server

Switch Interface

Driver

Physical switch

Controller Node

OVS Plugin

OVS Plugin

Openvswitch

Instances

Compute Node

Neutron OVS agent

DHCP

InstancesInstances

OVS Plugin

Openvswitch

Instances

Compute Node

Neutron OVS agent

InstancesInstances

L3 Agent DHCP L3 Agent

Page 36: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Feature

• Launch instance

• Snapshot/ restore instance

• Attach device to instance

• Snapshot/ restore attach device

• Scale up instance

• Internal network for instances

• Provide instances with VLAN as product

requires.

• Instances are stored totally in Ceph Storage.

Page 37: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

DEMO

Page 38: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

New Section Ceilometer

Page 39: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

OpenStack Architecture

On-Demand Self-Services

Resource

pooling

Broad

Network

Access

Mesearued

services

Page 40: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Monitoring

• Monitor physical host by cacti, graphite,

zabbix.

• Monitor instances status by ceilometer.

• Monitor OpenStack statistics by

ceilometer.

Page 41: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Ceilometer

• Objectives

• Ceilometer component

• Ceilometer collect data

• Access collected data

Page 42: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Objectives

• Provide a infrastructure to collect

any information in OPS.

• Publish information for other

monitoring.

• Integrate with Heat for trigger auto

scale.

Celiometer - OpenStack - VNG - IRD

Page 43: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Ceilometer collect data

• Bus listener

• Polling agent

• Push agents

Celiometer - OpenStack - VNG - IRD

Page 44: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Ceilometer

Page 45: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Process meter

Page 46: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Access collected data

• Via API

• Via Ceilometer command

Celiometer - OpenStack - VNG - IRD

Page 47: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

DEMO

Page 48: VNG/IRD - Cloud computing & Openstack discussion 3/5/2014

Cloud Computing - OpenStack - VNG - IRD

Q & A