Feature #41537
MON DNS Lookup for messenger V2
0%
Description
Currently is possible for a client to use DNS SRV records to find the MONs addresses to connect to. But these addresses refer to the messenger V1 protocol.
We should also support the new messenger V2 protocol with DNS SRV records.
To allow the specification of the DNS SRV records for MONs that accept msgr2 connections we probably need to use a different service name.
Currently the service name used for v1 connections is controlled by the "mon_dns_srv_name" config option, which by default is set to "ceph-mon".
We could define another config option, called "mon_V2_dns_srv_name", with the default value of "ceph-mon-v2", and make the client to search for both services.
Related issues
History
#1 Updated by Ricardo Dias over 4 years ago
- Tracker changed from Bug to Feature
#2 Updated by Ricardo Dias over 4 years ago
- Related to Feature #14527: Lookup monitors through DNS added
#3 Updated by Jason Dillaman over 4 years ago
I think v2 over DNS SRV is already handled here [1] and [2].
[1] https://github.com/ceph/ceph/blob/master/src/mon/MonMap.cc#L686
[2] https://github.com/ceph/ceph/blob/master/src/mon/MonMap.cc#L398
#4 Updated by Ricardo Dias over 4 years ago
Jason Dillaman wrote:
I think v2 over DNS SRV is already handled here [1] and [2].
Great, in that case it's just a matter of updating the documentation.