# LTM query

**URL:** <https://community.f5.com/t/ltm-query/27960>\
**Category:** Technical Forums\
**Tags:** ltm, application-delivery\
**Created:** [July 12, 2018, 4:56am UTC](https://community.f5.com/t/ltm-query/27960 "2018-07-12T04:56:35Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samit\_jadhav\_33](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@Samit\_jadhav\_33](https://community.f5.com/u/Samit_jadhav_33)\
**Post date:** [July 12, 2018, 4:56am UTC](https://community.f5.com/t/ltm-query/27960/1 "2018-07-12T04:56:35Z")

</div>

Scenario Configuration on LTM

Server A ip x.x.x.x Service port --\> 82801 Monitoring probe \> tcp 82801

Server A ip x.x.x.x Service port \> 83801 Monitoring port \> tcp 83801

Server B ip y.y.y.y Service port \> 82801 Monitoring port\> tcp 82801

Server B ip y.y.y.y Service port \> 83801 Monitoring port\> tcp 83801

Client requirement ---–-----–----------

1) Server A & Server B with service port 82801 should be configured as primary .

2) server A & Server B with service port 83801 should be configured as secondary.

3) when the primary server with the service port 82801 fails ,the client traffic should be routed to secondary server on service port 83801.

Could anybody advise how to configure in LTM

---

<div class="post-metadata">

**Author:** ![Andy\_McGrath](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/andy_mcgrath/32/28642_2.png) [@Andy\_McGrath](https://community.f5.com/u/Andy_McGrath)\
**Post date:** [July 12, 2018, 5:59am UTC](https://community.f5.com/t/ltm-query/27960/2 "2018-07-12T05:59:39Z")

</div>

Do you want to forward to secondary servers only want both primary servers fail or you trying to do a one-to-one relationship so a user on server A will stick to server A just be forwarded to the secondary port?

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 11:31am UTC](https://community.f5.com/t/ltm-query/27960/3 "2018-07-12T11:31:56Z")

</div>

Client will disable one of the service port 82801 on both servers and then the traffic should Failover to server A and server B set with service port 83801

---

<div class="post-metadata">

**Author:** ![Surgeon](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@Surgeon](https://community.f5.com/u/Surgeon)\
**Post date:** [July 12, 2018, 11:44am UTC](https://community.f5.com/t/ltm-query/27960/4 "2018-07-12T11:44:50Z")

</div>

what do you mean by “Server”? Is it a VIP or a back-end server?

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 11:50am UTC](https://community.f5.com/t/ltm-query/27960/5 "2018-07-12T11:50:36Z")

</div>

Backend server.

---

<div class="post-metadata">

**Author:** ![Surgeon](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@Surgeon](https://community.f5.com/u/Surgeon)\
**Post date:** [July 12, 2018, 11:58am UTC](https://community.f5.com/t/ltm-query/27960/6 "2018-07-12T11:58:00Z")

</div>

Maybe priority group activation may help you [Manual Chapter: About Pools](https://support.f5.com/kb/en-us/products/big-ip_ltm/manuals/product/ltm-concepts-11-5-0/5.html)

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 12:04pm UTC](https://community.f5.com/t/ltm-query/27960/7 "2018-07-12T12:04:52Z")

</div>

No it doesn’t work as in here port based Failover is initiated an 2 proves are used for monitoring

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 12:05pm UTC](https://community.f5.com/t/ltm-query/27960/8 "2018-07-12T12:05:23Z")

</div>

I mean 2 probes

---

<div class="post-metadata">

**Author:** ![Surgeon](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@Surgeon](https://community.f5.com/u/Surgeon)\
**Post date:** [July 12, 2018, 12:22pm UTC](https://community.f5.com/t/ltm-query/27960/9 "2018-07-12T12:22:14Z")

</div>

here you have for priority groups

Two pool member with port 82801 with higher priority Two pool members with port 83801 with lower priority

If one of the pool members in higher priority group fails monitoring, lower priority group will take care.

What is the problem with that?

---

<div class="post-metadata">

**Author:** ![Andy\_McGrath](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/andy_mcgrath/32/28642_2.png) [@Andy\_McGrath](https://community.f5.com/u/Andy_McGrath)\
**Post date:** [July 12, 2018, 12:23pm UTC](https://community.f5.com/t/ltm-query/27960/10 "2018-07-12T12:23:35Z")

</div>

A pool using Priority Groups should do the job, like Surgeon said.

1. Enable Priority Groups in the pool by setting the **Priority Group Activation** to be _Less than 1 Available Member(s)_.
2. Under the Pool Member for group A, set the **Priorty Group** to be 20
3. Under the Pool Member for group B, set the **Priorty Group** to be 10

Example of what your pool should look like:

```tcl
pool my_pool { 
lb_mode fastest 
min active members 1
member ServerA:82801 priority 20
member ServerB:82801 priority 20
member ServerA:83801 priority 10
member ServerB:83801 priority 10
}

```

Now if both pool members ServerA and ServerB on port 82301 as disabled or the monitors fail, all traffic will be load balanced to ServerA and ServerB on port 83801.

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 1:13pm UTC](https://community.f5.com/t/ltm-query/27960/11 "2018-07-12T13:13:39Z")

</div>

Problem

2 different monitoring probes are used ie 82801 & 83801

Client doesn’t disable the server but he disables the port 82801 . When port 82801 is disabled ,the traffic isn’t routed to next pool member whose service port is set to 83801. This is bcoz 2 probes ports 83801 & 82801 are set as monitoring ports as well in OR logic mode ie the option _atleast 1 port_ in monitoring probe is tick marked. Hence the pool member with service port 82801 still remains up inspite of the port 82801 is disabled due to which traffic isn’t routed to next available pool member with port 83801.

I need solution for this.

---

<div class="post-metadata">

**Author:** ![Andy\_McGrath](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/andy_mcgrath/32/28642_2.png) [@Andy\_McGrath](https://community.f5.com/u/Andy_McGrath)\
**Post date:** [July 12, 2018, 1:19pm UTC](https://community.f5.com/t/ltm-query/27960/12 "2018-07-12T13:19:14Z")

</div>

The point about 2 different monitors is not important as you can assign monitors to individual pool members so you would assign your monitor for 82801 to the pool members listening on 82801 then do the same for your 83801 monitor and pool members.

From what you are saying though is you want traffic currently on ServerA:82801 to be forwarded to ServerA:83801 is the client disables the port 82801?

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 1:25pm UTC](https://community.f5.com/t/ltm-query/27960/13 "2018-07-12T13:25:36Z")

</div>

All i want is when service port 82801 is disabled the client traffic should then hit the next server A&B:83801.

Its service port based Failover wherin the client traffic should hit the server A& B : 83801

---

<div class="post-metadata">

**Author:** ![Andy\_McGrath](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/andy_mcgrath/32/28642_2.png) [@Andy\_McGrath](https://community.f5.com/u/Andy_McGrath)\
**Post date:** [July 12, 2018, 1:33pm UTC](https://community.f5.com/t/ltm-query/27960/14 "2018-07-12T13:33:42Z")

</div>

This is what Priority Groups within a Pool provides!

By configuring ServerA as 2 different pool members on different port but part of different Priority Groups you can do this level of control.

See the answer I posted earlier today for example of the configuration.

---

<div class="post-metadata">

**Author:** ![KevinA\_246454](https://avatars.discourse-cdn.com/v4/letter/k/b19c9b/32.png) [@KevinA\_246454](https://community.f5.com/u/KevinA_246454)\
**Post date:** [July 12, 2018, 4:11pm UTC](https://community.f5.com/t/ltm-query/27960/15 "2018-07-12T16:11:56Z")

</div>

Hi Samit

I might be jumping in the backend of this, but you say the priority group does not work, lets take a step back.

For the priority group to function your health monitor to the pool members must fail. Please when you post your configuration, please include the health monitor configuration.

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 5:52pm UTC](https://community.f5.com/t/ltm-query/27960/16 "2018-07-12T17:52:11Z")

</div>

![image_137136.jpg](https://d20hrnpixdzcsd.cloudfront.net/original/2X/c/cb3935d183375e84f7103796c81a3d186fcbc197.jpeg)

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 12, 2018, 5:56pm UTC](https://community.f5.com/t/ltm-query/27960/17 "2018-07-12T17:56:59Z")

</div>

![image_137136.jpg](https://d20hrnpixdzcsd.cloudfront.net/original/2X/c/cb3935d183375e84f7103796c81a3d186fcbc197.jpeg)

---

<div class="post-metadata">

**Author:** ![Samit\_jadhav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@Samit\_jadhav](https://community.f5.com/u/Samit_jadhav)\
**Post date:** [July 13, 2018, 1:38am UTC](https://community.f5.com/t/ltm-query/27960/18 "2018-07-13T01:38:49Z")

</div>

Pool config

 ![image_137138.jpg](https://d20hrnpixdzcsd.cloudfront.net/original/2X/7/7317fe510d6af91eb1e0cae2eb03abf555f7418f.jpeg)
