浏览 958
nginx controller 管理nginx plus和开源nginx, 用ab压测工具压测,发现有的监控指标能看到,有的看不到,想请教一下,是哪里的问题? 如下图所示:
按点赞数排序
按时间排序
这个问题已经的到解决,需要在nginx controller的service 中配置environment, gateway, api, certs等相关参数,即可得到解决
0
回答于2020-12-26 22:17
nginx controller可以管理开源的nginx吗?
0
回答于2020-12-15 20:55
当出现下面这行命令行输出时,Nginx相当于启动失败,新配置文件未生效:
root@nginx-deployment-6686f596f-xhjt8:/etc/nginx/conf.d# nginx -t
2020/09/17 06:00:56 [emerg] 115#115: host not found in upstream "nginx2-deployment" in /etc/nginx/conf.d/default.conf:2
nginx: [emerg] host not found in upstream "nginx2-deployment" in /etc/nginx/conf.d/default.conf:2
nginx: configuration file /etc/nginx/nginx.conf test failed
如果新的配置文件生效,当Nginx连接nginx2-deployment时,在接收到RST报文、发生超时等,会重新选择到127.0.0.1:80这台server。
用body_filter_by_lua指令实现成本较小,参见https://github.com/openresty/lua-nginx-module#body_filter_by_lua,注意这会降低Nginx的转发性能,如果能在上游应用服务器上做更好