我们在开发中经常遇到对方的接口请求有频率限制,比如当前接口每秒的请求不能大于100,不能大于1000,对于这样的,我们作为请求方,如何做限定?
旧版本中只是指运行在docker/podman中的容器,V5版本后也表示服务或者网站等
| 占位符 | 说明 | 示例 | 备注 |
|---|---|---|---|
| {{App.Address}} | 容器的IP地址 | 172.16.0.11 | string |
| {{App.AppID}} | 容器的12位ID | 4bb827e78cd9 | string |
| {{App.Name}} | 容器名称 | default_4_bfbf693eb2584935aa65b | string |
| {{App.Id}} | 容器在PasteSpider内的ID | 11 | int32类型 |
{{App.Port[x]}} 容器监听的端口(宿主中的端口) 如果有多个则用x表示,比如已知容器映射1080,11443端口,则{{App.Port[1]}}表示11443 表示外部
项目中的服务,比如商城的订单服务,商城的接口服务等
| 占位符 | 说明 | 示例 | 备注 |
|---|---|---|---|
| {{Service.Code}} | 服务代码 | api | string |
| {{Service.OtherArgs}} | 服务中的其他参数 | string | |
| {{Service.Id}} | 服务在PasteSpider中的ID | int | |
| {{Service.DirectPath}} | 服务中配置的直接目录,一般用于静态文件模式 | string | |
| {{Service.NeedMapping}} | 是否端口映射 | True/False | string |
| {{Service.FileModel}} | 服务的文件模式0静态1源码2发布3镜像模式 | 1 | int |
| {{Service.Args1}} | 服务中的其他参数1 | ||
| {{Service.Args2}} | 服务中的其他参数2 | ||
| {{Service.Args3}} | 服务中的其他参数3 | ||
| {{Service.Port[x]}} | 服务监听的端口,一般是80/80,443,用法同{{App.Port[x]}} | 表示内部端口 | - |
| 占位符 | 说明 | 示例 | 备注 |
|---|---|---|---|
| {{Model.Code}} | 环境代码,比如prod,default等,支持自定义 | api | |
| {{Model.Id}} | 这个服务中的这个环境的Id,系统中唯一 | 11 | int |
| 占位符 | 说明 | 示例 | 备注 |
|---|---|---|---|
| {{Linux.RemoteIP}} | 远程IP,这里表示外部IP | 111.111.111.111 | |
| {{Linux.Id}} | 服务器的ID | 11 | |
| {{Linux.OpenPorts}} | 映射端口组 15000-16000 | 需要端口映射的时候需要使用 | |
| {{Linux.BuildHost}} | 所在PasteSpider专用地址 https://spider.abc.com/ | ||
| {{Linux.WorkDir}} | PasteSpider的工作目录 | /spider/ | |
| {{Linux.NginxDir}} | nginx的目录 | /etc/nginx/conf.d/ | |
| {{Linux.Unix}} | 宿主系统 centos/unbntu | centos | |
| {{Linux.Tool}} | 容器类型docker/podman | docker |
| 占位符 | 说明 | 示例 | 备注 |
|---|---|---|---|
| {{Store.Address}} | 仓库地址 | store.abc.com | 域名 |
| {{Store.Id}} | 私有仓库ID | 15 | int |
| {{Store.Protect}} | 访问协议 | https | |
| {{Store.Port}} | 访问端口 | 5010 |
尘埃
尘埃
已经升级了,主要是left join的查询的时候没有过滤,其实这个问题,多租户也是一样的!
b不难吧,就几个地址!