当前位置:网站首页>ARM64 上的性能怪兽:API 网关 Apache APISIX 在 AWS Graviton3 上的安装和性能测试
ARM64 上的性能怪兽:API 网关 Apache APISIX 在 AWS Graviton3 上的安装和性能测试
2022-06-09 15:01:00 【InfoQ】
背景

准备:安装部署

sudo apt-get update && sudo apt-get install docker.io
- 启动 etcd
sudo docker run -d \
--name etcd -p 2379:2379 -e ETCD_UNSUPPORTED_ARCH=arm64 \
-e ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379 \
-e ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379 \
rancher/coreos-etcd:v3.4.16-arm64
- 启动 APISIX
sudo docker run --net=host -d apache/apisix:2.14.1-alpine
- 注册路由
curl "http://127.0.0.1:9080/apisix/admin/routes/1" \
-H "X-API-KEY: edd1c9f034335f136f87ad84b625c8f1" -X PUT -d '
{
"uri": "/anything/*",
"upstream": {
"type": "roundrobin",
"nodes": {
"httpbin.org:80": 1
}
}
}'
- 访问测试
curl -i http://127.0.0.1:9080/anything/das
HTTP/1.1 200 OK
.....
AWS Graviton2 和 AWS Graviton3 的性能对比
场景一:单个上游
# apisix: 1 worker + 1 upstream + no plugin
# 注册路由
curl http://127.0.0.1:9080/apisix/admin/routes/1 \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/hello",
"plugins": {
},
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:1980":1
}
}
}'
场景二:单上游+多插件
limit-countprometheus# apisix: 1 worker + 1 upstream + 2 plugins (limit-count + prometheus)
# 注册路由
curl http://127.0.0.1:9080/apisix/admin/routes/1 \
-H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
{
"uri": "/hello",
"plugins": {
"limit-count": {
"count": 2000000000000,
"time_window": 60,
"rejected_code": 503,
"key": "remote_addr"
},
"prometheus": {}
},
"upstream": {
"type": "roundrobin",
"nodes": {
"127.0.0.1:1980":1
}
}
}'
数据对比
- QPS 对比

- Latency 对比


总结
边栏推荐
- Leetcode 2001. 可互换矩形的组数(暴力枚举失败了)
- 【Typecho博客小白搭建教程】你离拥有自己的blog只差我
- [云原生]Kubernetes可视化界面WEBUI Kubernetes Dashboard
- Details on how Tencent can reduce the live broadcast delay by more than 90%
- 华为十大发明公布:高效加法网络、多目标博弈智能驾驶获奖
- Why do SQL statements use indexes but still slow queries?
- JS implements JSON array merging and de duplication
- 详解Seaborn,看这一篇就够了
- 文字广播图的错误代码
- 因停止俄罗斯业务:IBM Q1 损失 20 亿、思科 13 亿、Adobe 5 亿、惠普 67 亿、UiPath 1 亿
猜你喜欢

Hongmeng transplantation i.mx6ull (V) overview of transplantation

【实战】基于Chromedriver的应用及爬虫相关

insert into select/update

【MUI+Flask+MongoDB+HBuilderX】APP开发之答题积分逻辑详解

ECCV 2020 | star: pedestrian trajectory prediction model based on transformer (II)

Details on how Tencent can reduce the live broadcast delay by more than 90%

【五、反向代理及其相关配置】

工资管理系统该如何使用?

华为哈勃将再添IPO,美芯晟蛰伏十余年后冲刺科创板

How greatsql is a popular open source database in China
随机推荐
mysql学习
鸿蒙移植i.mx6ull(十) 系统时钟
How insecure is NFT from copyright to assets?
CICC digital intelligence China II: five questions and five answers to database business market
860. 柠檬水找零
Fcpx plug-in: motion blur FX by Ma
分布式限流之基于Sentinel实现的限流漫谈(一)-概述
【MUI+Flask+MongoDB+HBuilderX】APP开发之答题积分逻辑详解
期货网上开户安全吗?期货妙手机开户吗?
鸿蒙移植i.mx6ull (七) Liteos-a的编译系统
薪酬不变,每周只上四天班,英国试行全球最大规模“四天工作制”
Error 1062 in database, error reporting
【云小课】应用平台第43课 云小课带您快速入门多云高可用服务
一年进账34.46亿,又一个福建老乡要IPO了
名片微信小程序错误版本2
各厂商的数据湖解决方案
Halodoc使用 Apache Hudi 构建 Lakehouse的关键经验
Design of cache address mapping and transformation and associated directory table in cache memory
List used by icomponent of unity dots
Award winning research