source=realtime take significantly longer to respond (e.g., >20 seconds).source=realtime parameter (or using source=cached) return status correctly (e.g., "UP" or "Success").The issue is caused by a timeout during the real-time status collection process. When the source=realtime parameter is used, the NSX Manager must actively poll the Edge transport nodes for the current state of all Load Balancer components.
For XL Load Balancer services or those with a high volume of virtual servers, the processing time to aggregate this data can exceed the internal communication timeout (often 20 seconds). If the NSX Manager does not receive a response from the Edge within this window, it records the status as "Unknown". This can be exacerbated by external automation or scripts (e.g., Python aiohttp clients) that frequently poll the API with the real-time flag.
To resolve this issue, adjust the method of status retrieval to reduce the load on the management plane and Edge transport nodes:
source=cached instead of source=realtime.GET /policy/api/v1/infra/lb-services/<lb-service-id>/detailed-status?source=cached