You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@bookkeeper.apache.org by GitBox <gi...@apache.org> on 2021/09/03 07:55:18 UTC

[GitHub] [bookkeeper] casuallc opened a new issue #2786: How to use my own dns resolver ???

casuallc opened a new issue #2786:
URL: https://github.com/apache/bookkeeper/issues/2786


   **QUESTION**
   
   There is no way to use my own dns resolver in `BookKeeperClient`, but I can use it in other places.
   
   Should this in conflict?
   
   ```
   // BookKeeperClient.commonInitialization
   private synchronized void commonInitialization(
               DistributedLogConfiguration conf,
               String ledgersPath,
               EventLoopGroup eventLoopGroup,
               StatsLogger statsLogger, HashedWheelTimer requestTimer)
           throws IOException, InterruptedException {
   // other code ...
   
   Class<? extends DNSToSwitchMapping> dnsResolverCls;
           try {
                dnsResolverCls = conf.getEnsemblePlacementDnsResolverClass();
           } catch (ConfigurationException e) {
               LOG.error("Failed to load bk dns resolver : ", e);
               throw new IOException("Failed to load bk dns resolver : ", e);
           }
           final DNSToSwitchMapping dnsResolver =
                   NetUtils.getDNSResolver(dnsResolverCls, conf.getBkDNSResolverOverrides());
   
   
   // other code ...
   
   }
   ```
   
   **who can give me a answer of :**
   -  only DNSResolverForRows or DNSResolverForRacks will returned.
   -  if config `reppDnsResolverClass` is set, my onw dns resolver will be loaded in other places.
   
   **dose this in conflict...**


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [bookkeeper] jdfrozen commented on issue #2786: How to use my own dns resolver ???

Posted by GitBox <gi...@apache.org>.
jdfrozen commented on issue #2786:
URL: https://github.com/apache/bookkeeper/issues/2786#issuecomment-919893111


   请教咋配置RackawareEnsemblePlacementPolicy,有相关的文档嘛,pulsar和bookkeeper的文档不清不楚的


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org