当前位置:网站首页>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边栏推荐
猜你喜欢
随机推荐
DPU — 功能特性 — 管理系统的硬件卸载
【Excel实战】--图表联动demo_001
动态库之间回调函数使用
sql server中 两表查询 平均数 分组
浅谈自动采集程序及入库
十一道家常小菜详细攻略[图文并茂]
DPU — 功能特性 — 网络系统的硬件卸载
并发之CAS
Controlling number and letter input in ASP
使用HBuilder离线本地打包ipa教程
CROS and JSONP configuration
树状数组模版+例题
(转)[Json]net.sf.json 和org.json 的差别及用法
放大器OPA855的噪声计算实例
RedisTemplate: error template not initialized; call afterPropertiesSet() before using it
egg框架
让硬盘更快,让系统更稳定
今天是元宵节~~
How to make a puzzle in PS, self-study PS software photoshop2022, PS make a puzzle effect
【无标题】目录









