Forum Discussion
give the BIGIP version, and the configuration of GTM wideip and gslb pool. In wideip Advanced>>Load Balancing Decision Log, Check all the options. You can see why this pool member is selected in the /var/log/ltm
After testing, the reason why wideip cannot rollback and skip tcp down gslb pool is related to the settings of Preferred, Alternate, and Fallback in gslb pool.
1. If gslb pool_ A is manually disabled by the administrator, wideip will skip disabled gslb pool_A and automatically selected Status "up" gslb pool_ B
2. If gslb pool_ A all pool members are disabled by the administrator or all pool members tcp monitor down, wideip will automatically fallback to the Status "up" gslb pool_ B need to do this steps:
wideip name Load Balancing Method set "Topology", Pools is ["gslb pool_A", "gslb pool_B"]
gslb pool_A,pool_B Load Balancing Method, "Preferred" set Round Robin, "Alternate" set None, "Fallback" set Topology
root@(f5)(cfg-sync Standalone)(Active)(/Common)(tmos)# list gtm wideip a www.bestpay.com.cn
gtm wideip a www.bestpay.com.cn {
aliases {
mapi.bestpay.com.cn
}
load-balancing-decision-log-verbosity { pool-selection pool-traversal pool-member-selection pool-member-traversal }
pool-lb-mode topology
pools {
gslb_pool_bestpay_ctc_v4 {
order 0
}
gslb_pool_bestpay_cuc_v4 {
order 1
}
}
topology-prefer-edns0-client-subnet enabled
}
root@(f5)(cfg-sync Standalone)(Active)(/Common)(tmos)# list gtm pool a gslb_pool_bestpay_ctc_v4
gtm pool a gslb_pool_bestpay_ctc_v4 {
alternate-mode none
fallback-mode topology
members {
DC-2-GTM-ipv4:/Common/vs_ctc_97_22 {
disabled
member-order 0
}
DC-2-GTM-ipv4:/Common/vs_ctc_97_23 {
disabled
member-order 1
}
}
}
root@(f5)(cfg-sync Standalone)(Active)(/Common)(tmos)# list gtm pool a gslb_pool_bestpay_cuc_v4
gtm pool a gslb_pool_bestpay_cuc_v4 {
alternate-mode none
fallback-mode topology
members {
DC-2-GTM-ipv4:/Common/vs_ctc_98_22 {
member-order 0
}
DC-2-GTM-ipv4:/Common/vs_ctc_98_23 {
member-order 1
}
}
}
Hi xuwen,
So fallback-mode within the pools as "none" replicates the issue?
To me this makes no sense. We're talking about the LB mode within the wide-ip to choose the correct pool. The LB mode within the pools (and the fallback mode, at that!) should have no effect on that. Do you agree?
/Mike
- xuwenDec 09, 2022Cumulonimbus
In wideip Advanced>>Load Balancing Decision Log, Check all the options. You can see why this pool member is selected in the /var/log/ltm
Overview of BIG-IP DNS Topology records (11.x - 17.x) (f5.com)
After testing with BIGIP VE, when the wideip LB mode is topology, it only considers the following bound gtm pool to calculate the corresponding score according to the topology algorithm. gtm pool A is 200 points, and gtm pool B is 20 points, so the gtm pool A with 200 points is highest selected, regardless of the up/down status of the gtm pool at wideip level(when the administrator disables the gtm pool, will skip the gtm pool disabled by the administrator and directly select the next gtm pool)
If the fallback of the gtm pool is set to None or Topology, gtm pool A Preferred Round Robin failed because no active pool members are available at the gtm pool level, and "Alternate" set None, "Fallback" set None or Topology, it will fallback to topology choose lower points status "up" gtm pool pool_BIf the fallback is set to Return to DNS, it will fallback to dns bind to resolution, and all pool members in gtm pool A and pool B will be returned as A records(such as A1,A1, B1, B2)
fallback set "None", log:
[mapi.bestpay.com.cn A] [matched topology record (ldns:(region:/Common/all_ctc), server:(region:/Common/Region_CTC_GSLB_Pool), score:2000) to pool (gslb_pool_bestpay_ctc_v4)] [matched topology record (ldns:(region:/Common/Other_Region), server:(region:/Common/Region_CUC_GSLB_Pool), score:5) to pool (gslb_pool_bestpay_cuc_v4)] [topology selected pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is higher] [topology selected pool (gslb_pool_bestpay_ctc_v4) - topology score (2000) is higher] [topology selected pool (gslb_pool_bestpay_ctc_v4) with the highest topology score (2000)] [topology selected pool (gslb_pool_bestpay_ctc_v4)] [pool member select check failed (vs_ctc_97_23:58.213.97.23) - pool member is disabled] [pool member select check failed (vs_ctc_97_22:58.213.97.22) - pool member is disabled] [round robin failed to select a pool member] [failed to select pool member by preferred load balancing method] [Using none load balancing method] [failed to select pool member by alternate load balancing method] [Using none load balancing method] [failed to select pool member by fallback load balancing method] [topology selected pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is higher] [topology selected pool (gslb_pool_bestpay_cuc_v4) with the highest topology score (5)] [topology selected pool (gslb_pool_bestpay_cuc_v4)] [pool member check succeeded (vs_ctc_98_23:58.213.98.23) - pool member state is available (green)] [round robin selected pool member (vs_ctc_98_23:58.213.98.23)]
fallback set "Topology", log:
[mapi.bestpay.com.cn A] [matched topology record (ldns:(region:/Common/all_ctc), server:(region:/Common/Region_CTC_GSLB_Pool), score:2000) to pool (gslb_pool_bestpay_ctc_v4)] [matched topology record (ldns:(region:/Common/Other_Region), server:(region:/Common/Region_CUC_GSLB_Pool), score:5) to pool (gslb_pool_bestpay_cuc_v4)] [topology selected pool (gslb_pool_bestpay_ctc_v4) - topology score (2000) is higher] [topology skipped pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is not higher] [topology selected pool (gslb_pool_bestpay_ctc_v4) with the highest topology score (2000)] [topology selected pool (gslb_pool_bestpay_ctc_v4)] [pool member select check failed (vs_ctc_97_23:58.213.97.23) - pool member is disabled] [pool member select check failed (vs_ctc_97_22:58.213.97.22) - pool member is disabled] [round robin failed to select a pool member] [failed to select pool member by preferred load balancing method] [Using none load balancing method] [failed to select pool member by alternate load balancing method] [pool member select check failed (vs_ctc_97_22:58.213.97.22) - pool member is disabled] [pool member select check failed (vs_ctc_97_23:58.213.97.23) - pool member is disabled] [topology failed to select a pool member] [failed to select pool member by fallback load balancing method] [topology selected pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is higher] [topology selected pool (gslb_pool_bestpay_cuc_v4) with the highest topology score (5)] [topology selected pool (gslb_pool_bestpay_cuc_v4)] [pool member check succeeded (vs_ctc_98_22:58.213.98.22) - pool member state is available (green)] [round robin selected pool member (vs_ctc_98_22:58.213.98.22)] [root@f5:Active:Standalone] config #
fallback set "Return to DNS", log:
[mapi.bestpay.com.cn A] [matched topology record (ldns:(region:/Common/all_ctc), server:(region:/Common/Region_CTC_GSLB_Pool), score:2000) to pool (gslb_pool_bestpay_ctc_v4)] [matched topology record (ldns:(region:/Common/Other_Region), server:(region:/Common/Region_CUC_GSLB_Pool), score:5) to pool (gslb_pool_bestpay_cuc_v4)] [topology selected pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is higher] [topology selected pool (gslb_pool_bestpay_ctc_v4) - topology score (2000) is higher] [topology selected pool (gslb_pool_bestpay_ctc_v4) with the highest topology score (2000)] [topology selected pool (gslb_pool_bestpay_ctc_v4)] [pool member select check failed (vs_ctc_97_23:58.213.97.23) - pool member is disabled] [pool member select check failed (vs_ctc_97_22:58.213.97.22) - pool member is disabled] [round robin failed to select a pool member] [failed to select pool member by preferred load balancing method] [Using none load balancing method] [failed to select pool member by alternate load balancing method] [selected configured option Return To DNS]
- MHDec 12, 2022Altocumulus
Hello,
Thank you for your help on this. I will test this set-up with three pools to verify that that the topology rules with lower priority are actually being used to select the correct pools.
Thanks,
Michael
- MHDec 12, 2022Altocumulus
Hello,
I found documentaiton that if we set the Alternate and Fallback to None, then it will fall back and use the next avaiable pool. This is a situation I am now testing. It woudl work in a situation with only 2 load balancing pool. With more than 3 load balancing pools, this is not ideal, as it does not give you explicit control over the pool that is then selected as it says simply that it selects the next avaiable pool. So this is likely to be the based on the order of the pools associated with the Wide IP.
Thanks,
Michael
- xuwenDec 12, 2022Cumulonimbus
You set the GTM pool fallback mode to topology for test. I did not test more than 3 gtm pools. If the effect is not good, you can use the gtm iRules in the wideip, and select the correct gtm pool according to its status up status
- xuwenDec 12, 2022Cumulonimbus
I made a test. wideip has 3 gtm pools. the gtm pool Load Balancing Method: Alternate set None, Fallback set None or Topology
The test result is based on the score of the gtm pool and whether it has up status pool member(It is not related to the order value of the gtm pool in the wideip). If the highest score gtm pool has no pool member available, then select the gtm pool with the second score. At the same time, check that the second score gtm pool whether has active pool member. If the second has no pool members available,finally select the third gtm pool
[mapi.bestpay.com.cn A] [matched topology record (ldns:(region:/Common/all_ctc), server:(region:/Common/Region_CTC_GSLB_Pool), score:2000) to pool (gslb_pool_bestpay_ctc_v4)] [matched topology record (ldns:(region:/Common/Other_Region), server:(region:/Common/Region_CUC_GSLB_Pool), score:5) to pool (gslb_pool_bestpay_cuc_v4)] [matched topology record (ldns:(region:/Common/Other_Region), server:(region:/Common/Region_CMCC_GSLB_Pool), score:8) to pool (gslb_pool_bestpay_cmcc_v4)] [topology selected pool (gslb_pool_bestpay_cmcc_v4) - topology score (8) is higher] [topology selected pool (gslb_pool_bestpay_ctc_v4) - topology score (2000) is higher] [topology skipped pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is not higher] [topology selected pool (gslb_pool_bestpay_ctc_v4) with the highest topology score (2000)] [topology selected pool (gslb_pool_bestpay_ctc_v4)] [pool member select check failed (vs_ctc_97_22:58.213.97.22) - pool member is disabled] [pool member select check failed (vs_ctc_97_23:58.213.97.23) - pool member is disabled] [round robin failed to select a pool member] [failed to select pool member by preferred load balancing method] [Using none load balancing method] [failed to select pool member by alternate load balancing method] [Using none load balancing method] [failed to select pool member by fallback load balancing method] [topology selected pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is higher] [topology selected pool (gslb_pool_bestpay_cmcc_v4) - topology score (8) is higher] [topology selected pool (gslb_pool_bestpay_cmcc_v4) with the highest topology score (8)] [topology selected pool (gslb_pool_bestpay_cmcc_v4)] [pool member select check failed (vs_cmcc_99_22:58.213.99.22) - pool member is disabled] [pool member select check failed (vs_cmcc_99_23:58.213.99.23) - pool member is disabled] [round robin failed to select a pool member] [failed to select pool member by preferred load balancing method] [Using none load balancing method] [failed to select pool member by alternate load balancing method] [Using none load balancing method] [failed to select pool member by fallback load balancing method] [topology selected pool (gslb_pool_bestpay_cuc_v4) - topology score (5) is higher] [topology selected pool (gslb_pool_bestpay_cuc_v4) with the highest topology score (5)] [topology selected pool (gslb_pool_bestpay_cuc_v4)] [pool member check succeeded (vs_ctc_98_23:58.213.98.23) - pool member state is available (green)] [round robin selected pool member (vs_ctc_98_23:58.213.98.23)]