SRV record response to contain different priority response everytime
Hello Experts,
I have following setup for SRV record
This is hosted as WideIP: _collab-edge.tls_.xyz.com
Based on topology records this is taking me to a nearest possible region. I have around 6-7 data centers where the A record in response takes me to.
Currently it is taking me to a pool lets say in amsterdam Data center if my LDNS is from Amsterdam or some parts of EMEA
I have this requirement now wherein I have to provide response of SRV query with two regions / Data Center's A record but with different priority. Currently these two regions were having their respective pools (example one pool for amsterdam and one for France). Now, I have created one pool combining these two regions.
Lets say now my pool has six entries as follows:
domain =xyz.com service= _collab-edge protocol = _tls Priority = 10 weight = 10 port = 1234 fqdn = abc1amsterdam.xyz.com
domain =xyz.com service= _collab-edge protocol = _tls Priority = 10 weight = 10 port = 1234 fqdn = abc2amsterdam.xyz.com
domain =xyz.com service= _collab-edge protocol = _tls Priority = 10 weight = 10 port = 1234 fqdn = abc3amsterdam.xyz.com
domain =xyz.com service= _collab-edge protocol = _tls Priority = 20 weight = 10 port = 1234 fqdn = abd1france.xyz.com
domain =xyz.com service= _collab-edge protocol = _tls Priority = 20 weight = 10 port = 1234 fqdn = abd2france.xyz.com
domain =xyz.com service= _collab-edge protocol = _tls Priority = 20 weight = 10 port = 1234 fqdn = abd3france.xyz.com
Now the requirement is that when my topology based record takes me to this pool then response should see two entries like this:
domain =xyz.com service= _collab-edge protocol = _tls Priority = 10 weight = 10 port = 1234 fqdn = abc1amsterdam.xyz.com
domain =xyz.com service= _collab-edge protocol = _tls Priority = 20 weight = 10 port = 1234 fqdn = abd1france.xyz.com
We have to provide response from two different DC FQDNs with different priority in every SRV query. like second query may give response:
domain =xyz.com service= _collab-edge protocol = _tls Priority = 10 weight = 10 port = 1234 fqdn = abc2amsterdam.xyz.com
domain =xyz.com service= _collab-edge protocol = _tls Priority = 20 weight = 10 port = 1234 fqdn = abd3france.xyz.com
Is this possible any how or is there any other way to configure this?
Thanks in advance
Hi,
I think you can work with weight values in topology records to achieve your expectations.
Is it possible to summarize the records for each data center and balance the load? Otherwise, it may be necessary to create an SRV pool to assign a high priority member to each member in the datacenter.
In a given scenario:
DC/Server:
DC_AMS
vs_srv_ams1 10.10.0.1
vs_srv_ams2 10.10.0.2
vs_srv_ams3 10.10.0.3
DC_FRA
vs_srv_fra1 10.20.0.1
vs_srv_fra2 10.20.0.2
vs_srv_fra3 10.20.0.3
DC_USA
vs_srv_usa1 10.30.0.1
vs_srv_usa2 10.30.0.2
vs_srv_usa3 10.30.0.3
Pool:
A pool_abcamsterdam.xyz.com
vs_srv_ams1
vs_srv_ams2
vs_srv_ams3
A pool_abcfrance.xyz.com
vs_srv_fra1
vs_srv_fra2
vs_srv_fra3
A pool_abcusa.xyz.com
vs_srv_usa1
vs_srv_usa2
vs_srv_usa3
SRV pool_AMS_collab-edge.tls_.xyz.com
(LB: Topology | Maximum Answers Returned: 2)
abcamsterdam.xyz.com Priority 10
abcfrance.xyz.com Priority 20
abcusa.xyz.com Priority 20
SRV pool_FRA_collab-edge.tls_.xyz.com
(LB: Topology | Maximum Answers Returned: 2)
abcfrance.xyz.com Priority 10
abcamsterdam.xyz.com Priority 20
abcusa.xyz.com Priority 20
SRV pool_USA_collab-edge.tls_.xyz.com
(LB: Topology | Maximum Answers Returned: 2)
abcusa.xyz.com Priority 10
abcamsterdam.xyz.com Priority 20
abcfrance.xyz.com Priority 20
WideIP:
A abcamsterdam.xyz.com
pool_abcamsterdam.xyz.com
A abcfrance.xyz.com
pool_abcfrance.xyz.com
A abcusa.xyz.com
pool_abcusa.xyz.com
SRV _collab-edge.tls_.xyz.com
(LB: Topology)
pool_AMS_collab-edge.tls_.xyz.com
pool_FRA_collab-edge.tls_.xyz.com
pool_USA_collab-edge.tls_.xyz.com
Topology record:
Region is AMS: pool pool_AMS_collab-edge.tls_.xyz.com
Region is AMS: subnet 10.10.0/24 - Weight 10
Region is AMS: subnet 10.20.0/24 - Weight 5
Region is AMS: subnet 10.30.0/24 - Weight 5
Region is FRA: pool pool_FRA_collab-edge.tls_.xyz.com
Region is FRA: subnet 10.20.0/24 - Weight 10
Region is FRA: subnet 10.10.0/24 - Weight 5
Region is FRA: subnet 10.30.0/24 - Weight 5
Region is USA: pool pool_USA_collab-edge.tls_.xyz.com
Region is USA: subnet 10.30.0/24 - Weight 10
Region is USA: subnet 10.10.0/24 - Weight 5
Region is USA: subnet 10.20.0/24 - Weight 5
It's just a possibility to deploy.
You can play with weight and maximum answers to reach other as well.
Let me know if it solves to you.
Regards.