DivoPulsar (divo_pulsar v0.1.2) View Source

Defines a pulsar broker in 'standalone' mode as a map compatible with divo for building a docker-compose file.

Link to this section Summary

Functions

Implements the Divo Stack behaviour to take a keyword list of defined variables specific to the DivoPulsar stack and returns a map describing the service definition of Pulsar.

Link to this section Functions

Specs

gen_stack([tuple()]) :: map()

Implements the Divo Stack behaviour to take a keyword list of defined variables specific to the DivoPulsar stack and returns a map describing the service definition of Pulsar.

Optional Configuration

  • port: The port on which the management API will be exposed to the host for making REST calls (for creating partitioned topics, posting schema, etc). The default port Pulsar uses for its REST API is 8080, which is commonly used by other services for web and REST accessibility and may be more likely to require an override if you are testing additional services alongside Pulsar simultaneously. This only effects the port exposed to the host; internally to the containerized service the API is listening on port 8080.

  • ui_port: The port on which the Pulsar dashboard will be exposed to the host. Configuring the UI port also enables the pulsar dashboard as part of the stack; this service is not enabled unless a port is specified. This only effects the port exposed to the host; internally to the containerized service the API is listening on port 80

  • version: The version of the Pulsar container image to create. Defaults to latest.