# Load Balancing for 3 app

**URL:** <https://community.f5.com/t/load-balancing-for-3-app/75497>\
**Category:** Technical Forums\
**Tags:** application-delivery\
**Created:** [December 7, 2024, 6:42pm UTC](https://community.f5.com/t/load-balancing-for-3-app/75497 "2024-12-07T18:42:15Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![MustphaBassim](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@MustphaBassim](https://community.f5.com/u/MustphaBassim)\
**Post date:** [December 7, 2024, 6:42pm UTC](https://community.f5.com/t/load-balancing-for-3-app/75497/1 "2024-12-07T18:42:15Z")

</div>

Hello Dears

I have three servers each one has it is own application installated on it all of them are sharing the same DB each application has redis cache service , we are in need to make the F5 device doing the load balance between the three apps so when the user start the session would reach one of them and complete the process and end the session with same server while the second user would go to second server … etc take in mind all users would be seen as single ip address as source

any suggestions ?

Best Regards

---

<div class="post-metadata">

**Author:** ![zamroni777](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/zamroni777/32/1473_2.png) [@zamroni777](https://community.f5.com/u/zamroni777)\
**Post date:** [December 8, 2024, 1:31pm UTC](https://community.f5.com/t/load-balancing-for-3-app/75497/2 "2024-12-08T13:31:41Z")

</div>

is it 3 apps or 3 servers?

if it is 3 apps which each app is handle by distinct f5 vserver,  
then create a custom persistence profile then assign it to the 3 vservers.

that custom persistence profile need to have&nbsp; **Match Across Virtual Servers** enabled.

you can use cookie hash instead of source ip based persistence as f5 is usually behind nat firewall and dont see the client ip address.

> **[myF5](https://my.f5.com/manage/s/article/K5837#server)**

 ![image_338385.png](https://d20hrnpixdzcsd.cloudfront.net/original/1X/9436e5d91b752444ad2e7e7bf97bb7a113ada14b.png)

---

<div class="post-metadata">

**Author:** ![MustphaBassim](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@MustphaBassim](https://community.f5.com/u/MustphaBassim)\
**Post date:** [December 8, 2024, 2:06pm UTC](https://community.f5.com/t/load-balancing-for-3-app/75497/3 "2024-12-08T14:06:59Z")

</div>

Hello Dear

no they are on the same VS using the same pool , what do you recommend for that ?

Bests

---

<div class="post-metadata">

**Author:** ![Michael\_Saleem](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/michael_saleem/32/7239_2.png) [@Michael\_Saleem](https://community.f5.com/u/Michael_Saleem)\
**Post date:** [December 9, 2024, 9:19am UTC](https://community.f5.com/t/load-balancing-for-3-app/75497/4 "2024-12-09T09:19:54Z")

</div>

If the applications are all HTTP(S) based and you have SSL offloading configured on the F5 BIG-IP virtual server, then you could just try applying a cookie persistence profile on the virtual server. You may also want to apply a OneConnect profile so that the BIG-IP load balances on every HTTP request rather than once per TCP connection.

---

<div class="post-metadata">

**Author:** ![MustphaBassim](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@MustphaBassim](https://community.f5.com/u/MustphaBassim)\
**Post date:** [December 9, 2024, 1:15pm UTC](https://community.f5.com/t/load-balancing-for-3-app/75497/5 "2024-12-09T13:15:34Z")

</div>

the traffic is API based not https based the real prob elm is that in order to complete the process the end user must pass more than 8 APIs so when the end user jump from one node to another here the redis cache of the second server is not know what is the current status and the end user got an error (the customer is not exists) while some of his info is on the first app

---

<div class="post-metadata">

**Author:** ![zamroni777](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/zamroni777/32/1473_2.png) [@zamroni777](https://community.f5.com/u/zamroni777)\
**Post date:** [December 10, 2024, 7:40am UTC](https://community.f5.com/t/load-balancing-for-3-app/75497/6 "2024-12-10T07:40:42Z")

</div>

there should be session key/id created by either the client or server.  
use f5 universal persistence and feed above sesssion id as the persistence key.

i had similar thing for sap-avaya integration.  
i had to extract api session key from server’s http response payload as universal persistence key.

> **[myF5](https://my.f5.com/manage/s/article/K7392)**

---

<div class="post-metadata">

**Author:** ![MustphaBassim](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@MustphaBassim](https://community.f5.com/u/MustphaBassim)\
**Post date:** [December 10, 2024, 11:00am UTC](https://community.f5.com/t/load-balancing-for-3-app/75497/7 "2024-12-10T11:00:59Z")

</div>

I think this may work but i am unable to do it since the Dev team unable to provide me with such kind of capture i would mark this as solution and try another machincem to solve it

Much appreciated
