apisix 2.13.2版本问题及解决方法

94 阅读1分钟

在使用apisix2.13.2的版本中,会出现上游错乱的问题。具体表现就是偶发的转发后服务地址无法访问,出现莫名其妙的错误,最后排查可能是上游之间串掉了,导致发错了地方,自然会报莫名其妙的错误。

解决方案

1.不使用apisix2.13.2版本。

2.在已使用的地方进行小版本升级,升级到apisix2.13.3版本。

升级方法参考

参考官网rpm安装方式,详见文末附带链接及内容

yum install -y --downloadonly --downloaddir=./apisix apisix-2.13.3

apisix-2.13.3-0.el7.x86_64.rpm离线下载下来,然后在老版本所在服务器进行安装。(安装前先停止apisix)

apisix stop
yum install apisix-2.13.3-0.el7.x86_64.rpm

安装的时候会创建一个config-default.yaml.rpmnew的文件,保留老的config-default.yaml,由于小版本升级,所以也不用改动配置文件了。 安装完成后启动apisix进行测试

apisix start

再对服务进行大量的测试,我测试是问题已经解决。

参考资料

apisix rpm 安装

apisix.apache.org/docs/apisix…

If OpenResty is not installed, you can run the command below to install both OpenResty and APISIX repositories:

sudo yum install -y https://repos.apiseven.com/packages/centos/apache-apisix-repo-1.0-1.noarch.rpm

Copy

If OpenResty is installed, the command below will install the APISIX repositories:

sudo yum-config-manager --add-repo https://repos.apiseven.com/packages/centos/apache-apisix.repo

Copy

Then, to install APISIX, run:

sudo yum install apisix
TIP

You can also install a specific version of APISIX by specifying it:

sudo yum install apisix-2.13.1

apisix 2.13.2升级到2.13.3记录

yum install apisix-2.13.3-0.el7.x86_64.rp                  m
Loaded plugins: fastestmirror
Examining apisix-2.13.3-0.el7.x86_64.rpm: apisix-2.13.3-0.el7.x86_64
Marking apisix-2.13.3-0.el7.x86_64.rpm as an update to apisix-2.13.2-0.el7.x86_6                  4
Resolving Dependencies
--> Running transaction check
---> Package apisix.x86_64 0:2.13.2-0.el7 will be updated
---> Package apisix.x86_64 0:2.13.3-0.el7 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package    Arch       Version            Repository                       Size
================================================================================
Updating:
 apisix     x86_64     2.13.3-0.el7       /apisix-2.13.3-0.el7.x86_64     9.4 M

Transaction Summary
================================================================================
Upgrade  1 Package

Total size: 9.4 M
Is this ok [y/d/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Updating   : apisix-2.13.3-0.el7.x86_64                                   1/2
warning: /usr/local/apisix/conf/config-default.yaml created as /usr/local/apisix                  /conf/config-default.yaml.rpmnew
  Cleanup    : apisix-2.13.2-0.el7.x86_64                                   2/2
  Verifying  : apisix-2.13.3-0.el7.x86_64                                   1/2
  Verifying  : apisix-2.13.2-0.el7.x86_64                                   2/2

Updated:
  apisix.x86_64 0:2.13.3-0.el7

Complete!