# Agent Failover - use always DEFAULT EM, if it's available

Question asked by pivst01 on Apr 5, 2016
Latest reply on Apr 7, 2016 by pivst01

Hi All,

is there please any possibility to force the Agent to always (re)connect to the DEFAULT EM, when it's available

even in case it was unavailable, BACKUP EM took it's place, but after some time the DEFAULT EM comes up again? so it should be use..

1.

introscope.agent.enterprisemanager.connectionorder=DEFAULT,BACKUP

introscope.agent.enterprisemanager.failbackRetryIntervalInSeconds=30

DEFAULT & BACKUP EM are in different cluster, so i think loafbalancing.xml shouldnt be used as the agent shouldnt be loadbalanced, the agent should use the BACKUP EM just in some exceptional case.

2.

DEFAULT EM goes down and the agent connects to the BACKUP EM

3.

DEFAULT EM comes up and it should be used

i tried it, but the agent kept connecting to the BACKUP EM even the DEFAULT EM came up and were available again.

any idea?

thank you,

stefan