For the complete documentation index, see llms.txt. This page is also available as Markdown.

How does Streams Manager select a media server to add a user?

Streams Manager evaluates servers using the following sequence of rules to select the right media server for a subscriber:

  1. Active Subscribers:

    If the user is already an active subscriber sharing a media server, check whether their current server accommodates the newly selected plan.

    • If yes: No server change is made; a payment is added to extend their subscription period.

    • If no: Proceed to the next step.

  2. Pending Invitations (Plex only):

    If the user has an unaccepted invitation to a Plex server, check whether that server accommodates their selected plan.

    • If yes: No server change is made; a payment is added to extend their subscription period, and the user must accept the existing invitation.

    • If no: Proceed to the next step.

  3. Server Filtering:

    Identify all enabled media servers that currently have available capacity.

  4. Previous Server Re-assignment:

    If the user previously shared a server that is currently enabled, has available capacity, and supports the selected plan, assign the user to that server.

  5. Trial Plans:

    If the plan is a trial, select an enabled server that has available capacity, accepts trials, and accommodates the trial plan—giving preference to the user's selected location.

    • If multiple servers qualify, the server with the lowest number of existing users is selected.

  6. Standard Plans:

    If the plan is not a trial, select an enabled server that has available capacity and accommodates the plan—giving preference to the user's selected location.

    • If multiple servers qualify, the server with the lowest number of existing users is selected.

  7. Fallback:

    If no servers meet the requirements, throw an error and notify the administrator.

Last updated