Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make braft PeerId support hostname/dns. #419

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Aug 28, 2023

  1. make braft support hostname/dns.

      * add more constructor for PeerId.
      * modify PeerId operator<.
      * use brpc naming_service_url init channel API to force resolv dns.
      * modify raft_meta log saved format when PeerId type is HostName.
      * init channels only once and save them for future use
    xiaolin310 committed Aug 28, 2023
    Configuration menu
    Copy the full SHA
    b3e8ad1 View commit details
    Browse the repository at this point in the history

Commits on Nov 30, 2023

  1. refactor braft to support hostname as PeerId's endpoint (#4)

    * define a struct named HostNameAddr, as an attribute of PeerId
    * wrap a function to build naming_service_url, which is used for brpc channel init
    * modify logic about channel init with naming service
    * minor fix about hostnameAddr port_ type
    xiaolin310 committed Nov 30, 2023
    Configuration menu
    Copy the full SHA
    f12c84f View commit details
    Browse the repository at this point in the history