tree: 99b14581f153d2255f87b2f5b60fc2c1db1edc4f [path history] [tgz]
  2. main/
  3. test/

Pulsar manager backend

Pulsar manager backend is a supplement and improvement to Pulsar broker.

  • Handle complex query requests
  • Route requests (add, delete, update) to brokers
  • Support multi broker, dynamic change environment

Supported configurations of backend

server.port7750Port of backend service
pulsar-manager.accountpulsarLogin account
pulsar-manager.passwordpulsarLogin password
redirect.hostlocalhostIP address of front-end service
redirect.port9527Port of front-end service
insert.stats.interval30000msTime interval for collecting statistical information
clear.stats.interval300000msTime interval for cleaning statistics

How to set parameters when starting back-end services

./build/distributions/pulsar-manager/bin/pulsar-manager --redirect.port=9527 insert.stats.interval=600000

Use custom databases

If you have a large amount of data, you can use a custom database. The following is an example of PostgreSQL.

  1. Initialize database and table structures using file.

  2. Modify the configuration file and add PostgreSQL configuration

  1. Compile to generate a new executable jar package
./gradlew -x build -x test

Enable JWT Auth

If you want to turn on JWT authentication, configure the following parameters:

  • backend.jwt.token token for the superuser. You need to configure this parameter during cluster initialization.
  • Two modes of generating token, SECRET and PRIVATE.
  • Configure this option if you are using the PRIVATE mode.
  • Configure this option if you are using the PRIVATE mode.
  • Configure this option if you are using the SECRET mode.

For more information, see Apache Pulsar

  • Method 1: Use command-line tool
./build/distributions/pulsar-manager/bin/pulsar-manager --redirect.port=9527 insert.stats.interval=600000 --backend.jwt.token=token
  • Method 2. Configure the file