脚本:
#!/bin/bash
rm -rf *.log
for i in {1..5}
do
ab -n 1000000 -c 800 -k http://172.20.3.10/ > $i.log &
done
wait
cat *log | grep "per second" | awk -F'[^0-9]+' '{s+=$2} END {print s}'
几个改进点:
- 使用keepalive
- 单个ab是有性能上限的[......]
脚本:
#!/bin/bash
rm -rf *.log
for i in {1..5}
do
ab -n 1000000 -c 800 -k http://172.20.3.10/ > $i.log &
done
wait
cat *log | grep "per second" | awk -F'[^0-9]+' '{s+=$2} END {print s}'
几个改进点:
启动minikube时:
minikube start --image-mirror-country='cn' --image-repository='registry.cn-hangzhou.aliyuncs.com/google_containers'
Docker制作镜像时:
docker build --build-arg http_proxy=http://your_proxy:your_proxy_port .
Docker推送镜像时:[......]
新版已经支持设置代理了,设置后,在内部dcker会使用这个来拉取镜像,如下:
minikube start --docker-env http_proxy=http://192.168.49.1:8123 \
--docker-env https_proxy=http://192.168.49.1:8123 \
--docker-env no_proxy=localhost,127.0.0.1,10.96.0.0/12,192.1[......]
https://jenkins-zh.cn/wechat/articles/2020/03/2020-03-10-create-a-ci-cd-pipeline-with-kubernetes-and-jenkins/[......]