How Stream Manager 2.0 works
Stream Manager sits between your client applications and the pool of Red5 Pro media nodes. When a publisher requests a server to stream to, Stream Manager selects an available origin node and returns its address. When a viewer requests a server to subscribe from, Stream Manager selects the best available edge node based on current load and geographic proximity.Node management
Provisions, monitors, and terminates origin, edge, relay, and transcoder nodes in response to load.
Load balancing
Distributes publishers and subscribers across available nodes to prevent any single server from becoming a bottleneck.
Auto-scaling
Scales the node pool up when capacity thresholds are exceeded and down when demand decreases.
Failover
Detects unhealthy nodes and reroutes traffic to healthy ones automatically.
Geo distribution
Routes clients to the geographically nearest node to reduce latency.
REST API
Exposes authenticated REST endpoints for stream management, node queries, and cluster provisioning.
Installation
Stream Manager 2.0 is deployed as part of the Red5 Pro cluster, most commonly through the official Terraform modules. Terraform handles provisioning the Stream Manager host, configuring the database backend, and bootstrapping the node group. For full installation steps, see the Stream Manager 2.0 installation overview.Finding the Stream Manager URL
After a Terraform deployment completes, the Stream Manager URL is printed in the Terraform output. Look for a value like:443 for HTTPS or 5080 for HTTP).
Admin credentials
Stream Manager 2.0 uses JWT-based authentication. The initial admin credentials are set during installation. If you deployed with Terraform, the credentials appear in the Terraform output or in the secrets you provided as input variables. To retrieve credentials after a Terraform deployment:API authentication
All Stream Manager 2.0 API requests require a JWT bearer token. You obtain the token by posting your credentials to the authentication endpoint.Obtain a JWT token
accessToken field:
Authorization header of every subsequent request:
Core API endpoints
The Stream Manager REST API is organized around two primary use cases: finding a server for a publisher, and finding a server for a subscriber.Get a server for publishing
Before a publisher connects to your cluster, your application calls this endpoint to receive the origin node address the publisher should connect to.Get a server for subscribing
Before a viewer connects to consume a stream, your application calls this endpoint to receive the edge node address the subscriber should connect to.End-to-end example
The following example shows a complete publish flow: authenticate, request an origin node, and connect a publisher.Node group management
You can query the current state of your node group to inspect how many nodes are active and what their roles are.List active nodes
Inspect a specific node group
Node group names are defined in your Terraform configuration or Stream Manager launch configuration. Use the exact name you specified during deployment.
