# gateway-lb **Repository Path**: aleiliuwei/gateway-lb ## Basic Information - **Project Name**: gateway-lb - **Description**: 基于gateway 动态路由 控制并发请求量 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-03-22 - **Last Updated**: 2024-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # gateway-lb #### 介绍 0 清空所有 提供的IP 缓存 curl http://localhost:8001/clearIp 1 向gv 添加ip地址 window cmd curl --location --request POST "http://localhost:8001/putIp" ^ --header "Content-Type: application/json" ^ --header "Accept: */*" ^ --header "Connection: keep-alive" ^ --data-raw "{\"id\":\"gv\",\"ips\":\"43.133.81.217:7860,43.133.81.217:7860,43.133.81.217:7860\"}" 2 向gv发送真实请求 window cmd curl --location --request POST "http://localhost:8001/gv/dbq/genimagevideo" ^ --header "User-Agent: Apifox/1.0.0 (https://www.apifox.cn)" ^ --header "Content-Type: application/json" ^ --header "Accept: */*" ^ --header "Host: localhost:8001" ^ --header "Connection: keep-alive" ^ --data-raw "{ \"input_image\":\"/home/ubuntu/stable-diffusion-webui/outputs/txt2img-images/2023-05-08/00000-697981760.png\", \"driven_audio\":\"/home/ubuntu/stable-diffusion-webui/outputs/SadTalker/1234567.wav\", \"taskid\":\"cp180805227652870269\"}" shell curl -X 'POST' 'http://localhost:8001/putIp' -H 'Content-Type: application/json' -d '{"id":"gv","ips":"43.133.81.217:7860,43.133.81.217:7860,43.133.81.217:7860"}' curl -X 'POST' 'http://localhost:8001/gv/dbq/genimagevideo' -H 'accept: application/json' -H 'Content-Type: application/json' -d '{"input_image":"/home/ubuntu/stable-diffusion-webui/outputs/txt2img-images/2023-05-08/00000-697981760.png","driven_audio":"/home/ubuntu/stable-diffusion-webui/outputs/SadTalker/1234567.wav","taskid":"cp180805227652870269"}' #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 error 404 curl --location --request POST "http://localhost:8001/gv/1dbq/genimagevideo" ^ --header "User-Agent: Apifox/1.0.0 (https://www.apifox.cn)" ^ --header "Content-Type: application/json" ^ --header "Accept: */*" ^ --header "Host: localhost:8001" ^ --header "Connection: keep-alive" ^ --data-raw "{ \"input_image\":\"/home/ubuntu/stable-diffusion-webui/outputs/txt2img-images/2023-05-08/00000-697981760.png\", \"driven_audio\":\"/home/ubuntu/stable-diffusion-webui/outputs/SadTalker/1234567.wav\", \"taskid\":\"cp180805227652870269\"}"