吴疆 - Microservice 在 Cloud Foundry 的应用

2020-02-27 58浏览

  • 1.微服务架构(Micro Service)在 Cloud Foundry中的应用 吴疆 Pivotal Web Service 资深经理 2017.thegiac.com www.top100summit.com
  • 2.2017.thegiac.com
  • 3.2017.thegiac.com
  • 4.IN 2017.thegiac.com
  • 5.• Cloud Foundry是什么? • 开源的 • Platform as a Service(PaaS)平 台 • PaaS平台是什么? • 一种云计算的架构模式 • 为云原生应用提供运行时的应用平 台 2017.thegiac.com
  • 6.2017.thegiac.com
  • 7.• Pivotal CF(PCF)是什么? • Cloud Foundry的Pivotal的发行版 • Cloud Foundry • Pivotal Web Service (PWS)是什 么? • Pivotal维护 • 部署在AWS上的Cloud Foundry • 提供公有云的服务 •https://run.pivotal.io2017.thegiac.com
  • 8.Cloud Foundry VMWare SpringSource Cloud Foundry的历史 2017.thegiac.com
  • 9.IT行业进入了互联网时代 2017.thegiac.com
  • 10.互联网应用的特点 快速部署 快速迭代 快速~~ 快 快速开发 快速试错 快速发布 2017.thegiac.com
  • 11.2017.thegiac.com
  • 12.自动化部 署 敏捷开发 微服务 如何做到快? 持续集成 DevOps 云计算 2017.thegiac.com
  • 13.我需要一 台服务器 IaaS云平台 服务器准 备好了 太好了,我可以开始了: 1.安装数据库 2.编译打包 3.安装依赖的库 4.部署 2017.thegiac.com
  • 14.这是我的代 码,请帮我 运行 PaaS云平台 好了 2017.thegiac.com
  • 15.2017.thegiac.com
  • 16.Cloud Foundry的设计目标 • 云原生应用的云原生平台 • 云原生 • 支持多种云平台—Multi Cloud • AWS, GCP, Azure • OpenStack, vSphere • 易于扩展 • 快速发布,快速升级 2017.thegiac.com
  • 17.IN 2017.thegiac.com
  • 18.微服务架构是把复杂功能分解为若干独立但相互协作的微服务的架构模式 2017.thegiac.com
  • 19.微服务架构的优势 快速发布 快速试错 独立扩展 快速应用 新技术 2017.thegiac.com
  • 20.微服务架构的优势 快速试错 快速发布 独立扩展 快速应用 新技术 2017.thegiac.com
  • 21.微服务架构的优势—快速发布 代码 量少 易于 测试 功能 单一 快速 发布 结构 简单 易于 配置 2017.thegiac.com
  • 22.Cloud Foundry架构图 2017.thegiac.com
  • 23.浏览器 负 载 均 衡 CLI 器 Router . . . Router User User User App App App Diego Loggregator traffic controller Loggregator NATS Cloud Controller UAA Health Manager CCDB UAADB 2017.thegiac.com
  • 24.浏览器 负 载 均 衡 CLI 器 Router . . . Router User App DEA . . User App . DEA Loggregator traffic controller Loggregator NATS Cloud Controller UAA Health Manager CCDB UAADB 2017.thegiac.com
  • 25.Diego架构图 2017.thegiac.com
  • 26.Cloud Foundry快速发布和滚动升级 浏览器 负 载 均 衡 CLI 器 Router . . . Router User User User App App App Diego Loggregator traffic controller NATS DEA Loggregator Cloud Controller UAA Health Manager CCDB2017.thegiac.cUomAADB
  • 27.微服务架构的优势 快速发布 快速试错 独立扩展 快速应用 新技术 2017.thegiac.com
  • 28.浏览器 负 载 均 衡 CLI 器 Router . Rout.er . Router UAsUpAepUsAprespprepr UAUAspUAesppesrpperpr Diego Loggregator traffic controller Loggregator NATS Cloud Controller UAA Health Manager CCDB UAADB 2017.thegiac.com
  • 29.Pivotal Web Service 架构图 2017.thegiac.com
  • 30.微服务架构的优势 快速发布 快速试错 独立扩展 快速应用 新技术 2017.thegiac.com
  • 31.微服务架构的优势—快速试错 反馈 好 保留 快速 原型 反馈 不好 回滚 2017.thegiac.com
  • 32.微服务架构的优势 快速发布 快速试错 独立扩展 快速应用 新技术 2017.thegiac.com
  • 33.2017.thegiac.com
  • 34.浏览器 负 载 均 衡 CLI 器 Router . . . Router User User User App App App Diego Loggregator traffic controller Loggregator NATS Cloud Controller UAA Health Manager CCDB UAADB 2017.thegiac.com
  • 35.技术考量与选型 • Diego – Golang • 适合系统编程 • 适合容器开发 • UAA – Java • Spring + oAuth2 • Router + NATS – Golang • 比ruby效率高 • 更小的内存占用 2017.thegiac.com
  • 36.微服务架构的劣势以及应对 系统复杂 难于调试 性能损失 难于监控 2017.thegiac.com
  • 37.微服务架构的劣势以及应对 系统复杂 难于调试 性能损失 难于监控 2017.thegiac.com
  • 38.A B F E C D 2017.thegiac.com
  • 39.A • 基于业务领域建 B F 立模型 • 减少服务之间的 依赖关系 E C D 2017.thegiac.com
  • 40.微服务架构的劣势以及应对 系统复杂 难于调试 性能损失 难于监控 2017.thegiac.com
  • 41.分布式系统的代价—性能损失 • 微服务架构适用于 • 对单机性能要求不高 • 通过水平扩展提高性能和吞吐量 • 例如:Web • 微服务架构不适用于 • 对单机性格要求高 • 难于水平扩张的 • 例如:操作系统,数据库 2017.thegiac.com
  • 42.微服务架构的劣势以及应对 系统复杂 难于调试 性能损失 难于监控 2017.thegiac.com
  • 43.分布式系统的代价—难于调试监控 • Cloud Foundry的解决方案 • 详尽的日志系统: • 虚拟机日志:bosh agent • 微服务日志:loggregator • 专用的监控系统 • Ops Metrics • PCF Metrics 2017.thegiac.com
  • 44.结论 • Cloud Foundry采用了微服务架构 • 快速发布新功能 • 多可用区水平扩展 • 易于引入新技术 • 为云原生应用提供了高可用的应用平台 2017.thegiac.com
  • 45.2017.thegiac.com
  • 46.参考资料 • Cloud Foundry社区 •http://www.cloudfoundry.org• Cloud Foundry代码库 •http://github.com/cloudfoundry•http://github.com/cloudfoundry-incubator • Pivotal公司文档库 •http://docs.pivotal.io/pivotalcf• Pivotal公司Blog •http://content.pivotal.io/blog• Pivotal中国研发中心微信公众号:pivotalrnd 2017.thegiac.com
  • 47.扫码关注GIAC公众号 2017.thegiac.com www.top100summit.com