选型
- spotlight 关注
- apifox 关注
- yapi
- swagger-faker
- easydoc
- apizza
- torna
torna安装
1 | docker pull tanghc2020/torna:1.15.7 |
1 | docker pull tanghc2020/torna:1.15.7 |
1 | # 安装 |
1 | # 准备数据 |
1 | [ 5s ] thds: 4 tps: 426.24 qps: 8533.27 (r/w/o: 5975.01/1704.97/853.29) lat (ms,95%): 10.09 err/s: 0.00 reconn/s: 0.00 |
1 | [ 5s ] thds: 4 tps: 270.87 qps: 5427.64 (r/w/o: 3801.41/1083.69/542.54) lat (ms,95%): 15.83 err/s: 0.00 reconn/s: 0.00 |
mysql://10.193.0.8:4000 root/yourpass
1 | # 准备 |
1 | [ 5s ] thds: 20 tps: 469.21 qps: 9454.95 (r/w/o: 6623.50/1889.03/942.42) lat (ms,95%): 130.13 err/s: 0.00 reconn/s: 0.00 |
1 | sysbench cpu --threads=40 --events=10000 --cpu-max-prime=20000 run |
1 | sysbench fileio help |
1 | File operations: |
https://hub.docker.com/r/severalnines/sysbench/
1 | # 拉镜像 |
1 | File operations: |
1 | # 注意添加--network host |
http://10.193.10.201:888
admin/yourpass
vi /etc/hosts
1 | 10.193.10.15 artifactory.sdecloud.com |
vi /etc/docker/daemon.json
1 | { |
1 |
|
1 | # master上查看token |
10.193.10.20
compose脚本路径: /root/zhongyuan/stacks
1 | export SERVICES_pay_SERVICE_IMAGE=artifactory.sdecloud.com:8443/docker-local/pay-service-impl:RELEASE-1.15 |
1 | docker service ls |
/opt/v2ray
/dubhe/nginx/conf
配置服务端config.json,vi config.json
:
1 | { |
启动v2ray:
1 | ./v2ray --config config.json |
配置Nginx的default.conf:
1 | location /ray { |
重启Nginx:
1 | docker restart nginx |
1 | docker run --name ecweifang --device /dev/net/tun --cap-add NET_ADMIN -itd -p 127.0.0.1:7011:1080 -e EC_VER=7.6.3 -e CLI_OPTS="-d https://xx.xx.xx.xx -u username -p password" hagb/docker-easyconnect:cli |
占用端口7011
vi weifang.json
1 | { |
本机客户端启动:
1 | ./v2ray --config weifang.json |
占用端口7012
Connector->maxThreads,在64核下设置成200最优,设300或更高反而增加CPU切换时间大幅降低TPS。查资料默认值就是200,此参数不用设置。
Connector->minSpareThreads,设成200或直接用默认值25,没有区别
Connector->maxConnections,
1 | <?xml version="1.0" encoding="UTF-8"?> |
创建6个目录,将/etc/redis.conf拷贝至其中
1 | # 端口号,每个目录都不同 |
1 | # 启动6个redis节点 |
https://bluexiii-files.oss-cn-beijing.aliyuncs.com/redis.conf