Upload
others
View
9
Download
0
Embed Size (px)
Citation preview
驅動原生雲架構 全新應用分享
Rex Wang
@Twitterhandle
Senior Solutions Architect, Pivotal
3
企業等級的IT運作
Business User 的期待• 應用開發可即時交付,上線
順利• Time to Market
• App Team 的產出符合期待• 任何情況下,都不要有服務
中斷• 需求變更容易
App Team 常見問題• Business User 需求不明確• 需求訪談與開發進度緩慢• 架構設計問題,以致改版困
難• 部署程序複雜,造成服務中
斷• 擴容/HA/DR皆需仰賴 infra
team 協助,資源調度不易,時間冗長
Infra Team 常見問題• Server 上線前的準備工作• Side Survey
• 機架• 網路線• IP
• 防火牆• 安裝OS、Middleware、監控• 有IaaS之後• …...
Cloud Native Architecture雲原生架構
5
何為雲原生架構?為何需要?
6
7
用小步快跑的方式,打破瀑布式開發流程
DESIGN
DEVELOP
TEST
OPS
DEVProduct
Release #1
Product
Release #2- Reduced risk of delivering the wrong thing
- Frequent feedback increases design quality, innovation
- Increased visibility & controls for finance & GRC
8
藍綠(Blue-Green) 部署
blue-spring-music
prod-spring-music
green-spring-music
prod-spring-music
blue-spring-music
prod-spring-music
green-spring-music
blue-spring-music
green-spring-music
prod-spring-music
time
Step 1 Step 2 Step 3
9
Continue Delivery的總結
解決什麼問題?
• 縮小開發者與使用者的認知差距
• 每一次部署都可以重新確認開發方向
• 開發進度透明可見
• 敏捷開發的要求之一
留下什麼問題?
• 部署流程如何改造?
• Infra 環境如何配合?
• 如何做到 zero downtime?
10
11
12
13
14
Microservices的總結
解決什麼問題?
• 開發人員專注的代碼更少
• 各服務解耦合
• Business Rules 內聚更強
• 更容易單獨改版
• 更敏捷
留下什麼問題?
• App Team如何分工?
• Infra 環境如何配合? Bare Metal
Machine? VM?
• 如何自動化部署?
15
16
容器技術發展歷史
17
從 Infra 角度來看技術演進
18
企業面臨的不同運算類型
IaaS
ContainerOrchestrator (CaaS)
ApplicationPlatform(PaaS)
ServerlessFunctions(FaaS)
CONTAINERS
EVENT-DRIVEN FUNCTIONS
DATA SERVICESMICROSERVICES
Batches
MONOLITHIC APPLICATIONS
交付container
交付code
交付function
19
容器對於開發與維運人員的意義大不相同
Containers in Dev Environment
“Learning Curve”
Containers
Container on Production
Load Balancer
Security
High Availability
Application Update
Auto-scaling/shrinking
Repeatable Deployment
Repository Sync
Deployment
Containers
20
Container 的總結
解決什麼問題?
• 更容易資源調度
• 更容易達到多夾艙部署
• 更容易部署微服務
• 更容易做到 Continue Delivery
留下什麼問題?
• 單純的Container如何管理?
• 如何做到資源調度?
21
22
23
What is DevOps?
• Agile 的延伸
• 溝通文化
• 是一種運動,也是一種慣例
• CALMS?
– Culture
– Automation
– Lean
– Measurement
– Sharing
24
DevOps 的總結
解決什麼問題?
• 更好的工作文化,更高的工作效率
• App Team: Infra 自主可控,Infra
服務自理
• Infra Team:自動化程度高,降低工作負擔
留下什麼問題?
• App Team 與 Infra Team 重新分工?
• Culture Change?
25
26
Pivotal 對於客戶的價值
28
29
30
31
Thinking again :
Computing Resource for Enterprise
IaaS
ContainerOrchestrator (CaaS)
ApplicationPlatform(PaaS)
ServerlessFunctions(FaaS)
CONTAINERS
EVENT-DRIVEN FUNCTIONS
DATA SERVICESMICROSERVICES
Batches
MONOLITHIC APPLICATIONS
32
33
BOSH
GCPServiceBroker
Harbor
NSX-T
Kubernetes
K8s ClusterK8s Cluster
K8s Cluster
Built with open-source Kubernetes — Constant compatibility with the current stable release of Kubernetes, operated by BOSH. No proprietary extensions.
Production-ready — Highly available from apps to infrastructure, no single points of failure. Built-in health checks, scaling, auto-healing and rolling upgrades.
Multicloud — BOSH provides a reliable and consistent operational experience. For any cloud.
Network management and security out-of-the-box with VMware NSX-T. Multi-cloud, multi-hypervisor.
GCP APIs access — The GCP Service Broker allows apps to transparently access Google Cloud APIs, from anywhere. Easily move workloads to/from Google Container Engine (GKE).
Fully automated Ops — Fully automated deploy, scale, patch, upgrade. No downtime. Use CD pipelines to deploy your platform, too.
VMware GCP Azure Openstack AWS
PKS C
ontr
olle
r
34
Pivotal Application Service (PAS)
35
Pivotal Function Service (PFS)
A service for running Functions Features
• Kubernetes-Native
• Polyglot - Shell, Node.js, Spring/Java,
Python
• Spring Open Source and PCF/PKS
product
• Jobs, dynamic loading into warm
containers
• Event streams - partitioning,
windowing
• Pluggable event brokers - Kafka, AWS
Kinesis, Google Pub/Sub, RabbitMQ
FaaS Portable
And run in Spring Boot
REST, Tasks, or Streams
36
Members of Cloud Foundry Foundation
37
Cloud Foundry EcosystemAnalytics
APM
Batch
BPM
Cache/LB
CI/CD
DB
Commerce
CRM
IAASETLIAMIDE/Code
ITIL
Messaging
Mobile
Search
Security
SIEM/Log/Audit
API/SOA/uS/IOT
Test Other
❓
Networking
38
39
● Platforms - PKS, PAS, PFS
● Professional Services ( T&M 技術顧問服務,協助客戶順利使用平台與應用開發建議)
● Training Services (Spring Framework and PAS administration/development)
• Platform Dojo (技術專家 on-site,協助客戶有限度客製化平台)
● AppTX (技術專家 on-site,產出現有應用改造成微服務)
● Pivotal Labs (客戶到Pivotal Labs接受 on the job training,主要產出為敏捷開發團隊)
Pivotal 產品與服務
40
SpringOne Platform 2018
41