您的位置:首页 > 其它

neutron server API slows now and then

2014-04-28 14:48 471 查看
for x in {1..25}; do curl -i 'http://l7.0.lg.ustack.in:9696/v2.0/networks.json' -X GET -H "X-Auth-Token: 347e2a0caca040e287b6220663def507" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" -w "%{time_total}
" -o test.txt -s; done

If the time is varying a lot, we should pay attention to the neutron server's cpu consumption. If so, configure the api_workers configuration item.

another way to test the API is to

ab -c 2 -n 100 -H "X-Auth-Token: 347e2a0caca040e287b6220663def507" -H "Content-Type: application/json" -H "Accept: application/json" -H "User-Agent: python-neutronclient" http://l7.0.lg.ustack.in:9696/v2.0/networks.json
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐