关于apisix:Apache-APISIX-2100-正式发布带来第一个-LTS-版本

24次阅读

共计 2080 个字符,预计需要花费 6 分钟才能阅读完成。

Apache APISIX 2.10 版本正式公布!🎉 这是 Apache APISIX 首个 LTS 版本 ,同时反对 10+ 个新性能和新插件。疾速浏览理解 2.10.0 版本的新个性吧!

里程碑:第一个 LTS 版本

对于 Apache APISIX 来说,本次公布的 2.10.0 是一个具备里程碑意义的版本,因为 Apache APISIX 2.10.0 是咱们的第一个 LTS(Long Time Support)的版本。

咱们会在 Apache APISIX 2.10.0 的根底上公布后续的 patch 版本,也就是 2.10.1、2.10.2 等版本。这些版本会从主分支上 backport bugfix。

按计划,10 月份咱们会公布首个 LTS 版本的首个 patch 版本,也就是 Apache APISIX 2.10.1。

之后咱们会交替公布 2.10.x(例如 2.10.2)和 2.x(例如 2.11.0)两个版本线,放弃性能迭代的同时,确保 LTS 版本可能失去较新的 bugfix。

值得一提的是,Apache APISIX 2.10.0 的 docker 镜像将会内置 APISIX OpenResty,无需自行编译就能用到 Apache APISIX 的全副性能。

新性能:service 减少 hosts 属性

在 Apache APISIX 2.10.0 版本外面,咱们给 service 加上了 hosts 属性。就像 service 外面其余字段一样,route 能够从 service 中继承 hosts 属性。

上面的配置:

# services/1
{"hosts": ["bar.com"]
}
# routes/1
{
    "upstream": {
        "nodes": {"127.0.0.1:1980": 1},
        "type": "roundrobin"
    },
    "service_id": "1",
    "uri": "/hello"
}

相当于:

# routes/1
{
    "upstream": {
        "nodes": {"127.0.0.1:1980": 1},
        "type": "roundrobin"
    },
    "hosts": ["bar.com"],
    "uri": "/hello"
}

这么批改之后,Apache APISIX 外面的 route 和 service 的关系与 Nginx 外面的 location 和 server 的关系越来越类似。能够这么说,本次批改让 service 从鸡肋变成了鸡腿,把 service 又拉回了 Apache APISIX 配置外围三角:route、upstream、service 之中。

新性能:反对设置镜像申请的比例

proxy-mirror 插件反对设置镜像申请的比例,是用户们始终在期待的性能,咱们在 Apache APISIX 2.10.0 上反对了这个性能。

通过设置 sample\_ratio,能够管制被镜像到测试服务的申请数量。比方,下述的配置将 sample\_ratio 设置为 0.5,会将一半的申请镜像到测试服务上:

{
    "plugins": {
        "proxy-mirror": {
            "host": "http://127.0.0.1:1986",
            "sample_ratio": 0.5
        }
    },
    "upstream": {
        "nodes": {"127.0.0.1:1980": 1},
        "type": "roundrobin"
    },
    "uri": "/hello"
}

新组件

APISIX Python Plugin Runner

继 Java Plugin Runner 和 Go Plugin Runner 之后,Apache APISIX 又迎来了新的 Plugin Runner。

Apache APISIX Python Plugin Runner 已于 9 月 6 日公布了 0.1.0 版本。

Python 是一门有着深厚大众根底的编程语言,始终以容易上手和灵便多变而著称。现在你我也能用这门语言,给 Apache APISIX 编写插件了。

除了 Python Plugin Runner 之外,社区的搭档也在开发其余编程语言的 Plugin Runner,比方 JavaScript Plugin Runner,欢送大家参加开发。

下载

除了上述新性能和组件外,Apache APISIX 2.10.0 版本还引入了十余个新性能和插件,详情请查看本次公布对应的 Change log。

下载 Apache APISIX 2.10.0

  • 源代码 :请拜访 https://apisix.apache.org/dow…
  • 二进制安装包 :请拜访 https://apisix.apache.org/zh/…

对于 Apache APISIX

Apache APISIX 是一个动静、实时、高性能的开源 API 网关,提供负载平衡、动静上游、灰度公布、服务熔断、身份认证、可观测性等丰盛的流量治理性能。Apache APISIX 能够帮忙企业疾速、平安的解决 API 和微服务流量,包含网关、Kubernetes Ingress 和服务网格等。

  • Apache APISIX GitHub:https://github.com/apache/apisix
  • Apache APISIX 官网:https://apisix.apache.org/
  • Apache APISIX 文档:https://apisix.apache.org/zh/…

正文完
 0