This is an automated email from the ASF dual-hosted git repository.

peacewong pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/linkis-website.git


The following commit(s) were added to refs/heads/dev by this push:
     new e1f33662593 feat: supply k8s resource related doc (#767)
e1f33662593 is described below

commit e1f33662593cbb6303c47ec783127ab4c9500497
Author: zlucelia <[email protected]>
AuthorDate: Fri Nov 24 16:10:05 2023 +0800

    feat: supply k8s resource related doc (#767)
---
 .../linkis-manager/resource-manager.md             |   8 +++++---
 .../linkis-manager/resource-manager.md             |  22 +++++++++++----------
 static/Images-zh/Architecture/rm-07.png            | Bin 0 -> 108587 bytes
 static/Images/Architecture/rm-07.png               | Bin 0 -> 108587 bytes
 4 files changed, 17 insertions(+), 13 deletions(-)

diff --git 
a/docs/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
 
b/docs/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
index df3ea73a8dd..6f1da248c05 100644
--- 
a/docs/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
+++ 
b/docs/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
@@ -15,7 +15,7 @@ In Linkis, other services that interact with RM mainly 
include:
 2. The engine connector, referred to as EC, is the actual execution unit of 
user operations. At the same time, as the actual user of the resource, the EC 
is responsible for reporting the actual use of the resource to the RM. Each EC 
has a corresponding resource record in the RM: during the startup process, it 
is reflected as a locked resource; during the running process, it is reflected 
as a used resource; after being terminated, the resource record is subsequently 
deleted.  
 ![04](/Images/Architecture/rm-04.png)  
 ## 3. Resource type and format
-![05](/Images/Architecture/rm-05.png)  
+![05](/Images/Architecture/rm-07.png)  
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;As shown in the figure above, 
all resource classes implement a top-level Resource interface, which defines 
the calculation and comparison methods that all resource classes need to 
support, and overloads the corresponding mathematical operators to enable 
resources to be Directly calculated and compared like numbers.  
 
 | Operator | Correspondence Method | Operator | Correspondence Method |
@@ -34,9 +34,11 @@ In Linkis, other services that interact with RM mainly 
include:
 | CPUResource | CPU Resource |
 | LoadResource | Both memory and CPU resources |
 | YarnResource | Yarn queue resources (queue, queue memory, queue CPU, number 
of queue instances) |
+| KubernetesResource | Kubernetes resources(namespace, CPU, memory) |
 | LoadInstanceResource | Server resources (memory, CPU, number of instances) |
-| DriverAndYarnResource | Driver and executor resources (with server resources 
and Yarn queue resources at the same time) |
-| SpecialResource | Other custom resources |  
+| DriverAndYarnResource | Driver and Yarn executor resources (with server 
resources and Yarn queue resources at the same time) |
+| DriverAndKubernetesResource | Driver and Kubernetes executor resources (with 
server resources and Kubernetes resources at the same time) |
+| SpecialResource | Other custom resources |
 
 ## 4. Available resource management
 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The available resources in the 
RM mainly come from two sources: the available resources reported by the ECM, 
and the resource limits configured according to tags in the Configuration 
module.  
diff --git 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
index 839e47bd8cb..906f7886871 100644
--- 
a/i18n/zh-CN/docusaurus-plugin-content-docs/current/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
+++ 
b/i18n/zh-CN/docusaurus-plugin-content-docs/current/architecture/feature/computation-governance-services/linkis-manager/resource-manager.md
@@ -21,7 +21,7 @@ Linkis中,与RM产生交互的其它服务主要有:
 
 ### 资源的类型与格式
 
-![05](/Images-zh/Architecture/rm-05.png)
+![05](/Images-zh/Architecture/rm-07.png)
 
 
如上图所示,所有的资源类均实现一个顶层的Resource接口,该接口定义了所有资源类均需要支持的计算和比较的方法,并进行相应的数学运算符的重载,使得资源之间能够像数字一样直接被计算和比较。
 
@@ -35,15 +35,17 @@ Linkis中,与RM产生交互的其它服务主要有:
 
 当前支持的资源类型如下表所示,所有的资源都有对应的json序列化与反序列化方法,能够通过json格式进行存储和在网络间传递:
 
-| 资源类型              | 描述                                                   |
-|-----------------------|--------------------------------------------------------|
-| MemoryResource        | 内存资源                                               |
-| CPUResource           | CPU资源                                                
|
-| LoadResource          | 同时具备内存与CPU的资源                                |
-| YarnResource          | Yarn队列资源(队列,队列内存,队列CPU,队列实例数)    |
-| LoadInstanceResource  | 服务器资源(内存,CPU,实例数)                        |
-| DriverAndYarnResource | 驱动器与执行器资源(同时具备服务器资源,Yarn队列资源) |
-| SpecialResource       | 其它自定义资源                                         |
+| 资源类型                    | 描述                                                 
      |
+| --------------------------- | 
---------------------------------------------------------- |
+| MemoryResource              | 内存资源                                           
        |
+| CPUResource                 | CPU资源                                          
          |
+| LoadResource                | 同时具备内存与CPU的资源                                  
  |
+| YarnResource                | Yarn队列资源(队列,队列内存,队列CPU,队列实例数)        |
+| KubernetesResource          | K8S集群资源(Namespace,CPU,内存)                      
  |
+| LoadInstanceResource        | 服务器资源(内存,CPU,实例数)                            |
+| DriverAndYarnResource       | 驱动器与Yarn执行器资源(同时具备服务器资源,Yarn队列资源) |
+| DriverAndKubernetesResource | 驱动器与K8S执行器资源(同时具备服务器资源,K8S资源)       |
+| SpecialResource             | 其它自定义资源                                        
     |
 
 ### 可用资源管理
 
diff --git a/static/Images-zh/Architecture/rm-07.png 
b/static/Images-zh/Architecture/rm-07.png
new file mode 100644
index 00000000000..d8f6ff503fe
Binary files /dev/null and b/static/Images-zh/Architecture/rm-07.png differ
diff --git a/static/Images/Architecture/rm-07.png 
b/static/Images/Architecture/rm-07.png
new file mode 100644
index 00000000000..d8f6ff503fe
Binary files /dev/null and b/static/Images/Architecture/rm-07.png differ


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to