当前位置:网站首页>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 you
Overall:
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, scalability
Microservice 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
边栏推荐
- 七夕给自己new一个chatRobot当对象
- 16种香饭做法全攻略
- 阿里云存储的数据库是怎么自动加快加载速度的呢www.cxsdkt.cn怎么设置案例?
- leetcode 剑指 Offer 10- II. 青蛙跳台阶问题
- ts/js function pass parameter with function writing
- [Structure internal power practice] Structure memory alignment (1)
- 吴恩达深度学习deeplearning.ai——第一门课:神经网络与深度学习——第二节:神经网络基础(下)
- 明天去订票,准备回家咯~~
- MySQL 数据库 报错 The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid)
- How to make a puzzle in PS, self-study PS software photoshop2022, PS make a puzzle effect
猜你喜欢
随机推荐
ECCV 2022 Oral 视频实例分割新SOTA:SeqFormer&IDOL及CVPR 2022 视频实例分割竞赛冠军方案...
Walk 100 trick society
15.1.1、md—md的基础语法,快速的写文本备忘录
XSS靶机通关以及XSS介绍
“充钱”也难治快手的“亏亏亏”?
SQL语句查询字段内重复内容,并按重复次数加序号
并发之CAS
selectPage 动态改变参数方法
Comprehensively explain what is the essential difference between GET and POST requests?Turns out I always misunderstood
CROS和JSONP配置
【LeetCode】623. Add a row to the binary tree
Hbuilder 学习使用中的一些记录
七夕给自己new一个chatRobot当对象
动态库之间回调函数使用
控制器-----controller
基于多块信息提取和马氏距离的k近邻故障监测
sql server收缩日志的作业和记录,失败就是因为和备份冲突了吗?
浅谈自动采集程序及入库
使用稀疏 4D 卷积对 3D LiDAR 数据中的运动对象进行后退分割(IROS 2022)
Random code generation