Understanding NetScaler Console Agent Instance Redistribution After Failback

book

Article ID: CTX697131

calendar_today

Updated On:

Description

Symptoms

  • An on-premises agent becomes unavailable (offline/down), and its managed NetScaler instances fail over to another active agent within the same site/cluster.

  • When the original agent is restored and reports a healthy (UP) status, managed instances remain attached to the surviving agent.

  • Automatic rebalancing does not occur even after the documented 30-minute interval has elapsed.

Cause

This behavior is by design to optimize stability and prevent unnecessary management churn.

  1. Dynamic Assignment without Fixed Affinity:
    NetScaler instances managed by NetScaler Console do not maintain a permanent or sticky affinity to a specific agent. When an agent experiences downtime, instances are dynamically reassigned to active agents to maintain continuous telemetry and administration.

  2. Load Threshold Buffer:
    NetScaler Console runs a background evaluation process approximately every 30 minutes to check whether agents in a deployment are heavily unbalanced. To prevent constant agent switching for small deployments, automatic redistribution only triggers when the difference in managed instance counts between the most-loaded agent and the least-loaded agent exceeds a preset threshold buffer (more than 5 instances).

    • Example: In a setup where an agent manages 4 instances and a recovered agent has 0 instances, the difference (4 instances) remains within the threshold buffer. Because the active agent is operating well within normal capacity limits, NetScaler Console treats the load distribution as safe and stable, avoiding unnecessary agent migrations.

Resolution

If an even distribution across agents is desired following maintenance or agent recovery in smaller deployments, instances can be reallocated manually through the NetScaler Console management interface:

How to Manually Reassign NetScaler Instances to an Agent

  1. Log in to your NetScaler Console administrative interface.

  2. Navigate to Infrastructure > Instances > NetScaler (or Infrastructure > Instances > Agents).

  3. Select the checkbox next to the NetScaler instance(s) you wish to reassign.

  4. From the Select Action menu at the top, choose Attach Agent (or edit the instance settings).

  5. In the dialog box, select the recovered/target agent and click OK or Save.

Note: Manually reassigning an instance updates management communication paths immediately and does not interrupt active application traffic or cause instance downtime.

Issue/Introduction

In NetScaler Console (formerly ADM) multi-agent environments, after an offline agent recovers and returns to service, NetScaler instances that failed over to surviving agents may not immediately or automatically redistribute back to the recovered agent. This article explains the underlying mechanism and provides guidance on balancing instances across agents.

Additional Information

  • If additional NetScaler instances are added in the future and create a disparity exceeding the threshold buffer, the automated 30-minute rebalancer will automatically distribute new workload across the least-loaded agents.