qubole / rubix

Cache File System optimized for columnar formats and object stores
Apache License 2.0
182 stars 74 forks source link

Extend ClusterManager to return current node or current node index #436

Closed sopel39 closed 4 years ago

sopel39 commented 4 years ago

Currently, BookKeeper uses hostname or default IP to calculate index of current node vs all Rubix nodes. However, this doesn't always work in more sophisticated deployments, where Presto nodes use neither to announce themselves to coordinator. Therefore ClusterManager should provide getCurrentNode or getCurrentNodeIndex that would work in such cases.