Skip to content

Commit

Permalink
feat: 调整demo数据
Browse files Browse the repository at this point in the history
feat: 调整文档
  • Loading branch information
iamtsm committed Jul 1, 2022
1 parent 89b7b10 commit 8cc3231
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 77 deletions.
31 changes: 1 addition & 30 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,10 @@
qq交流群 : 624214498,欢迎有兴趣的童鞋提交PR, 持续更新中 ....


## 性能压测

### 版本 : openresty-1.19.3.1

### 机器 : 腾讯云2核4g

![图片](https://qnproxy.iamtsm.cn/16559798756003.png "图片")


### 正常压测结果,执行压测命令 : `ab -n 10000 -c 50 http://127.0.0.1/` , 单个请求耗时约3.7ms

![图片](https://qnproxy.iamtsm.cn/16559785692014.png "图片")


### 开启tl-ops-manage网关后 【健康检查,路由统计,熔断限流,负载均衡】,执行压测命令 : `ab -n 10000 -c 50 http://127.0.0.1/` ,单个请求耗时约4.6ms

![图片](https://qnproxy.iamtsm.cn/16559817202461.png "图片")



# 说明文档

- [x] [tl-ops-manage详细文档-推荐](https://book.iamtsm.cn)

- [x] [路由模块简要文档](doc/tl-ops-balance.md)

- [x] [健康检查模块简要文档](doc/tl-ops-health.md)

- [x] [熔断限流模块简要文档](doc/tl-ops-limit.md)

- [x] [数据模块简要文档](doc/tl-ops-store.md)


[tl-ops-manage详细文档](https://book.iamtsm.cn)

# 特性

Expand Down
4 changes: 2 additions & 2 deletions constant/tl_ops_constant_balance_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ local tl_ops_constant_balance_api = {
},
demo = {
point = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
url = "/*", -- 当前url匹配规则
service = "tlops-demo", -- 当前url路由到的service
node = 0, -- 当前url路由到的service下的node的索引
host = "tlops1.com", -- 当前url处理的域名范围
},
random = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
url = "/*", -- 当前url匹配规则
service = "tlops-demo", -- 当前url路由到的service
host = "tlops1.com", -- 当前url处理的域名范围
Expand Down
4 changes: 2 additions & 2 deletions constant/tl_ops_constant_balance_cookie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local tl_ops_constant_balance_cookie = {
},
demo = {
point = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
key = "_tl_session_id", -- 当前cookie匹配名称
value = { -- 当前cookie名称对应值列表
"ok","ok1","ok2"
Expand All @@ -24,7 +24,7 @@ local tl_ops_constant_balance_cookie = {
host = "tlops1.com", -- 当前cookie处理的域名范围
},
random = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
key = "_tl_session_id", -- 当前cookie匹配名称
value = { -- 当前cookie名称对应值列表
"ok","ok1","ok2"
Expand Down
6 changes: 2 additions & 4 deletions constant/tl_ops_constant_balance_header.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,8 @@ local tl_ops_constant_balance_header = {
},
demo = {
point = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
key = "content-type", -- 当前请求头匹配名称
value = "text/fragment+html", -- 当前请求头名称对应值
value = { -- 当前请求头名称对应值列表
"text/fragment+html","text/plain"
},
Expand All @@ -25,9 +24,8 @@ local tl_ops_constant_balance_header = {
host = "tlops1.com", -- 当前请求头处理的域名范围
},
random = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
key = "content-type", -- 当前请求头匹配名称
value = "text/fragment+html", -- 当前请求头名称对应值
value = { -- 当前请求头名称对应值列表
"text/fragment+html","text/plain"
},
Expand Down
8 changes: 4 additions & 4 deletions constant/tl_ops_constant_balance_param.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local tl_ops_constant_balance_param = {
},
demo = {
point = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
key = "_tl_id", -- 当前请求参数匹配名称
value = { -- 当前请求参数名称对应值列表
"text/fragment+html","text/plain"
Expand All @@ -24,7 +24,7 @@ local tl_ops_constant_balance_param = {
host = "tlops1.com", -- 当前请求参数处理的域名范围
},
random = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
key = "_tl_id", -- 当前请求参数匹配名称
value = { -- 当前请求参数名称对应值列表
"text/fragment+html","text/plain"
Expand All @@ -33,8 +33,8 @@ local tl_ops_constant_balance_param = {
host = "tlops1.com", -- 当前请求参数处理的域名范围
}
},
rule = { -- cookie rule 策略
point = "point", -- cookie路由可指定到具体节点
rule = { -- rule 策略
point = "point", -- 路由可指定到具体节点
random = "random" -- 随机路由可指定到具体服务
},
}
Expand Down
2 changes: 1 addition & 1 deletion constant/tl_ops_constant_service.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ local tl_ops_constant_service = {

},
demo = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
name = "tlops-demo-node", -- 当前节点name
service = "service", -- 当前节点所属service
protocol = "http://", -- 当前节点协议头
Expand Down
2 changes: 1 addition & 1 deletion constant/tl_ops_constant_waf_api.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local tl_ops_constant_waf_api = {
open = true,
scope = scope.global,
demo = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
host = "tlops.com", -- 当前生效的域名
value = ".git", -- 当前匹配的规则
service = "tlops-demo", -- 当前生效的service
Expand Down
2 changes: 1 addition & 1 deletion constant/tl_ops_constant_waf_cc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ local tl_ops_constant_waf_cc = {
open = true,
scope = scope.global,
demo = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
host = "tlops.com", -- 当前生效的域名
time = 60, -- cc记录过期时间
count = 100, -- time内触发次数
Expand Down
2 changes: 1 addition & 1 deletion constant/tl_ops_constant_waf_cookie.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local tl_ops_constant_waf_cookie = {
open = true,
scope = scope.global,
demo = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
host = "tlops.com", -- 当前生效的域名
value = "select.", -- 当前匹配的正则
service = "tlops-demo", -- 当前生效的service
Expand Down
2 changes: 1 addition & 1 deletion constant/tl_ops_constant_waf_header.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local tl_ops_constant_waf_header = {
open = true,
scope = scope.global,
demo = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
host = "tlops.com", -- 当前生效的域名
keys = { -- 拦截的请求头名称列表
"User-Agent","Accept"
Expand Down
2 changes: 1 addition & 1 deletion constant/tl_ops_constant_waf_ip.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local tl_ops_constant_waf_ip = {
open = true,
scope = scope.global,
demo = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
host = "tlops.com", -- 当前生效的域名
value = "127.0.0.1", -- 当前匹配的规则
service = "tlops-demo", -- 当前生效的service
Expand Down
2 changes: 1 addition & 1 deletion constant/tl_ops_constant_waf_param.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ local tl_ops_constant_waf_param = {
open = true,
scope = scope.global,
demo = {
id = snowflake.generate_id( 100 ), -- default snow id
id = 1,
host = "tlops.com", -- 当前生效的域名
value = "java.lang", -- 当前匹配的规则
service = "tlops-demo", -- 当前生效的service
Expand Down
29 changes: 1 addition & 28 deletions doc/README_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,10 @@ QQ : 624214498, welcome to submit PR, we will continue to update ....

<a href="https://github.com/iamtsm/tl-ops-manage/blob/main/README.md"> 中文翻译 </a>

# Performance stress test

### Version : openresty-1.19.3.1

### Machine: Tencent Cloud 2 core 4g

![Picture](https://qnproxy.iamtsm.cn/16559798756003.png "Picture")


### For normal pressure test results, execute the pressure test command: `ab -n 10000 -c 50 http://127.0.0.1/` , a single request takes about 3.7ms

![Picture](https://qnproxy.iamtsm.cn/16559785692014.png "Picture")


### After enabling the tl-ops-manage gateway [health check, routing statistics, fuse current limiting, load balancing], execute the stress test command: `ab -n 10000 -c 50 http://127.0.0.1/` , single The request takes about 4.6ms

![Picture](https://qnproxy.iamtsm.cn/16559817202461.png "Picture")



# Documentation

- [x] [tl-ops-manage detailed documentation](https://book.iamtsm.cn)

- [x] [Brief documentation of routing module](tl-ops-balance.md)

- [x] [Brief Documentation of Health Check Module](tl-ops-health.md)

- [x] [Brief Documentation of Fusing Current Limiting Module](tl-ops-limit.md)

- [x] [Data Module Brief Documentation](tl-ops-store.md)
[tl-ops-manage detailed documentation](https://book.iamtsm.cn)


# Features
Expand Down

0 comments on commit 8cc3231

Please sign in to comment.