Pulsar manager backend is a supplement and improvement to Pulsar broker.
Name | Default | Description |
---|---|---|
server.port | 7750 | Port of backend service |
pulsar-manager.account | pulsar | Login account |
pulsar-manager.password | pulsar | Login password |
redirect.host | localhost | IP address of front-end service |
redirect.port | 9527 | Port of front-end service |
insert.stats.interval | 30000ms | Time interval for collecting statistical information |
clear.stats.interval | 300000ms | Time interval for cleaning statistics |
./build/distributions/pulsar-manager/bin/pulsar-manager --redirect.host=http://localhost --redirect.port=9527 insert.stats.interval=600000
If you have a large amount of data, you can use a custom database. The following is an example of PostgreSQL.
Initialize database and table structures using file.
Modify the configuration file and add PostgreSQL configuration
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://127.0.0.1:5432/pulsar_manager spring.datasource.username=postgres spring.datasource.password=postgres
./gradlew -x build -x test
If you want to turn on JWT authentication, configure the following parameters:
For more information, see Apache Pulsar
./build/distributions/pulsar-manager/bin/pulsar-manager --redirect.host=http://localhost --redirect.port=9527 insert.stats.interval=600000 --backend.jwt.token=token --jwt.broker.token.mode=PRIVATE --jwt.broker.private.key=file:///path/broker-private.key --jwt.broker.public.key=file:///path/broker-public.key
backend.jwt.token=token jwt.broker.token.mode=PRIVATE jwt.broker.public.key=file:///path/broker-public.key jwt.broker.private.key=file:///path/broker-private.key or jwt.broker.token.mode=SECRET jwt.broker.secret.key=file:///path/broker-secret.key