节点文献

基于微服务的物联网平台的设计和容器部署研究

The Design of Internet of Things Platform Based on Microservicesand Container Deployment Research

【作者】 张益;

【导师】 郝建军;

【作者基本信息】 北京邮电大学 , 电子与通信工程(专业学位), 2020, 硕士

【摘要】 近年来物联网已经展现出巨大的市场潜力和广阔的发展前景,而物联网平台则是物联网产业结构中的关键环节。它作为物联网体系中的中坚力量,既要面对数以亿计的物理设备的连接,又要满足用户对于应用高可用的服务需求。如何基于飞速发展的虚拟化Docker容器技术,设计并实现一个低耦合、易扩展、可伸缩、高可用的物联网平台成为亟待解决的问题之一。本文首先对微服务架构的设计以及运用到的一些关键技术进行了研究。基于低耦合、易扩展的设计原则,通过业务功能对系统进行服务划分,采用分布式服务框架Spring Cloud进行微服务模块的开发;为了保证微服务模块的高可用,使用Consul对服务提供者和服务消费者进行多实例管理;为了对Spring Cloud服务调用链进行追踪保证系统的稳定性,采用Zipkin进行实时监控。然后,根据具体的业务需求设计整个物联网平台的系统架构,并给出了系统中各个部分的设计方案。为了提升程序的可扩展性和部署的便捷性,采用Kubernetes和Docker容器技术进行服务的部署使用。在Spring Cloud原有的RPC通信框架的基础上,使用Thrift替换Feign的使用,提高系统在高并发下的性能;针对Kubernetes原有伸缩指标只有CPU使用率的缺陷,增加Kubernetes根据QPS进行扩容和缩容。最后,对整个系统应用服务器进行系统的功能测试和性能测试。通过将Spring Cloud的RPC通信框架和Thrift对比,表明了 Thrift在吞吐量上的优势;将Kubernetes部署后的服务和单机环境下的服务进行对比,测试结果表明了容器部署在可用性和可靠性方面的优势。

【Abstract】 The Internet of things has shown huge market potential and broad development prospects,and the Internet of things platform is a critical part in the industrial structure of the Internet of things.As the backbone of the Internet of things,it not only faces the connection of thousands of physical devices,but also needs to meet the service demand of users for high availability of applications.How to design and implement a low-coupling,easy to expand,scalable,and highly available Internet of things platform based on the rapidly developing virtualization Docker container technology has become one of the most urgent problems to be solved.This thesis firstly studies the design of microservice architecture and some key technologies applied.Based on the design principle of low coupling and easy extension,the system is divided into services through business functions,and the distributed service framework Spring Cloud is adopted to develop micro-service modules.To ensure the high availability of micro service module,using Consul to manage service providers and service consumers.In order to track the Spring Cloud service invocation chains and ensure the stability of the system,Zipkin is used for real-time monitoring.Then the system architecture of the whole Internet of things platform is designed according to the specific business requirements,and the design scheme of each part of the system is provided.In order to improve the extensibility of the program and the convenience of deployment,Kubernetes and Docker container technology are adopted to deploy the service.Based on the original RPC communication framework of Spring Cloud,Thrift was used to replace the use of Feign to improve the performance of the system under high concurrency.In view of the defect that the original scaling index of Kubernetes has only CPU utilization,increase Kubernetes to expand and shrink according to QPS.Finally,the whole system application server system function test and performance test is done.The advantages of Thrift in throughout are demonstrated by comparing the test result of RPC communication framework of Spring Cloud with Thrift.The advantage of container deployment in availability and reliability are shown by comparing the deployed Kubernetes services with the standalone service.

【关键词】 微服务; Kubernetes; 物联网; 系统设计;
【Key words】 Microservices; Kubernetes; Internet of things; System design;
  • 【分类号】TN929.5;TP391.44
  • 【被引频次】1
  • 【下载频次】205
节点文献中: 

本文链接的文献网络图示:

本文的引文网络