Skip to content

Commit

Permalink
更新 k8s 内容
Browse files Browse the repository at this point in the history
  • Loading branch information
isno committed Jan 12, 2024
1 parent ff6af2e commit e82a004
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 17 deletions.
1 change: 0 additions & 1 deletion ServiceMesh/MicroService-history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# 8.1 服务治理形式的演进

谈论微服务架构如何优雅之前,我们得清楚知道微服务架构是一个分布式架构,分布式架构的第一定律是“不要使用分布式”,
自 2011 年微服务架构理念提出以来,10 余年间一批又一批技术框架和理念不断涌现出来,如果以技术的表现形式划分,服务治理的模式已经迭代了四代。

在第一代微服务架构中,以 RPC 通信为代表,首要解决的是微服务之间的通信问题。技术框架代表如阿里 Dubbo,跨语言平台的框架 Thrift、gRPC...
Expand Down
Binary file added assets/keda-arch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/keda-support-resources.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file removed container/GPU.md
Empty file.
10 changes: 0 additions & 10 deletions container/application-centric.md

This file was deleted.

18 changes: 17 additions & 1 deletion container/auto-scaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,20 @@ spec:

Kubernetes 自带的 HPA 仅支持 CPU/MEM 等有限的指标,但事实情况这些指标不一定就能代表服务的负载情况,比如消息服务器,如果消息堆积过多,我们希望启用更多的 Customer 处理消息,这种情况下就可以使用 Keda。

KEDA 是 Kubernetes 基于事件驱动的自动伸缩工具,通过 KEDA 我们可以根据需要处理的事件数量来驱动 Kubernetes 中任何容器的扩展。
KEDA 使得 Kubernetes 能够对 Pods 副本缩0或者扩展到更多是基于标准内置的 Kubernetes 指标,例如CPU和内存等标准,但也基于高级指标,例如消息队列的排队深度,每秒请求数,调度的 Cron 作业数,或者从您自己的应用程序记录中以及您可以想象的其他所有指标中的自定义指标


<div align="center">
<img src="../assets/keda-arch.png" width = "500" align=center />
</div>



KEDA 是 Kubernetes 基于事件驱动的自动伸缩工具,通过 KEDA 我们可以根据需要处理的事件数量来驱动 Kubernetes 中任何容器的扩展。


https://keda.sh/docs/2.12/scalers/

<div align="center">
<img src="../assets/keda-support-resources.png" width = "500" align=center />
</div>
2 changes: 2 additions & 0 deletions container/conclusion.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# 小结

5 changes: 0 additions & 5 deletions container/registry.md

This file was deleted.

0 comments on commit e82a004

Please sign in to comment.