The agent heartbeat is 120 seconds by default and it will disconnect after missing three of them. The broker has a corresponding default timeout of 6 minutes so it will give up at the same time as the agent. But as long as the agent heartbeat is less than the load balancer’s timeout, it should work fine, regardless of how the broker is configured.