You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/07/28 14:41:32 UTC

[GitHub] [apisix-website] Serendipity96 opened a new pull request #432: docs: added release Apache APISIX 2.8 blog

Serendipity96 opened a new pull request #432:
URL: https://github.com/apache/apisix-website/pull/432


   Changes:
   
   docs: added release Apache APISIX 2.8 blog
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] spacewander commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
spacewander commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678798298



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+`ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+`ua-restriction` 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer

Review comment:
       What about "支持在选择上游节点之后执行自定义逻辑"?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] tokers commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
tokers commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678766915



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 ip-restriction 和 limit-conn 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。

Review comment:
       Add hyperlinks for these two plugins?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   ✔️ Deploy Preview for *apisix* ready!
   
   
   🔨 Explore the source changes: 26aaebff31b651100f748fc367b44e024e60289a
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/6102187caa87dd00075b566b](https://app.netlify.com/sites/apisix/deploys/6102187caa87dd00075b566b?utm_source=github&utm_campaign=bot_dl)
   
   😎 Browse the preview: [https://deploy-preview-432--apisix.netlify.app](https://deploy-preview-432--apisix.netlify.app?utm_source=github&utm_campaign=bot_dp)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] Serendipity96 commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
Serendipity96 commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678800064



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+`ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+`ua-restriction` 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer

Review comment:
       The title is good. If we change the title, the content below need to rewrite.  The content now introduces how to implementation of balancer by plug-in. It is different the title describe. Which one do you introduce to others, plugin or customized logic? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   👷 Deploy Preview for *apisix* processing.
   
   
   🔨 Explore the source changes: 2c8717c77de3267047897df4c84ebf5ce4dfe26d
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/6102184e3de48c0007d4001a](https://app.netlify.com/sites/apisix/deploys/6102184e3de48c0007d4001a?utm_source=github&utm_campaign=bot_dl)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] spacewander commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
spacewander commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678789041



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+`ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+`ua-restriction` 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer

Review comment:
       "通过插件的方式实现 balancer" is hard to distinguish from "自定义 balancer".
   What about "支持在选择上游节点之后,通过插件的方式执行特定逻辑"?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan merged pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
juzhiyuan merged pull request #432:
URL: https://github.com/apache/apisix-website/pull/432


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   ✔️ Deploy Preview for *apisix* ready!
   
   
   🔨 Explore the source changes: 5451baeba5c2d38b086162db412eadf5a8f02c89
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/61016cf23f85b60007f16288](https://app.netlify.com/sites/apisix/deploys/61016cf23f85b60007f16288?utm_source=github&utm_campaign=bot_dl)
   
   😎 Browse the preview: [https://deploy-preview-432--apisix.netlify.app](https://deploy-preview-432--apisix.netlify.app?utm_source=github&utm_campaign=bot_dp)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   ✔️ Deploy Preview for *apisix* ready!
   
   
   🔨 Explore the source changes: 73165a7a1b6108fc48bad553e28613ece52aa2f2
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/610228059f4d090008f0a4e5](https://app.netlify.com/sites/apisix/deploys/610228059f4d090008f0a4e5?utm_source=github&utm_campaign=bot_dl)
   
   😎 Browse the preview: [https://deploy-preview-432--apisix.netlify.app](https://deploy-preview-432--apisix.netlify.app?utm_source=github&utm_campaign=bot_dp)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   ✔️ Deploy Preview for *apisix* ready!
   
   
   🔨 Explore the source changes: a2a1967f54a82a6fab740b4596daefac08b333e9
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/610232cfdc23300008c42f5b](https://app.netlify.com/sites/apisix/deploys/610232cfdc23300008c42f5b?utm_source=github&utm_campaign=bot_dl)
   
   😎 Browse the preview: [https://deploy-preview-432--apisix.netlify.app](https://deploy-preview-432--apisix.netlify.app?utm_source=github&utm_campaign=bot_dp)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051






-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] tokers commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
tokers commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678774503



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 ip-restriction 和 limit-conn 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。

Review comment:
       * ip-restriction: http://apisix.apache.org/docs/apisix/plugins/ip-restriction/
   * limit-conn: http://apisix.apache.org/docs/apisix/plugins/limit-conn/




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] commented on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] commented on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   👷 Deploy Preview for *apisix* processing.
   
   
   🔨 Explore the source changes: 48f28ec7f28ce1fcf29d30d1ae4af2b5d172c9ce
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/61016c8f7f76290008189a72](https://app.netlify.com/sites/apisix/deploys/61016c8f7f76290008189a72?utm_source=github&utm_campaign=bot_dl)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678783911



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!

Review comment:
       ```suggestion
   Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
   ```

##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+ua-restriction 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+ua-restriction 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer
+
+得益于 Apache APISIX 架构,许多功能都是通过插件的方式实现的。除了通过插件支持越来越多的功能,也让插件有了新玩法。**从 2.8 版本开始,支持使用插件的方式自定义 balancer 。**
+
+**什么场景下最适合使用插件的方式实现 balancer ?**
+
+1. 选择上游节点之后,访问上游之前
+2. 每次重试之前
+
+在 `_M.balancer` 方法内可以访问上游的 IP 和 Port
+
+```Lua
+function _M.balancer(conf, ctx)
+    core.log.notice("IP: ", ctx.balancer_ip, ", Port: ", ctx.balancer_port)
+end
+```
+
+出于性能考虑,balancer 方法首次运行在 access 阶段(实际上在 access 阶段就选好了上游节点),该方法并不与 OpenResty 的同名阶段重合。
+
+### 新玩法:支持自定义 balancer
+
+从 2.8 版本开始,用户可以自定义 balancer。**这里的 balancer,是指最少连接数、轮询、一致性哈希等负载均衡器。**
+
+虽然 Apache APISIX 已经提供了丰富的 balancer,但是用户可能需要用的 balancer 是和业务紧密相关的 balancer,比如:需要考虑机房、可用区等等。支持自定义 balancer,用户可以编写自己的 balancer,并通过 `require("apisix.balancer.your_balancer")`  加载到程序中。
+
+通常自定义的 balancer 需要 node 提供 host/port 以外的数据,可以把数据放到 metadata 里面,举个例子:
+
+```JSON
+{
+    "nodes": [
+        { host: "0.0.0.0", port: 1980, weight: 1, metadata: {b: 1} }

Review comment:
       ```suggestion
           { "host": "0.0.0.0", "port": 1980, "weight": 1, "metadata": {"b": 1} }
   ```

##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+ua-restriction 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。

Review comment:
       ```suggestion
   `ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
   ```

##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"

Review comment:
       ```suggestion
   title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
   ```

##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+ua-restriction 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+ua-restriction 配置举例:

Review comment:
       ```suggestion
   `ua-restriction` 配置举例:
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   👷 Deploy Preview for *apisix* processing.
   
   
   🔨 Explore the source changes: 524caf02b8a600017691bd259c9c0f78e381cb53
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/610212137bf6ec0007589a7e](https://app.netlify.com/sites/apisix/deploys/610212137bf6ec0007589a7e?utm_source=github&utm_campaign=bot_dl)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] juzhiyuan commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
juzhiyuan commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678399065



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 ip-restriction 和 limit-conn 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+ua-restriction 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+ua-restriction 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer
+
+得益于 Apache APISIX 架构,许多功能都是通过插件的方式实现的。除了通过插件支持越来越多的功能,也让插件有了新玩法。**从 2.8 版本开始,支持使用插件的方式自定义 balancer 。**
+
+**什么场景下最适合使用插件的方式实现 balancer ?**
+
+1. 选择上游节点之后,访问上游之前
+2. 每次重试之前
+
+在 `_M.balancer` 方法内可以访问上游的 IP 和 Port
+
+```Lua
+function _M.balancer(conf, ctx)
+    core.log.notice("IP: ", ctx.balancer_ip, ", Port: ", ctx.balancer_port)
+end
+```
+
+出于性能考虑,balancer 方法首次运行在 access 阶段(实际上在 access 阶段就选好了上游节点),该方法并不与 OpenResty 的同名阶段重合。
+
+### 新玩法:支持自定义 balancer
+
+从 2.8 版本开始,用户可以自定义 balancer。**这里的 balancer,是指最少连接数、轮询、一致性哈希等负载均衡器。**
+
+虽然 Apache APISIX 已经提供了丰富的 balancer,但是用户可能需要用的 balancer 是和业务紧密相关的 balancer,比如:需要考虑机房、可用区等等。支持自定义 balancer,用户可以编写自己的 balancer,并通过 `require("apisix.balancer.your_balancer")`  加载到程序中。
+
+通常自定义的 balancer 需要 node 提供 host/port 以外的数据,可以把数据放到 metadata 里面,举个例子:
+
+```JSON
+{
+    "nodes": [
+        { host = "0.0.0.0", port = 1980, weight = 1, metadata = {b = 1} }

Review comment:
       ```suggestion
           { host: "0.0.0.0", port: 1980, weight: 1, metadata: {b: 1} }
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] Serendipity96 commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
Serendipity96 commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678793862



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+`ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+`ua-restriction` 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer

Review comment:
       New title is too long,it looks like a sentence. Do you have any other titles?
   When we changed the title, do we need to rewrite the content below the title? I think we need.

##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+`ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+`ua-restriction` 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer

Review comment:
       New title is too long,it looks like a sentence. Do you have any other titles?
   When we changed the title, do we need to rewrite the content below the title? I think we need.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] Serendipity96 commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
Serendipity96 commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678774169



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了**1 个新功能,1 个新体验,2 个新插件,2 个新玩法**,快速阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 ip-restriction 和 limit-conn 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。

Review comment:
       good idea!Can you tell me where are the hyperlinks?I'm not familiar with this part.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   ✔️ Deploy Preview for *apisix* ready!
   
   
   🔨 Explore the source changes: edcdd3480001ea0448a2319181cbb4e58f4d1f0f
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/6102100923f5270007c956cf](https://app.netlify.com/sites/apisix/deploys/6102100923f5270007c956cf?utm_source=github&utm_campaign=bot_dl)
   
   😎 Browse the preview: [https://deploy-preview-432--apisix.netlify.app](https://deploy-preview-432--apisix.netlify.app?utm_source=github&utm_campaign=bot_dp)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] spacewander commented on a change in pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
spacewander commented on a change in pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#discussion_r678798298



##########
File path: website/blog/2021-07-28-release-apache-apisix-2.8.md
##########
@@ -0,0 +1,142 @@
+---
+title: "Apache APISIX 2.8 正式发布,带来更多新功能!"
+author: spacewander
+authorURL: "https://github.com/spacewander"
+authorImageURL: "https://avatars.githubusercontent.com/u/4161644?v=4"
+---
+> [@spacewander](https://github.com/spacewander), Core developer of Apache APISIX from [Shenzhen Zhiliu Technology Co.](https://www.apiseven.com/)
+>
+<!--truncate-->
+
+Apache APISIX 2.8 版本正式发布!🎉 这个版本有 30+ 开发者参与,共提交了 100+ PR,支持了 **1 个新功能、1 个新体验、2 个新插件、2 个新玩法**,快去阅读了解 2.8 版本的新特性吧!
+
+👇👇👇
+
+## Release Notes
+
+### 新功能:独立的 Keepalive 连接池
+
+从[2.7 版本](https://apisix.apache.org/blog/2021/06/29/release-apache-apisix-2.7)开始添加 Apache APISIX 自己的补丁和 Nginx C 模块,增强原生 Nginx 的功能,希望能够动态设置越来越多的 Nginx 配置。在发布的最新版本中,Apache APISIX 已经支持在 Upstream 级别上配置独立的 Keepalive 连接池。
+
+目前包含了以下功能:
+
+- 动态设置 mTLS
+- 动态设置 client_max_body_size
+- Upstream 的 keepalive(2.8 新功能)
+- gzip (2.8 新插件)
+
+在 Apache APISIX 后续版本中,我们也会陆续允许下面的 Nginx 配置能够被动态设置:
+
+- real_ip
+- proxy_max_temp_file_size
+- ……
+
+Upstream 的配置举例:
+
+```JSON
+{
+    "id": "backend",
+    "nodes": {"host:80": 100},
+    "type":"roundrobin",
+    "keepalive_pool": {
+        "size": 4,
+        "idle_timeout": 8,
+        "requests": 16
+    }
+}
+```
+
+### 新体验:stream 代理功能增强
+
+在 2.8 版本中,把 [ip-restriction](http://apisix.apache.org/docs/apisix/plugins/ip-restriction/) 和 [limit-conn](http://apisix.apache.org/docs/apisix/plugins/limit-conn/) 两个插件从 HTTP 部分的移植到了 stream 部分,这么做的好处是丰富网关在 stream 代理的功能,增加对上游服务的安全性保障。
+
+ip-restriction 可以用来做 IP 黑白名单过滤,保证只有来自特定 IP 的请求才能访问到后端服务。
+
+limit-conn 可以用来限制特定路由上同时存在的连接个数,限制客户端的并发访问量。
+
+### 新插件:gzip 插件
+
+2.8 版本中新增了 gzip 插件,使用 gzip 插件可以**动态设置路由级别的 gzip 参数**。
+
+gzip 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "gzip": {
+            "min_length": 20,
+            "http_version": 1.1,
+            "buffers": {
+                "number": 32,
+                "size": 4096
+            },
+            "types": [
+                "text/html"
+            ],
+            "comp_level": 1,
+            "vary": false
+        }
+    }
+}
+```
+
+### 新插件:ua-restriction
+
+`ua-restriction` 插件用于校验 User-Agent 是否处于黑白名单中,黑白名单是一个非常常见的需求,现在可以通过插件的方式启用了。
+
+`ua-restriction` 配置举例:
+
+```JSON
+{
+    "plugins": {
+        "ua-restriction": {
+            "denylist": [
+                "my-bot1",
+                "(Baiduspider)/(\\d+)\\.(\\d+)"
+            ]
+        }
+    }
+}
+```
+
+### 新玩法:支持通过插件的方式实现 balancer

Review comment:
       What about "支持在选择上游节点之后执行特定逻辑"?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   👷 Deploy Preview for *apisix* processing.
   
   
   🔨 Explore the source changes: edcdd3480001ea0448a2319181cbb4e58f4d1f0f
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/6102100923f5270007c956cf](https://app.netlify.com/sites/apisix/deploys/6102100923f5270007c956cf?utm_source=github&utm_campaign=bot_dl)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   ✔️ Deploy Preview for *apisix* ready!
   
   
   🔨 Explore the source changes: 524caf02b8a600017691bd259c9c0f78e381cb53
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/610212137bf6ec0007589a7e](https://app.netlify.com/sites/apisix/deploys/610212137bf6ec0007589a7e?utm_source=github&utm_campaign=bot_dl)
   
   😎 Browse the preview: [https://deploy-preview-432--apisix.netlify.app](https://deploy-preview-432--apisix.netlify.app?utm_source=github&utm_campaign=bot_dp)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   👷 Deploy Preview for *apisix* processing.
   
   
   🔨 Explore the source changes: 51a74d4f39b315d01ac7e7f952a64a3c7d55ac2e
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/6102327d1c8bb800075ed9e6](https://app.netlify.com/sites/apisix/deploys/6102327d1c8bb800075ed9e6?utm_source=github&utm_campaign=bot_dl)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix-website] netlify[bot] edited a comment on pull request #432: docs: added release Apache APISIX 2.8 blog

Posted by GitBox <gi...@apache.org>.
netlify[bot] edited a comment on pull request #432:
URL: https://github.com/apache/apisix-website/pull/432#issuecomment-888367051


   👷 Deploy Preview for *apisix* processing.
   
   
   🔨 Explore the source changes: 73165a7a1b6108fc48bad553e28613ece52aa2f2
   
   🔍 Inspect the deploy log: [https://app.netlify.com/sites/apisix/deploys/610228059f4d090008f0a4e5](https://app.netlify.com/sites/apisix/deploys/610228059f4d090008f0a4e5?utm_source=github&utm_campaign=bot_dl)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org