当前位置:网站首页>Performance test of API gateway APIs IX in Google cloud T2a and T2D
Performance test of API gateway APIs IX in Google cloud T2a and T2D
2022-07-28 10:11:00 【InfoQ】
background

Preparation

sudo apt-get update && sudo apt-get install docker.io
Deploy Apache APISIX
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
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
.....
Google Cloud T2D vs Google Cloud T2A
sudo docker run -d --name etcd \
-p 2379:2379 \
-e ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379 \
-e ALLOW_NONE_AUTHENTICATION=yes \
-e ETCD_ADVERTISE_CLIENT_URLS=http://0.0.0.0:2379 \
bitnami/etcd:3.4.16
Scene one : Single upstream
# apisix: 1 worker + 1 upstream + no plugin
# Registered routing
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
}
}
}'
scene 2: Single upstream + Two plug-ins
limit-countprometheus# apisix: 1 worker + 1 upstream + 2 plugins (limit-count + prometheus)
# Registered routing
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
}
}
}'
Data comparison
- QPS Compare

- Request delay comparison

summary
边栏推荐
- CGAL编译错误
- Plato farm - a farm meta universe game with Plato as the goal
- [ESP32][esp-idf] esp32s3快速搭建LVGLV7.9
- 2021.07.13 我们是这样崩的
- arthas使用教程
- What are the highlights of B2B2C system? How to help jewelry enterprises build an omni channel multi merchant mall management system
- Arthas tutorial
- Consul
- Xiao Hei stands up again and looks at leetcode:653. Sum of two IV - enter BST
- LIBCMTD.lib
猜你喜欢
![[jzof] 14 cut rope](/img/36/6f58b443a549ad245c1c4cfe5d13af.png)
[jzof] 14 cut rope

为报复公司解雇,我更改了项目的所有代码注释!

21. 合并两个有序链表

并查集

ES(8.1)认证题目

每天在岗不足8小时被辞?腾讯前员工追讨1300万加班费等,法院终审获赔9万

Digital transformation scheme of real estate: all-round digital intelligence system operation, helping real estate enterprises improve the effectiveness of management and control

技术人 | 研发效能的思考总结
![[esp32][esp idf] esp32s3 quickly build lvglv7.9](/img/39/8efef047d0a9223b97819a54b5edf8.png)
[esp32][esp idf] esp32s3 quickly build lvglv7.9

Seektiger eco pass STI new progress, log in to ZB on April 14
随机推荐
[learning notes] border and period
2021.07.13 我们是这样崩的
B2B e-commerce website scheme for building materials industry: enable the transformation and upgrading of building materials enterprises to achieve cost reduction and efficiency improvement
Data can't lie. Plato farm is the leader of the meta universe
Introduction to consoleappender
巧用ngx_lua做流量分组
Introduction to evaluatorfilter
技术人 | 研发效能的思考总结
二维前缀和
Read Plato farm's eplato and the reason for its high premium
头文件库文件
【云驻共创】华为云:MetaStudio数字内容生产线,让虚拟世界与现实世界无缝融合
In retaliation for the dismissal of the company, I changed all code comments of the project!
PHP Basics
Judge whether the string is palindrome
Redis interview questions must be known and learned
Guangzhou metro line 14 xinshixu station is under construction, and residents in Baiyun District are about to start a double line transfer mode!
[ESP32][esp-idf] AP+STA实现无线桥接 中转wifi信号
【JZOF】14剪绳子
_HUGE and __IMP__HUGE in “math.h“