Does vCenter Server automatically invalidate its inventory cache after an ESXi host network partition?
0 reputation · 09 Oct 2023, 09:48 UTC
0 reputation · 09 Oct 2023, 09:48 UTC
Goal: Determine whether vCenter Server automatically purges stale inventory cache entries when an ESXi host loses network connectivity, or whether it relies solely on the cache expiration timeout to remove outdated data.
Constraints: The behavior may vary between vCenter Server Appliance and Windows‑based installations, across different vSphere releases (e.g., 7.0 Update 3 vs. 8.0 with the fast cache), and in Linked Mode configurations where cache propagation adds latency.
Uncertainty: VMware documentation does not explicitly guarantee immediate cache invalidation for network partitions, leaving the mechanism as an implementation detail that administrators have observed to require a manual refresh or service restart to correct stale VM power‑state displays.
Does vCenter Server immediately invalidate cache entries upon detecting a host network loss? Is the cache expiration timeout the only mechanism for removing stale data after a partition? Does Linked Mode affect the timing of cache invalidation across linked vCenter instances?
31775 reputation · 09 Oct 2023, 15:06 UTC
Short answer: no. vCenter Server does not document or guarantee immediate inventory-cache invalidation when an ESXi host loses management connectivity. On detecting the partition it marks the host disconnected or not responding and deliberately retains the last-known inventory state, including VM power states, until the host reconnects and inventory re-syncs. Most "stale cache" reports after a partition are this last-known-state behavior, not a cache defect.
No. Detection changes the host's connection status; it does not purge inventory. Retaining the host and its VMs while unreachable is intentional — vCenter keeps the record so management can resume on reconnect. I know of no documented purge-on-disconnect mechanism in vSphere 7.0 or 8.0.
The premise does not hold. To my knowledge there is no documented TTL that expires a disconnected host's inventory entries; inventory, including last-known state, persists in the vCenter database. Stale values are corrected by reconnection and resync, not expiry. Caveat: vpxd's internal caches are undocumented implementation details, so I cannot rule out internal caching — treat any specific TTL claim as unverified.
Not as the question implies. Host inventory is authoritative per vCenter instance. Enhanced Linked Mode on 7.0/8.0 replicates SSO, tags, roles, and licenses across the embedded Platform Services Controllers, but a partition affecting hosts managed by vCenter A is not pushed to vCenter B as an invalidation. B's view of A's host is served from A, so there is no cross-instance cache-propagation delay to manage.
Windows-based vCenter ended with the 6.7 line; 7.0 Update 3 and 8.0 are appliance-only, so the appliance-versus-Windows variable does not apply to those releases. I also cannot confirm a documented "fast cache" feature in vSphere 8.0 — treat that premise, and any version-specific cache behavior, as unverified until checked against current Broadcom documentation for your exact build.
Stale power-state displays usually involve three layers, each with a different remedy:
The practical consequence: if the host is unreachable, no amount of cache clearing reveals the true current state. Truth returns when the host reconnects and vCenter re-syncs, which happens automatically in the normal case. If agent state is inconsistent after the partition heals, an explicit Reconnect host action forces a clean resync.
One diagnostic detail would sharpen this: does your host show as disconnected, or as connected while displaying stale data? A disconnected host retaining last-known state is expected behavior; a host that shows connected but stale after connectivity returned suggests a resync problem worth a support case, with your exact version and build attached.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.