当前位置:网站首页>Overall design and implementation of Kubernetes-based microservice project
Overall design and implementation of Kubernetes-based microservice project
2022-08-05 09:05:00 【androidstarjack】
Click above to follow “Terminal R&D”
Set as "star" to learn more database knowledge with youOverall:
Microservice design: java(spring boot) + RPC(RESTFUL) + database (db) + cache (redis) + configuration center (apollo)
Microservice project implementation
kubernetes deploys K8seasy: https://github.com/xiaojiaqi/K8seasy_release_page
Microservice deployment
High availability and monitoring High availability: multi-instance registry: eureka, zookeeper, console, Nacos (Note: deploying microservices in kubernetes does not apply to the registryAny restrictions) Monitoring (Metrics): Prometheus + Grafana (memory size, number of 200 errors, number of 500 errors, number of threads in the JVM, GC time size) Logging (Logging): write directly to the kafka component and directly enter the log center (the log does notAfter landing again, the log IO is eliminated, and the log storage is also separated from the container) Tracing: APM (cat, pip, zipkin, skywalkin), Zipkin needs to add a library to the project, and does not need to write code,This has done little intrusion on the business, and it is very convenient for flow control: circuit breaker, current limit and degradation, sentinel
Service Grid and Data Persistence
Stateful Services
operator
Design
Consider:
System availability, reliability, robustness, scalabilityMicroservice Reference Architecture

Technical introduction

Principle of high observability

Apollo Configuration Center

Microservice DevOps platform with Kubernetes as a key link

Build and image push: Jenkins Pipeline or gitlab-runner Pipeline to complete

Workload access flow chart

Monitoring Components
Resource layer monitoring: Prometheus + Grafana + Node Exporter and other components to monitor the usage of CPU, memory, network, disk, etc. of Kubernetes nodes
Middleware layer monitoring: Prometheus + Grafana + MySQL Exporter + Nginx Exporter + JVM Exporteretc., monitor the usage of middleware such as MySQL, Nginx, JVM
Link/APM monitoring: monitoring tools such as Pinpoint / Skywalking to monitor the performance of the application
Reference Documentation
Design and implementation of Kubernetes-based microservice project
Kubernetes microservice graphical management tool: Kuboard
Spring Cloud on Kubernetes
Deploying SpringCloud on Kubernetes
Which is better, Spring Cloud or Kubernetes
Build environment setup
Two project structures
Source: https://blog.csdn.net/m0_37701381/article/details/104163877
Write at the end
If you don't understand anything after reading it, you can leave a message below to discuss, or you can ask me in a private message and I will reply after seeing it.In the end, if you think the article is helpful to you, remember to like it, follow it and don't get lost
@Terminal R&D Department
There are fresh dry goods to share every day!
Reply [idea activation] to get idea activation methodReply [Java] Get Java related video tutorials and materialsReply [SpringCloud] Get more learning materials related to SpringCloudReply [python] Get a full set of 0 basic Python knowledge manualsReply [2020] Get 2020 java related interview questions tutorialReply [Add group] to join the technical exchange group related to the terminal R&D departmentread moreBefore using Spring's BeanUtils, it is recommended that you understand these pits first!lazy-mock , a lazy tool for generating backend mock dataEarly adopters on Huawei Hongmeng OS, my first "hello world", take off!ByteDance: Is i++ thread-safe?An accident caused by SQL, a colleague was fired directly!!So sad!Check that the CPU of Alibaba Cloud ECS reaches 100%A powerful swagger-ui written by vue, a bit showy (with open source address)Believe in yourself, there is nothing that can't be done, only the unexpected. What you get here is not just technology!Click "Watching" to support Xiaoge, thank you边栏推荐
- 哪个是你爱情的颜色?
- What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file
- SQL语句查询字段内重复内容,并按重复次数加序号
- NC20164 :最大数MAXNUMBER [线段树]
- 链表中的数字相加----链表专题
- ts/js function pass parameter with function writing
- Why is pnpm hitting npm and yarn dimensionality reduction?
- 8.4 Summary of the mock competition
- Moonbeam团队发布针对整数截断漏洞的紧急安全修复
- sphinx匹配指定字段
猜你喜欢
随机推荐
基于 Kubernetes 的微服务项目整体设计与实现
施一公:科学需要想象,想象来自阅读
ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...
使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
七夕看什么电影好?爬取电影评分并存入csv文件
Embedded practice ---- based on RT1170 transplant memtester to do SDRAM test (25)
Walk 100 trick society
leetcode 剑指 Offer 10- II. 青蛙跳台阶问题
Chapter 12 Bayesian Networks
Comprehensively explain what is the essential difference between GET and POST requests?Turns out I always misunderstood
微信小程序请求封装
汇编语言(8)x86内联汇编
明天去订票,准备回家咯~~
What is a good movie to watch on Qixi Festival?Crawl movie ratings and save to csv file
SQL语句查询字段内重复内容,并按重复次数加序号
(转)[Json]net.sf.json 和org.json 的差别及用法
Creo 9.0 基准特征:基准平面
CROS and JSONP configuration
MySQL database error The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
sphinx matches the specified field







