sh MarkLogic负载测试信息

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh MarkLogic负载测试信息相关的知识,希望对你有一定的参考价值。

for i in 057 058 134 135 ;  do ssh -q app${i} 'echo ""; hostname;grep GET   /data/app-logs/httpd-api-gw/access_log| grep "HTTP/1.1\" 404"| wc -l’;done

for i in 057 058 134 135 ;  do ssh -q app${i} 'echo ""; hostname;grep GET   /data/app-logs/httpd-api-gw/access_log| grep "HTTP/1.1\" 400"| wc -l’;done

for i in 057 058 134 135 ;  do ssh -q app${i} 'echo ""; hostname;grep GET   /data/app-logs/httpd-api-gw/access_log| grep "HTTP/1.1\" 200"| wc -l’;done

for i in 057 058 134 135 ;  do ssh -q app${i} 'echo ""; hostname;grep GET   /data/app-logs/httpd-api-gw/access_log| grep "HTTP/1.1\" 400" ' ;done > /var/tmp/isite2-content-reader.txt

####

cat ./isite2-content-reader-200.txt | cut -f6,7,8 -d " " |cut -f2 -d " "| head 

### FOR A SPECIFIC DATE

# FULL
for i in $(cat /usr/local/serverlists/app.live.pool{1,18,23,25,26}) ;  do ssh -q ${i} 'echo ""; hostname;zcat /data/app-logs/httpd-api-gw/access_log-20170101.gz|grep GET | grep "HTTP/1.1\" 200"';done > /var/tmp/contentapi-200-FULL.txt

# JUST GET
for i in $(cat /usr/local/serverlists/app.live.pool{1,18,23,25,26}) ;  do ssh -q ${i} 'echo ""; hostname;zcat /data/app-logs/httpd-api-gw/access_log-20170101.gz|grep GET | grep "HTTP/1.1\" 200"|cut -f2 -d ""| cut -f6,7,8 -d " " |cut -f2 -d " "';done > /var/tmp/contentapi-200.txt

以上是关于sh MarkLogic负载测试信息的主要内容,如果未能解决你的问题,请参考以下文章

sh MarkLogic chkconfig循环

sh 使用apache ab bench测试进行负载平衡测试

sh Docker负载测试

sh 围攻,http负载测试

MarkLogic LDAP身份验证

MarkLogic 9-在Raw模式下显示部分结果