Automatically Managing Internet Operations In The Cloud - 云计算平台的自动化运维

89
Automatically Managing Internet Operations In The Cloud 云计算平台的自动化运维 Steve Mushero CEO & CTO ChinaNetCloud 落科技 Running the Worlds Internet Servers 管理全世界的互网服

Transcript of Automatically Managing Internet Operations In The Cloud - 云计算平台的自动化运维

Page 1: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Automatically Managing

Internet Operations

In The Cloud

云计算平台的自动化运维

Steve MusheroCEO & CTO

ChinaNetCloud陨落科技

Running the World’s Internet Servers

管理全世界的互联网服务器

Page 2: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

This is the 21st Century - 欢迎来到21世纪

Page 3: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

A great tech invention

一个大技术发明

Page 4: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Clouds are great - 云计算好处多多

Page 5: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Advantage Cheap –便宜

Page 6: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Easy:

Click & Start轻轻一点,

即可启动

Page 7: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Flexible -灵活

Page 8: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

But can cause trouble, too

有时候也会有麻烦

Page 9: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Complex

复杂

Page 10: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Complex – 50 services

AWS提供50多种服务-头大!

Page 11: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

All different -各不相同

Page 12: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Always Changing 一直变化

Page 13: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

One day like this 一天像这样

Page 14: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Then like this 以后像这样

Page 15: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

But they are 21st Century

但现在是21世纪

Page 16: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Now, about operations-现在,谈谈运维

Page 17: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Welcome to the 19th Century

欢迎来到19世纪

Page 18: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

By hand 手动

Page 19: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

All by hand

手动

Page 20: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Basic -基本- Shell scripts

- Python

Tools

工具

Page 21: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Some Automation

部分自动化

Page 22: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Some Automation 部分自动化

Easy to build

Easy to break

简单搭建,容易损坏

Page 23: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Manual Problems

手动问题-慢!

Page 24: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Manual = Messy 手动=乱

Page 25: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Life-Cycles & Phase生命周期和阶段

Page 26: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Design

设计

Build

搭建

Config

配置 Manage

管理

Optimize

优化

Internet System Phases

互联网系统生命周期

Page 27: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Design

Build

ConfigManage

Optimize

Most tools focus on first three phases

许多工具聚焦前三个阶段

Internet System Phases

互联网系统生命周期

Design

设计

Build

搭建

Config

配置 Manage

管理

Optimize

优化

Page 28: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Design

Build

ConfigManage

Optimize

Most time in last two phases花在最后两个阶段的时间最多

Internet System Phases

互联网系统生命周期

Design

设计

Build

搭建

Config

配置 Manage

管理

Optimize

优化

Page 29: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

One Month一个月 Five Years 五年

Internet System Phases

互联网系统生命周期

Design

Build

ConfigManage

OptimizeDesign

设计

Build

搭建

Config

配置 Manage

管理

Optimize

优化

Page 30: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

New Systems

新建系统

Existing

Systems

现有系统

Migrate to

the Cloud

向云迁移

Internet System Types

互联网系统类型

Page 31: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

New Systems

新建系统

Existing

Systems

现有系统

Migrate to

the Cloud

向云迁移

Internet System Types

互联网系统类型

Most tools & thinking focuses on new systems

许多工具理念注重于新建系统

Page 32: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

New Systems

新建系统

Existing

Systems

现有系统

Migrate to

the Cloud

向云迁移

Internet System Types

互联网系统类型

Most of the work on existing systems

大多数工作是在现有系统上进行

Page 33: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Operations most important goals?运维重要的目标?

Page 34: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Operations most important goals运维重要的目标

• Reliability 可靠运维

• Performance 性能优化

• Scalability 灵活扩展

• Security 安全加固

• Cost Savings 成本节约

Each company values a different mix每个公司都会关注以上几点的不同组合

Page 35: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

What to do ?

该做点什么?

Page 36: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

What to do ?

该做点什么?

Operations Automation Platform

运维自动化平台

Page 37: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Web

Interface

Dashboard

网页交互界面

Servers & Clouds 物理服务器&各种云

Servers & Cloud Plug-in API Layer 通过API对接物理服务器/云

S

e

c

u

rit

y

&

A

u

di

t

安全和体检

A

P

I

Mobile

手机SMS

Emai

l

IM

Low-Level Core & Server Tools 基础版核心和服务器工具

3rd Party Tools

Customers客户 Employees员工

Cust

API

客户界面

Customer Portals 客户端口Employee

Portals 员工端口

Design

& Setup

& Configure

设计,搭建和配

Audit &

Optimization

审计和优化

Management

& Monitoring

管理和监控

Migrations

迁移

Many core & support systems 增强版核心支持系统

S

y

st

e

m

S

e

rv

ic

e

s

系统服务

Ticket, Tracking & Communications工单,追踪和沟通 Project Management项目管理

Support

&

Ops

支持和运维

Page 38: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Operations Automation

运维自动化

• People 人员• Tools 工具• Process 流程• Automation 自动化

Page 39: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

People 人员

Page 40: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

• Training 培训• Flexible 灵活• Experience 经验

People 人员

Page 41: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Process

流程

Page 42: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Process 流程

Page 43: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Tools & Automation

工具和自动化

• Full-Stack 所有层级• All Phases 全部阶段• All Types 各种类型• All Sizes 体量不限• All Clouds 所有云• All Tech 各种技术

Page 44: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Full Stack 所有层级

Code & Data

Application

Services

OS – Linux/Win

Servers & Cloud

Key Operations Part

运维的关键步骤

代码/数据

应用程序

服务

操作系统 Linux/Windows

服务器和云服务

Page 45: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

All Phases 全部阶段

Design

Build

ConfigManage

Optimize

设计

配置管理

优化

搭建

Page 46: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

All Types 各种类型

New Systems

Existing

Systems

Migrate to

the Cloud

新建系统现有系统

向云迁移

Page 47: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

All Sizes 体量不限

Small Customers

1-5 台服务器

Medium Customers

10-250 台服务器

Large Customers

250-1000+ 台服务器

大客户群体

中等客户群体

小客户群体

Page 48: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

All Clouds 所有云服务

Page 49: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

All Technologies 所有技术

Page 50: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

How to do this –怎么办?

Page 51: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Web

Interface

Dashboard

网页交互界面

Servers & Clouds 物理服务器&各种云

Servers & Cloud Plug-in API Layer 通过API对接物理服务器/云

S

e

c

u

rit

y

&

A

u

di

t

安全和体检

A

P

I

Mobile

手机SMS

Emai

l

IM

Low-Level Core & Server Tools 基础版核心和服务器工具

3rd Party Tools

Customers客户 Employees员工

Cust

API

客户界面

Customer Portals 客户端口Employee

Portals 员工端口

Design

& Setup

& Configure

设计,搭建和配

Audit &

Optimization

审计和优化

Management

& Monitoring

管理和监控

Migrations

迁移

Many core & support systems 增强版核心支持系统

S

y

st

e

m

S

e

rv

ic

e

s

系统服务

Ticket, Tracking & Communications工单,追踪和沟通 Project Management项目管理

Support

&

Ops

支持和运维

Page 52: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Web

Interface

Dashboard

网页交互界面

Servers & Clouds物理服务器&各种云

Servers & Cloud Plug-in API Layer通过API对接物理服务器/云

S

e

c

u

rit

y

&

A

u

di

t

安全和体检

A

P

I

Mobile

手机SMS

Emai

l

IM

Low-Level Core & Server Tools基础版核心和服务器工具

3rd Party Tools

Customers客户 Employees员工

Cust

API

客户界面

Customer Portals客户端口Employee

Portals员工端口

Audit & Optimization

审计和优化

Management

& Monitoring

管理和监控

Migrations

迁移

Many core & support systems增强版核心支持系统

S

y

st

e

m

S

e

rv

ic

e

s

系统

服务

Ticket, Tracking & Communications工单,追踪和沟通 Project Management项目管理

Support

&

Ops支持和运维

Design

& Setup

& Configure

设计,搭建和配置

Page 53: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

New Systems

新建系统

Existing

Systems

现有系统

Migrate to

the Cloud

向云迁移

Internet System Types

互联网系统类型

Page 54: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Cloud / 云计

Ops Design – Get Requirements

TEMPLA

TE

DEFAUL

TS

运维设计 – 要求

模板

默认值

Page 55: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Cloud / 云计

Ops Design – Automation

运维设计-自动化

Backups备份 Monitor

监控

Sync Images同步图像

Network网络

Security安全 Deploying

部署

Page 56: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Auto Build Servers自动新建服务器

Page 57: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Cloud / 云计

Install Services

RPMDeb`

Repo

安装服务

Page 58: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Automatically

Configure

TEMPLA

TE

自动配置

挑战-冲突Conflicts

Page 59: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Cloud / 云计

Auto Architecture

自动架构

Simple 简单

Page 60: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Cloud / 云计

A little

Complex

有一点复杂

Auto Architecture

自动架构

Page 61: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Cloud / 云计

Quite

Complex

非常复杂

Auto Architecture

自动架构

Page 62: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Web

Interface

Dashboard

网页交互界面

Servers & Clouds物理服务器&各种云

Servers & Cloud Plug-in API Layer通过API对接物理服务器/云

S

e

c

u

rit

y

&

A

u

di

t

安全和体检

A

P

I

Mobile

手机SMS

Emai

l

IM

Low-Level Core & Server Tools基础版核心和服务器工具

3rd Party Tools

第三方工具

Customers客户 Employees员工

Cust

API

客户界面

Customer Portals客户端口Employee

Portals员工端口

Design

& Setup

& Configure设计,搭建和配置

Management

& Monitoring

管理和监控

Migrations

迁移

Many core & support systems增强版核心支持系统

S

y

st

e

m

S

e

rv

ic

e

s

系统

服务

Ticket, Tracking & Communications工单,追踪和沟通 Project Management项目管理

Support

&

Ops支持和运维Audit &

Optimization

审计和优化

Page 63: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

New Systems

新建系统

Existing

Systems

现有系统

Migrate to

the Cloud

向云迁移

Internet System Types

互联网系统类型

Page 64: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Deep Check to Find Problems深入检查,发现问题

Page 65: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Optimize

Auto & Manual 自动和人工

优化

Page 66: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Web

Interface

Dashboard

网页交互界面

Servers & Clouds物理服务器&各种云

Servers & Cloud Plug-in API Layer通过API对接物理服务器/云

S

e

c

u

rit

y

&

A

u

di

t

安全和体检

A

P

I

Mobile

手机SMS

Emai

l

IM

Low-Level Core & Server Tools基础版核心和服务器工具

3rd Party Tools

Customers客户 Employees员工

Cust

API

客户界面

Customer Portals客户端口Employee

Portals员工端口

Design

& Setup

& Configure设计,搭建和配置

Audit & Optimization

审计和优化Migrations

迁移

Many core & support systems增强版核心支持系统

S

y

st

e

m

S

e

rv

ic

e

s

系统

服务

Ticket, Tracking & Communications工单,追踪和沟通 Project Management项目管理

Support

&

Ops支持和运维Management

& Monitoring

管理和监控

Page 67: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Changes 变化

Updates更新

Code

Deployment

s

代码发布

Manage 管理

Page 68: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Changes

• Users 用户• Servers 服务器• Security 安全• Software 软件• Networking 网络• Architecture 架构

变化

Page 69: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

New, Split or Move Services 新建,拆分或者移动服务

Changes 变化

Page 70: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Updates

OS Patches 操作补丁Security Patches 安全补丁Software Version 软件版本Documentation 文档编制

更新

Page 71: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Code

Deployments

代码发布

Page 72: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Code Deployments

代码发布

Operations运维

Page 73: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Monitoring

监控

Page 74: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Monitoring -监控

Page 75: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Monitor

• Rules 规则• Process 流程• Learning 学习

Monitoring -监控

Page 76: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Alert & Action

• Rules 规则• Risks 风险• Security 安全• Balance 平衡

告警和行动

Page 77: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Troubleshoot 排障

• CLI 命令行• GUI 图形化界面• Auto 自动化• Fast 快速• Deep 深入

Page 78: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

备份

Page 79: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Web

Interface

Dashboard

网页交互界面

Servers & Clouds物理服务器&各种云

Servers & Cloud Plug-in API Layer通过API对接物理服务器/云

S

e

c

u

rit

y

&

A

u

di

t

安全和体检

A

P

I

Mobile

手机SMS

Emai

l

IM

Low-Level Core & Server Tools基础版核心和服务器工具

3rd Party Tools

第三方工具

Customers客户 Employees员工

Cust

API

客户界面

Customer Portals客户端口Employee

Portals员工端口

Design

& Setup

& Configure设计,搭建和配置

Management

& Monitoring

管理和监控

Migrations

迁移

Many core & support systems增强版核心支持系统

S

y

st

e

m

S

e

rv

ic

e

s

系统

服务

Ticket, Tracking & Communications工单,追踪和沟通 Project Management项目管理

Support

&

Ops支持和运维Migration to

The Cloud 向云迁移

Page 80: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

New Systems

新建系统

Existing

Systems

现有系统

Migrate to

the Cloud

向云迁移

Internet System Types

互联网系统类型

Page 81: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

True Migration

Very Difficult真正的迁移是非常困难的

Page 82: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

第一步

审计-分析

Page 83: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

CMDB

配置管理数据库

Page 84: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Re-Install Services

With Changes

重新安装优化过的服务

RPMDeb`

Repo

Page 85: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Re-Configure

Automatically

With Changes

自动重新配置

TEMPLA

TE

Page 86: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Results 结果

Page 87: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Operations & Automation Results

运维自动化的结果

Summary 总结

Clouds 云计算+

Ops 运维+

Auto 自动化

Page 88: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Operations & Automation Happiness

运维自动化的美妙

Page 89: Automatically Managing  Internet Operations  In The Cloud - 云计算平台的自动化运维

Thank you!

谢谢