Azure上的单个LEMP VM会出现间歇性502错误 - 如何监控? [英] Single LEMP VM on Azure getting intermittent 502 errors - how to monitor?

查看:44
本文介绍了Azure上的单个LEMP VM会出现间歇性502错误 - 如何监控?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们在Azure中设置了一个运行WordPress站点的Ubuntu VM最近它丢失了502个Bad Gateway错误 - 这些错误每周发生5-10次,只持续1-2分钟,然后一切都很好再次。理解可用性集
(或缺少它)可能是一个问题,但在采取这一步之前,我想弄清楚究竟发生了什么。


这些错误过去两周左右一直保持一致,但我们自1月以来一直在Azure上,而且它们最近才出现。


我经历过一堆监视器Azure中的警报和警报设置,但我很困惑如何简单地监视VM的网络正常运行时间,看看我是否可以弄清楚发生了什么。任何人都可以指出我正确的方向吗?


解决方案

您可以使用网络观察器来监控VM的流量。这可能是最好的起点


https:/ /azure.microsoft.com/en-us/services/network-watcher/


除此之外,检查您的wordpress流量,看看在任何时候您是否看到任何流量跳跃特定时间。您可能会看到大量的流量,并且VM正在努力跟上,在这种情况下,您可能会尝试增加VM
的大小,以便它拥有更多资源。 


We have a single Ubuntu VM set up in Azure running a WordPress site Recently it's been throwing 502 Bad Gateway errors - these happen maybe 5-10 times per week and only last 1-2 minutes, then everything is fine again. Understood that an Availability Set (or the lack thereof) may be a problem, but before taking that step I'd like to figure out what's really going on.

These errors have been consistent for the past 2 weeks or so, but we've been on Azure since January, and they've only recently cropped up.

I've been through a bunch of monitor and alert settings in Azure, but am confused on how to simply monitor network uptime for the VM to see if I can figure out what's going on. Can anyone point me in the right direction?

解决方案

You can use Network Watcher to monitor the traffic to the VM. This would probably be the best place to start

https://azure.microsoft.com/en-us/services/network-watcher/

Besides that, check your wordpress traffic to see if you see any jumps in traffic during any particular times. It is possible you are seeing a good amount of traffic and the VM is struggling to keep up in which case you might try upping the size of the VM so it has more resources. 


这篇关于Azure上的单个LEMP VM会出现间歇性502错误 - 如何监控?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆