newlisp web site benchmark

简介

最近遇到一个问题,很简单的nginx > newlisp web , 其中后端就是一个简单的Email报警CGI, 但是最近,或者是一直存在一个问题,就是 经常会无法发送短信, 登录服务器直接查看py脚本也没有任何问题,那么怎么回事儿呢?
因为最近经常进行压测,所以怀疑是并发的问题.

这里写图片描述

QPS = 50, 太低了哦.

于是,经过改装的nginx proxy pass设置如下:

    location ^~ /backend/ {
    proxy_read_timeout 300;
     proxy_pass http://localhost:8089/;
         proxy_set_header Host $host;
         proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    access_log /var/log/nginx/ews.a.log;
    error_log /var/log/nginx/ews.e.log;
    }    


    location  ^~ /backend/mailer/ {
    proxy_read_timeout 300;
    proxy_pass http://localhost:8079/mailer/;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    access_log /var/log/nginx/ews.mail.log;
    error_log /var/log/nginx/ews.mail.log;
    }    

curl "http://10.1.1.1/backend/mailer/send?receivers=jacky@126.com&subject=test&content=123"
curl "http://10.1.1.1:8079/mailer/send?receivers=jacky@126.com&subject=test&content=123"
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值