# Where to run dr\_agent?

**URL:** <https://forums.foundationdb.org/t/where-to-run-dr-agent/3270>\
**Category:** Kubernetes Operator\
**Tags:** performance\
**Created:** [April 19, 2022, 10:24pm UTC](https://forums.foundationdb.org/t/where-to-run-dr-agent/3270 "2022-04-19T22:24:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tangerine](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/tangerine/32/1084_2.png) [@tangerine](https://forums.foundationdb.org/u/tangerine)\
**Post date:** [April 19, 2022, 10:24pm UTC](https://forums.foundationdb.org/t/where-to-run-dr-agent/3270/1 "2022-04-19T22:24:11Z")

</div>

Hi,  
In order to start a replication from source to destination using fdb\_dr, we will need to run dr\_agent, just a couple of question regarding that.

1. I have read in another post that we should run the dr\_agent on both the source and destination cluster with the source and destination switched in the destination cluster? Is that correct? Thus on the source cluster: dr\_agent -s source.cluster -d dest.cluster (where source.cluster and dest.cluster are the connect strings of the source and destination cluster)  
On the destination cluster: dr\_agent -s source.cluster -d dest.cluster. Is this setup correct and recommended?
2. Do I need to run the dr\_agent on every single pods/nodes on both source and destination cluster?  
Thanks,

---

<div class="post-metadata">

**Author:** ![johscheuer](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johscheuer](https://forums.foundationdb.org/u/johscheuer)\
**Post date:** [April 25, 2022, 2:04pm UTC](https://forums.foundationdb.org/t/where-to-run-dr-agent/3270/2 "2022-04-25T14:04:57Z")

</div>

for 2. you don’t need to run the dr\_agent on every single Pod/node you can simply run a Deployment with a number of Pods that satisfies the dr needs (you should ensure that you have enough Pods running to sync the changes to the remote side). The operator doesn’t support dr currently so you have to setup the deployment by yourself or add this functionality to the operator.

---

<div class="post-metadata">

**Author:** ![tangerine](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/tangerine/32/1084_2.png) [@tangerine](https://forums.foundationdb.org/u/tangerine)\
**Post date:** [April 25, 2022, 3:05pm UTC](https://forums.foundationdb.org/t/where-to-run-dr-agent/3270/3 "2022-04-25T15:05:13Z")

</div>

I basically run the dr\_agent manually inside the pod.  
For now, I run it in the proxy and some log pods. It seems ok.  
Another interesting thing I see is the more storageserverperpods I put in, the better the performance to achieve sync up between the db but it is not linear. For 2 per pods, I got 2x faster, but with 3 per pods, I got 2.8 times faster.
