You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2020/07/15 08:40:51 UTC

[shardingsphere-elasticjob] branch master updated: Add resource assign to feature (#1070)

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

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-elasticjob.git


The following commit(s) were added to refs/heads/master by this push:
     new d9dae25  Add resource assign to feature (#1070)
d9dae25 is described below

commit d9dae25ed2e81a4e67cd71a3f7515879f87f8aab
Author: Liang Zhang <te...@163.com>
AuthorDate: Wed Jul 15 16:40:43 2020 +0800

    Add resource assign to feature (#1070)
    
    * Add resource assign to feature
    
    * Update resource assign
---
 docs/content/features/failover.cn.md               |  4 +-
 docs/content/features/failover.en.md               |  4 +-
 docs/content/features/jobt-ype.cn.md               |  4 +-
 docs/content/features/misfired.cn.md               |  4 +-
 docs/content/features/misfired.en.md               |  4 +-
 docs/content/features/resource.cn.md               | 43 ++++++++++++++++++++++
 .../features/{failover.en.md => resource.en.md}    |  2 +-
 7 files changed, 54 insertions(+), 11 deletions(-)

diff --git a/docs/content/features/failover.cn.md b/docs/content/features/failover.cn.md
index 071bd15..37f6192 100644
--- a/docs/content/features/failover.cn.md
+++ b/docs/content/features/failover.cn.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.2. </b>"
+pre = "<b>3.3. </b>"
 title = "失效转移"
-weight = 2
+weight = 3
 chapter = true
 +++
 
diff --git a/docs/content/features/failover.en.md b/docs/content/features/failover.en.md
index dd3fc73..c228768 100644
--- a/docs/content/features/failover.en.md
+++ b/docs/content/features/failover.en.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.2. </b>"
+pre = "<b>3.3. </b>"
 title = "Failover"
-weight = 2
+weight = 3
 chapter = true
 +++
 
diff --git a/docs/content/features/jobt-ype.cn.md b/docs/content/features/jobt-ype.cn.md
index 6db12a2..75f44fc 100644
--- a/docs/content/features/jobt-ype.cn.md
+++ b/docs/content/features/jobt-ype.cn.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.4. </b>"
+pre = "<b>3.5. </b>"
 title = "作业开放生态"
-weight = 4
+weight = 5
 chapter = true
 +++
 
diff --git a/docs/content/features/misfired.cn.md b/docs/content/features/misfired.cn.md
index 81bd774..f785023 100644
--- a/docs/content/features/misfired.cn.md
+++ b/docs/content/features/misfired.cn.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.3. </b>"
+pre = "<b>3.4. </b>"
 title = "错过任务重执行"
-weight = 3
+weight = 4
 chapter = true
 +++
 
diff --git a/docs/content/features/misfired.en.md b/docs/content/features/misfired.en.md
index 80e16eb..b20f9d6 100644
--- a/docs/content/features/misfired.en.md
+++ b/docs/content/features/misfired.en.md
@@ -1,7 +1,7 @@
 +++
-pre = "<b>3.3. </b>"
+pre = "<b>3.4. </b>"
 title = "Misfired"
-weight = 3
+weight = 4
 chapter = true
 +++
 
diff --git a/docs/content/features/resource.cn.md b/docs/content/features/resource.cn.md
new file mode 100644
index 0000000..6d0c827
--- /dev/null
+++ b/docs/content/features/resource.cn.md
@@ -0,0 +1,43 @@
++++
+pre = "<b>3.2. </b>"
+title = "资源分配"
+weight = 2
+chapter = true
++++
+
+资源分配功能为 ElasticJob Cloud 所特有的功能。
+
+## 作业运行模式
+
+ElasticJob Cloud 分为瞬时作业和常驻作业 2 种运行模式。
+
+### 瞬时作业
+
+在每一次作业执行完毕后立刻释放资源,保证利用现有资源错峰执行。
+资源分配和容器启动均占用一定时长,且作业执行时资源不一定充足,因此作业执行会有延迟。
+瞬时作业适用于间隔时间长,资源消耗多且对执行时间无严格要求的作业。
+
+### 常驻作业
+
+无论在运行时还是等待运行时,均一直占用分配的资源,可节省过多容器启动和资源分配的开销,适用于间隔时间短,资源需求量稳定的作业。
+
+## 调度器
+
+ElasticJob Cloud 基于 Mesos 的 Framework 开发,用于资源调度和应用分发,需要独立启动并提供服务。
+
+## 作业应用
+
+指作业打包部署后的应用,描述了作业启动需要用到的 CPU、内存、启动脚本及应用下载路径等基本信息。
+每个作业应用可以包含一个或多个作业。
+
+## 作业
+
+即实际运行的具体任务,和 ElasticJob Lite 共用同样的作业生态。
+在注册作业之前必须先注册作业应用。
+
+## 资源
+
+指作业启动或运行需要用到的 CPU、内存。
+配置在作业应用维度表示整个应用启动需要用的资源;
+配置在作业维度表示每个作业运行需要的资源。
+作业启动需要的资源为指定作业应用需要的资源与作业需要资源的总和。
diff --git a/docs/content/features/failover.en.md b/docs/content/features/resource.en.md
similarity index 70%
copy from docs/content/features/failover.en.md
copy to docs/content/features/resource.en.md
index dd3fc73..f5f6d90 100644
--- a/docs/content/features/failover.en.md
+++ b/docs/content/features/resource.en.md
@@ -1,6 +1,6 @@
 +++
 pre = "<b>3.2. </b>"
-title = "Failover"
+title = "Resource Assign"
 weight = 2
 chapter = true
 +++