Skip to content

Added REST/CLI tools to manage bookies rack placement config - #2005

Merged
sijie merged 3 commits into
apache:masterfrom
merlimat:rack-aware-tools
Jun 22, 2018
Merged

sijie merged 3 commits into
apache:masterfrom
merlimat:rack-aware-tools

Conversation

@merlimat

Copy link
Copy Markdown
Contributor

Motivation

Currently we don't have tools to manage the rack placement configuration for bookies in a Pulsar cluster.

Modifications

  • Added /admin/v2/bookie REST handler
  • Added admin.bookie() in Java admin client
  • Added pulsar-admin bookies ... CLI tool
  • Worked around an issue with bookie hostname and hostname:port that prevented BK client to detect the correct rack.

Fixes #151

@merlimat merlimat added type/bug The PR fixed a bug or issue reported a bug type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages labels Jun 21, 2018
@merlimat merlimat added this to the 2.1.0-incubating milestone Jun 21, 2018
@merlimat merlimat self-assigned this Jun 21, 2018
@sijie

sijie commented Jun 21, 2018

Copy link
Copy Markdown
Member

this is great! it would be good to a smoke test for the cmd tools and documentation about it in followup PRs.

@sijie

sijie commented Jun 21, 2018

Copy link
Copy Markdown
Member

retest this please

@sijie

sijie commented Jun 22, 2018

Copy link
Copy Markdown
Member

@merlimat seems RackAwareTest is broken.

@sijie
sijie merged commit ed5a8ba into apache:master Jun 22, 2018
@merlimat
merlimat deleted the rack-aware-tools branch October 24, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/bug The PR fixed a bug or issue reported a bug type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants