常见压力测试工具有: ab, wrk,locust等。此外,还有 GoReplay 和 TcpCopy 等,可以拷贝线上服务器的真实流量并转发到测试服务器上去,用真实流量来测试,如此得到的数据更可信。不过它们的用法更复杂。 ab ab(Apache
简介 在osgi中服务的使用有多种方式,如使用传统的注册式服务,就是我们之前中example不断使用的使用方式,还是osgi中的声明式服务, 还有著名的ipojo等等,但在这里值得花一番笔墨来讲解的应该是
安装 git安装略过 安装git-review [root@master ~]# yum install git-review Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile epel: mirrors.aliyun.com Resolving Dependencies –> Running transaction check —> Package git-review.noarch 0:1.24-5.el7 will be installed –> Finished Dependency Resolution Dependencies Resolved =============================================================================================================================================================================================== Package Arch Version Repository Size =============================================================================================================================================================================================== Installing: git-review noarch 1.24-5.el7 epel 57 k Transaction Summary =============================================================================================================================================================================================== Install 1 Package 安装gitweb 1)# yum install gitweb 2)修改git.c
WSGI(Web Server Gateway Interface) WSGI接口定义非常简单,它只要求Web开发者实现一个函数,就可以响应HTTP请求。我们来看一个最简单的Web版本的“Hello, web!”: def application(environ, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) return [b'<h1>Hello, web!</h1>'] 上面的application(
2023-04-27
654 words
No tag
如何添加OVS和PORT; ovs-vsctl add-br br0 ovs-vsctl del-br br0 ovs-vsctl list-br ovs-vsctl add-port br0 eth0 ovs-vsctl set port eth0 tag=1//vlan id ovs-vsctl del-port br0 eth0 ovs-vsctl list-ports br0 ovs-vsctl show //显示所有端口的vlan属性 如何配置QOS,比如队列和限速; sudo ovs-vsctl -- set Port eth2 qos=@newqos -- --id=@newqos create QoS type=linux-htb other-config:max-rate=1000000000 queues=0=@q0,1=@q1 -- --id=@q0 create Queue dscp =1 other-config:min-rate=100000000 other-config:max-rate=100000000 -- --id=@q1 create Queue other-config:min-rate=500000000 ovs-vsctl clear
orgmode有各种各样的好处,主要是文本折叠和缩进的功能实在太好用,gtd也功 能很强大。无论是用于hugo编辑工具还是作为笔记的主力,都是很好的实践。 但有一个问题,是emacs和org的弱项-图片处
send a message like this fetch('https://abb-king.cloud.cn:8080/service/cart/add', { method: 'POST', body: JSON.stringify({"useUnitId":"000000000000000200,424242020198576128","setCount":"1","billType":"dailySettlement","orderType":"new","durationUnit":"D","productTypeCode":"IPv6_UL","consoleCustomization":{},"productList":[{"region":"region-kunming-hlw","availableZone":"","productLineCode":"EIP","productTypeCode":"IPv6_UL","productLineName":"ip","instanceCount":"1","instanceId":"ada3bafe-590b-45d7-a18f","instanceName":"","itemList":[{"code":"instance","type":"billingItem","unit":"COUNT","value":"","packageList":null}]}],"recordOrder":1}), headers: { 'Content-type': 'application/json; charset=UTF-8','Authorization': 'bearer eyOiJSUzI1NiIs' } }) .then(res => res.json()) .then(console.log) ipv6 curl curl -6 -g --interface eth0 "http://[e80::f85b:4256:ee76:24a4]:8080" -vvv put curl -X PUT -H 'Content-Type: application/json' -H 'region: ly-dx-zx' -H 'Authorization:bearer token' -d '{"eip": {"serverId":"48e95b16--9fff-9cda5f443b25","portId":"c97a826a--ceb373aad4d5","fixedIp":"172.16.1.17","type":"11","availabilityZone":"ab.cd.ed"}}' http://100.105.50.1:8080/ecp/v1.1/esp/-4b95-954e-371ea947a0f0/action/bind
2023-04-20
265 words
No tag
qemu-nbd NBD指的是Network Block Device,正如其名字的意思,NBD让用户可以通过网络访问到某个块设备,或者设备镜像。 NFS的方式只能管到文件系统层,而NBD的方式则不仅可以管到文件系统层,还可以管到
2022-06-15
1513 words
No tag
简介 magit 是emacs下对git 的封装,让你基本在emacs中即可完成对git仓库的管理,需要单独安装 帮助 可以在magit status 中 ? 键可提示magit命令绑定在哪些按键上 magit-status因为常用,可以
2022-02-11
112 words
No tag
过滤规则 连接数限制 tcp 在转发forward链的时候,TCP连接数量大于80 就丢弃, 针对所有IP $ iptables -I FORWARD -p tcp -m connlimit --connlimit-above 80 -j DROP udp UDP无法控制连接数, 只能控制每秒多少个UDP包, 一般设置为每秒3~5个比较合理.