tree: 784fef089d6b038b5164406218723ab301ab1582 [path history] [tgz]
  1. main/
  2. test/
  3. README.md
src/README.md

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

NameDefaultDescription
server.port7750Port of backend service
pulsar-manager.accountpulsarLogin account
pulsar-manager.passwordpulsarLogin password
redirect.hostlocalhostIP address of front-end service
redirect.port9627Port 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

java -jar ./build/libs/pulsar-manager.jar --redirect.host=http://localhost --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 MySQL.

  1. Initialize database and table structures using file.

  2. Modify the configuration file and add MySQL configuration

spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.url=jdbc:mysql://ip:port/pulsar_manager?useSSL=false
spring.datasource.username=username
spring.datasource.password=password
spring.datasource.max-idle=10
spring.datasource.max-wait=10000
spring.datasource.min-idle=5
spring.datasource.initial-size=5
  1. Compile to generate a new executable jar package
./gradlew -x build -x test