You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/01/21 14:53:31 UTC

[GitHub] [pulsar-helm-chart] eolivelli opened a new pull request #96: Automatically pass bookieId to the bookie as metadata.name

eolivelli opened a new pull request #96:
URL: https://github.com/apache/pulsar-helm-chart/pull/96


   ### Motivation
   
   In Pulsar 2.7.x you can configured a bookieId that is the unique identifier of the Bookie and it does not depend on the network address of the bookie.
   In Kubernetes we can set the bookieId as the name of the Pod, this way we are going to decouple the BookieId from the hostname and also from the main Bookie binary protocol endpoint (hostname:port)
   
   see
   http://bookkeeper.apache.org/bps/BP-41-bookieid/
   
   ### Modifications
   Pass the PULSAR_PREFIX_bookieId env variable, filled with metadata.name.
   
   **This is only a draft,** because we are missing an upgrade story, you cannot use this chart on an existing cluster, because the bookie will fail to boot.
   Basically this setting should be configured only on new bookies and only when all of the Pulsar Brokers are updated to a version that support BookieID (that is with BookKeeper 4.12, that comes with Pulsar 2.7.x)


----------------------------------------------------------------
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.

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



[GitHub] [pulsar-helm-chart] sijie commented on pull request #96: Automatically pass bookieId to the bookie as metadata.name

Posted by GitBox <gi...@apache.org>.
sijie commented on pull request #96:
URL: https://github.com/apache/pulsar-helm-chart/pull/96#issuecomment-770247522


   Also it is unclear to me what is the impact and migration path here.


----------------------------------------------------------------
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.

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



[GitHub] [pulsar-helm-chart] eolivelli commented on pull request #96: Automatically pass bookieId to the bookie as metadata.name

Posted by GitBox <gi...@apache.org>.
eolivelli commented on pull request #96:
URL: https://github.com/apache/pulsar-helm-chart/pull/96#issuecomment-770373037


   Currently the bookie id generated by the bookie is computed from the main bookie protocol endpoint.
   In the future we are going to add new endpoints and protocols (as in your SNI patch)
   Having references to the current port is a burden we should take off.
   
   In case of Kubernetes the pod name looks like a good and meaningful id.
   
   Another option would be to let the bookie generate an UUID and store it locally on disk, as we are doing in HerdDB.
   
   Regarding the upgrade story: this is the hard point and I still haven't found a good solution, this is why this PR is only a draft.
   
   It would be good to have the ability to use the  BookieID  configured only for new bookies for instance. But I don't know if this is feasible with an helm chart.


----------------------------------------------------------------
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.

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