We have a setup as follow on Azure
The problem we have been encountering is that AG is reporting 502 errors on IP1 randomly. In a day it could get about 20 502 errors on some random files. However, these files on IP1's IIS log also shows success in returning data.
IP2 doesn't have this issue at all.
We've tried to cross check the date/time from AG hitting 502 and comparing to IP1's IIS log to find the corresponding request but could not find any. Assumption here is that if the request reached IP1 it would have created an entry in IIS log.
Because the 502 errors are random, and reported only by AG we are not able to lock down the root cause.
Anyone have encountered such issue before or know how to troubleshoot such issue?