You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by gu...@apache.org on 2023/05/26 07:47:50 UTC
[flink-web] branch asf-site updated (89e7aa9b3 -> b64f8efce)
This is an automated email from the ASF dual-hosted git repository.
guoweijie pushed a change to branch asf-site
in repository https://gitbox.apache.org/repos/asf/flink-web.git
from 89e7aa9b3 Rebuild website
new b95beff78 [hotfix] Add a note about how to add external hyperlinks
new d95ecb5de [hotfix] Fix a typo
new d5d173dca [hotfix] Translate improve-website.md into Chinese
new b64f8efce [FLINK-32051] Fix broken documentation links in Flink blogs
The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
docs/config.toml | 2 +-
.../how-to-contribute/improve-website.md | 38 ++++++++++++++--------
docs/content/how-to-contribute/improve-website.md | 14 +++++++-
.../2022-01-04-scheduler-performance-part-two.md | 6 ++++
docs/layouts/shortcodes/docs_link.html | 2 +-
5 files changed, 46 insertions(+), 16 deletions(-)
[flink-web] 04/04: [FLINK-32051] Fix broken documentation links in Flink blogs
Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
guoweijie pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/flink-web.git
commit b64f8efce94018b87a4046c6c4d01e0aed1f5ab5
Author: Thesharing <cy...@outlook.com>
AuthorDate: Tue May 23 15:27:13 2023 +0800
[FLINK-32051] Fix broken documentation links in Flink blogs
---
docs/config.toml | 2 +-
docs/content/posts/2022-01-04-scheduler-performance-part-two.md | 6 ++++++
docs/layouts/shortcodes/docs_link.html | 2 +-
3 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/docs/config.toml b/docs/config.toml
index 120654901..cc9f47055 100644
--- a/docs/config.toml
+++ b/docs/config.toml
@@ -25,7 +25,7 @@ pygmentsUseClasses = true
posts = "/:year/:month/:day/:title/"
[params]
- DocsBaseUrl = "//nightlies.apache.org/flink"
+ DocsBaseUrl = "//nightlies.apache.org/flink/"
# The github repository for Apache Flink project website
Repo = "//github.com/apache/flink-web"
diff --git a/docs/content/posts/2022-01-04-scheduler-performance-part-two.md b/docs/content/posts/2022-01-04-scheduler-performance-part-two.md
index c2527029f..c9f9f34e3 100644
--- a/docs/content/posts/2022-01-04-scheduler-performance-part-two.md
+++ b/docs/content/posts/2022-01-04-scheduler-performance-part-two.md
@@ -33,6 +33,7 @@ Fig. 1 - Two distribution patterns in Flink
</center>
<br/>
+
In Flink 1.12, the [ExecutionEdge]({{< param DocsBaseUrl >}}flink-docs-release-1.12/api/java/org/apache/flink/runtime/executiongraph/ExecutionEdge.html) class is used to store the information of connections between tasks. This means that for the all-to-all distribution pattern, there would be O(n<sup>2</sup>) ExecutionEdges, which would take up a lot of memory for large-scale jobs. For two [JobVertices]({{< param DocsBaseUrl >}}flink-docs-release-1.14/api/java/org/apache/flink/runtime/jo [...]
As we can see in Fig. 1, for two JobVertices connected with the all-to-all distribution pattern, all [IntermediateResultPartitions]({{< param DocsBaseUrl >}}flink-docs-release-1.14/api/java/org/apache/flink/runtime/executiongraph/IntermediateResultPartition.html) produced by upstream [ExecutionVertices]({{< param DocsBaseUrl >}}flink-docs-release-1.14/api/java/org/apache/flink/runtime/executiongraph/ExecutionVertex.html) are [isomorphic](https://en.wikipedia.org/wiki/Isomorphism), which [...]
@@ -49,6 +50,7 @@ Fig. 2 - How partitions and vertices are grouped w.r.t. distribution patterns
</center>
<br/>
+
When scheduling tasks, Flink needs to iterate over all the connections between result partitions and consumer vertices. In the past, since there were O(n<sup>2</sup>) edges in total, the overall complexity of the iteration was O(n<sup>2</sup>). Now ExecutionEdge is replaced with ConsumerVertexGroup and ConsumedPartitionGroup. As all the isomorphic result partitions are connected to the same downstream ConsumerVertexGroup, when the scheduler iterates over all the connections, it just need [...]
For the pointwise distribution pattern, one ConsumedPartitionGroup is connected to one ConsumerVertexGroup point-to-point. The number of groups is the same as the number of ExecutionEdges. Thus, the computational complexity of iterating over the groups is still O(n).
@@ -100,6 +102,7 @@ Fig. 3 - How ShuffleDescriptors are distributed
</center>
<br/>
+
To avoid running out of space on the local disk, the cache will be cleared when the related partitions are no longer valid and a size limit is added for ShuffleDescriptors in the blob cache on TaskManagers. If the overall size exceeds the limit, the least recently used cached value will be removed. This ensures that the local disks on the JobManager and TaskManagers won't be filled up with ShuffleDescriptors, especially in session mode.
# Optimizations when building pipelined regions
@@ -116,6 +119,7 @@ Fig. 4 - The LogicalPipelinedRegion and the SchedulingPipelinedRegion
</center>
<br/>
+
Currently, there are two types of pipelined regions in the scheduler: [LogicalPipelinedRegion]({{< param DocsBaseUrl >}}flink-docs-release-1.14/api/java/org/apache/flink/runtime/jobgraph/topology/LogicalPipelinedRegion.html) and [SchedulingPipelinedRegion]({{< param DocsBaseUrl >}}flink-docs-release-1.14/api/java/org/apache/flink/runtime/scheduler/strategy/SchedulingPipelinedRegion.html). The LogicalPipelinedRegion denotes the pipelined regions on the logical level. It consists of JobVer [...]
During the construction of pipelined regions, a problem arises: There may be cyclic dependencies between pipelined regions. A pipelined region can be scheduled if and only if all its dependencies have finished. However, if there are two pipelined regions with cyclic dependencies between each other, there will be a scheduling [deadlock](https://en.wikipedia.org/wiki/Deadlock). They are both waiting for the other one to be scheduled first, and none of them can be scheduled. Therefore, [Tar [...]
@@ -128,6 +132,7 @@ Fig. 5 - The topology with scheduling deadlock
</center>
<br/>
+
To speed up the construction of pipelined regions, the relevance between the logical topology and the scheduling topology can be leveraged. Since a SchedulingPipelinedRegion is derived from just one LogicalPipelinedRegion, Flink traverses all LogicalPipelinedRegions and converts them into SchedulingPipelinedRegions one by one. The conversion varies based on the distribution patterns of edges that connect vertices in the LogicalPipelinedRegion.
If there are any all-to-all distribution patterns inside the region, the entire region can just be converted into one SchedulingPipelinedRegion directly. That's because for the all-to-all edge with the pipelined data exchange, all the regions connected to this edge must execute simultaneously, which means they are merged into one region. For the all-to-all edge with a blocking data exchange, it will introduce cyclic dependencies, as Fig. 5 shows. All the regions it connects must be merge [...]
@@ -142,6 +147,7 @@ Fig. 6 - How to convert a LogicalPipelinedRegion to ScheduledPipelinedRegions
</center>
<br/>
+
After the optimization, the overall computational complexity of building pipelined regions decreases from O(n<sup>2</sup>) to O(n). In our experiments, for the job which contains two vertices connected with a blocking all-to-all edge, when their parallelisms are both 10K, the time of building pipelined regions decreases by 99%, from 8,257 ms to 120 ms.
# Summary
diff --git a/docs/layouts/shortcodes/docs_link.html b/docs/layouts/shortcodes/docs_link.html
index 298d9ffe7..040501fc8 100644
--- a/docs/layouts/shortcodes/docs_link.html
+++ b/docs/layouts/shortcodes/docs_link.html
@@ -23,6 +23,6 @@ under the License.
- file: The absolute path to the image file (required)
- name: The rendered link name (required)
*/}}
-<a href="{{ .Site.Params.DocsBaseUrl }}/{{ .Get "file" }}">
+<a href="{{ .Site.Params.DocsBaseUrl }}{{ .Get "file" }}">
{{ .Get "name" }}
</a>
[flink-web] 02/04: [hotfix] Fix a typo
Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
guoweijie pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/flink-web.git
commit d95ecb5de0027c16a905a6a924f3acf229db7abb
Author: Thesharing <cy...@outlook.com>
AuthorDate: Thu May 25 14:51:14 2023 +0800
[hotfix] Fix a typo
---
docs/content/how-to-contribute/improve-website.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/docs/content/how-to-contribute/improve-website.md b/docs/content/how-to-contribute/improve-website.md
index b710d4c32..959cb7f36 100644
--- a/docs/content/how-to-contribute/improve-website.md
+++ b/docs/content/how-to-contribute/improve-website.md
@@ -43,7 +43,7 @@ The files and directories in the website git repository have the following roles
- The `docs` directory contains all documentation, themes and other content that's needed to render and/or generate the website.
- The `docs/content/docs` folder contains all English content. The `docs/content.zh/docs` contains all Chinese content.
- The `docs/content/posts` contains all blog posts.
-- The `content/` directory contains the generated HTML files from Hugo. It is important to place the files in this directory since the Apache Infrastructure to host the Flink website is pulling the HTML content from his directory. (For committers: When pushing changes to the website git, push also the updates in the `content/` directory!)
+- The `content/` directory contains the generated HTML files from Hugo. It is important to place the files in this directory since the Apache Infrastructure to host the Flink website is pulling the HTML content from this directory. (For committers: When pushing changes to the website git, push also the updates in the `content/` directory!)
## Update or extend the documentation
[flink-web] 03/04: [hotfix] Translate improve-website.md into Chinese
Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
guoweijie pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/flink-web.git
commit d5d173dcac70b9f6ebbd36d5301ecf78d1aebe7e
Author: Thesharing <cy...@outlook.com>
AuthorDate: Thu May 25 14:52:10 2023 +0800
[hotfix] Translate improve-website.md into Chinese
---
.../how-to-contribute/improve-website.md | 26 +++++++++++-----------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/docs/content.zh/how-to-contribute/improve-website.md b/docs/content.zh/how-to-contribute/improve-website.md
index 6ed3c3918..1e90ab6f0 100644
--- a/docs/content.zh/how-to-contribute/improve-website.md
+++ b/docs/content.zh/how-to-contribute/improve-website.md
@@ -35,15 +35,15 @@ git checkout asf-site
## 目录结构和文件
-Flink 的官网是用 [Markdown](http://daringfireball.net/projects/markdown/). Markdown is a lightweight markup language which can be translated to HTML. We use [Hugo](https://gohugo.io/) to generate static HTML files from Markdown.
+Flink 官网使用 [Markdown](http://daringfireball.net/projects/markdown/) 语言。Markdown 是一种轻量级标记语言,可以转换为 HTML。我们使用 [Hugo](https://gohugo.io/) 从 Markdown 生成静态 HTML 文件。
-The files and directories in the website git repository have the following roles:
+`flink-web` git 仓库中的文件和目录具有以下作用:
-- All files ending with `.md` are Markdown files. These files are translated into static HTML files.
-- The `docs` directory contains all documentation, themes and other content that's needed to render and/or generate the website.
-- The `docs/content/docs` folder contains all English content. The `docs/content.zh/docs` contains all Chinese content.
-- The `docs/content/posts` contains all blog posts.
-- The `content/` directory contains the generated HTML files from Hugo. It is important to place the files in this directory since the Apache Infrastructure to host the Flink website is pulling the HTML content from his directory. (For committers: When pushing changes to the website git, push also the updates in the `content/` directory!)
+- 所有以 `.md` 结尾的文件都是 Markdown 文件。这些文件将被转换为静态 HTML 文件。
+- `docs` 目录包含所有文档、主题和其他用于渲染和生成网站的内容。
+- `docs/content/docs` 文件夹包含所有英文内容。`docs/content.zh/docs` 文件夹包含所有中文内容。
+- `docs/content/posts` 文件夹包含所有博客文章。
+- `content/` 目录包含 Hugo 生成的 HTML 文件。鉴于托管 Flink 官网的 Apache Infrastructure 从该目录中拉取 HTML 网页内容,因此将生成文件放置在此目录中这一步至关重要。( Committer 注意:在向 git 仓库推送更改的同时,需要同时更新 `content/` 目录中的内容!)
## 更新文档
@@ -53,7 +53,7 @@ The files and directories in the website git repository have the following roles
./build.sh
```
-The script compiles the Markdown files into HTML and starts a local webserver. Open your browser at `http://localhost:1313` to view the website including your changes. The Chinese translation is located at `http://localhost:1313/zh/`. The served website is automatically re-compiled and updated when you modify and save any file and refresh your browser.
+该脚本将 Markdown 文件编译为 HTML 并启动本地 Web 服务器。在浏览器中打开 `http://localhost:1313` 以查看包括修改后的网站。中文版本位于 `http://localhost:1313/zh/` 。当您做出修改、保存任何文件并刷新浏览器时,网站内容会自动重新编译和更新。
如果要在文档或者博客文章中添加 Flink 官方文档的外链引用,请使用以下语法:
@@ -71,7 +71,7 @@ The script compiles the Markdown files into HTML and starts a local webserver. O
## 提交你的贡献
-Flink 项目通过 [GitHub Mirror](https://github.com/apache/flink-web) 以提交 [Pull Requests](https://help.github.com/articles/using-pull-requests)方式接受网站贡献。Pull requests 是一种通过向特定代码分支提交补丁的简单方法。
+Flink 项目通过 [GitHub Mirror](https://github.com/apache/flink-web) 以提交 [Pull Requests](https://help.github.com/articles/using-pull-requests) 方式接受网站贡献。Pull requests 是一种通过向特定代码分支提交补丁的简单方法。
请按以下步骤操作准备并提交 pull request。
@@ -83,11 +83,11 @@ Flink 项目通过 [GitHub Mirror](https://github.com/apache/flink-web) 以提
git push origin myBranch
```
-3. 打开你镜像的仓库 (`https://github.com/<your-user-name>/flink-web`) 并使用 “Create Pull Request” 按钮开始创建 pull request 取请求。 确保基础分支是 `apache/flink-web asf-site` ,并且 head fork 选择带有更改内容的分支。 为 pull request 提供有意义的描述并提交。
+3. 打开你镜像的仓库 (`https://github.com/<your-user-name>/flink-web`) 并使用 “Create Pull Request” 按钮开始创建新的 pull request。确保基础分支是 `apache/flink-web asf-site` ,并且 head fork 选择带有更改内容的分支。 为 pull request 提供有意义的描述并提交。
## Committer 章节
-**本节仅适用于提交者。**
+**本章节仅适用于 Committer。**
### ASF 网站的 git 仓库
@@ -97,11 +97,11 @@ Flink 项目通过 [GitHub Mirror](https://github.com/apache/flink-web) 以提
### 合并 pull request
-默认所有的修改仅在源文件上完成(对content/目录中自动生成的文件没有修改)。 在推送网站更改之前,请运行构建脚本。
+默认所有的修改仅在源文件上完成(对 `content/` 目录中自动生成的文件没有修改)。 在推送网站更改之前,请运行构建脚本。
```
./build.sh
```
-将更改添加到content/ 目录作为附加提交,并将更改推送到 ASF 基本仓库。
+将更改添加到 `content/` 目录作为附加提交,并将更改推送到 ASF 基本仓库。
[flink-web] 01/04: [hotfix] Add a note about how to add external hyperlinks
Posted by gu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
guoweijie pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/flink-web.git
commit b95beff780727cc106de66ef012ca0bf829cae4b
Author: Thesharing <cy...@outlook.com>
AuthorDate: Thu May 25 14:50:58 2023 +0800
[hotfix] Add a note about how to add external hyperlinks
---
docs/content.zh/how-to-contribute/improve-website.md | 12 ++++++++++++
docs/content/how-to-contribute/improve-website.md | 12 ++++++++++++
2 files changed, 24 insertions(+)
diff --git a/docs/content.zh/how-to-contribute/improve-website.md b/docs/content.zh/how-to-contribute/improve-website.md
index 5ff7bdb68..6ed3c3918 100644
--- a/docs/content.zh/how-to-contribute/improve-website.md
+++ b/docs/content.zh/how-to-contribute/improve-website.md
@@ -55,6 +55,18 @@ The files and directories in the website git repository have the following roles
The script compiles the Markdown files into HTML and starts a local webserver. Open your browser at `http://localhost:1313` to view the website including your changes. The Chinese translation is located at `http://localhost:1313/zh/`. The served website is automatically re-compiled and updated when you modify and save any file and refresh your browser.
+如果要在文档或者博客文章中添加 Flink 官方文档的外链引用,请使用以下语法:
+
+```markdown
+{{</* docs_link file="relative_path/" name="Title"*/>}}
+```
+
+例如:
+
+```markdown
+{{</* docs_link file="flink-docs-stable/docs/dev/datastream/side_output/" name="Side Output"*/>}}
+```
+
如果有任何疑问,欢迎在开发者邮件列表中咨询。
## 提交你的贡献
diff --git a/docs/content/how-to-contribute/improve-website.md b/docs/content/how-to-contribute/improve-website.md
index 4431e125b..b710d4c32 100644
--- a/docs/content/how-to-contribute/improve-website.md
+++ b/docs/content/how-to-contribute/improve-website.md
@@ -55,6 +55,18 @@ You can update and extend the website by modifying or adding Markdown files or a
The script compiles the Markdown files into HTML and starts a local webserver. Open your browser at `http://localhost:1313` to view the website including your changes. The Chinese translation is located at `http://localhost:1313/zh/`. The served website is automatically re-compiled and updated when you modify and save any file and refresh your browser.
+To add an external hyperlink to the official documentation of Flink in your documentations or blog posts, please use the following syntax:
+
+```markdown
+{{</* docs_link file="relative_path/" name="Title"*/>}}
+```
+
+For example:
+
+```markdown
+{{</* docs_link file="flink-docs-stable/docs/dev/datastream/side_output/" name="Side Output"*/>}}
+```
+
Please feel free to ask any questions you have on the developer mailing list.
## Submit your contribution