---
title: "Set up a Highly Available Agent"
canonical: "https://docs.perspectium.com/space/helium/2113783/Set%20up%20a%20Highly%20Available%20Agent"
format: markdown
---
Perspectium DataSync Agents support an “exclusive consumer” mode that provides a  Highly Available Agent  solution while maintaining the order of messages in a queue. This active-passive Highly Available approach will exclusively allow only one DataSync Agent to actively read messages from a queue. Other DataSync Agents that passively try to connect to the queue will only be given access to the queue if another DataSync Agent is no longer connected. DataSync Agents use the queue in the message connection and locks that queue for exclusive use. If multiple tasks are made using the same message connection, only one subscriber task will be created and used. When running another DataSync Agent, a warning will be logged in the  perspectium.log  file indicating that the queue is in exclusive use and that consumer wait time will be increased (default is to increase to 30 seconds). Once the first running DataSync Agent is stopped or fails, the backup DataSync Agent will start consuming messages when the queue becomes available and the consumer wait time will be reset.   NOTE :  The Highly Available Agent is only available when your DataSync Agent is set to connect to the Perspectium Mesh via the  AMQP/AMQPS  protocol ( HTTP/HTTPS  is not supported). Prerequisites  First, you will need to set up one of the Perspectium  DataSync Agents .   You should also  stop running your DataSync Agent  before making any Agent configuration changes. Procedure To configure your DataSync Agent to run as a Highly Available Agent, follow these steps: