If I want to load balance / provide HA to two Tomcat servers using nginx then this is obviously possible top do via a 3rd server acting as a go-between (fig 1). But can I do away with this 3rd server and have nginx deployed on the same two servers as Tomcat and remove my single point of failure (as per fig 2)?
Many thanks.