Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add agent service to check availability #999

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

anvh2
Copy link

@anvh2 anvh2 commented Mar 4, 2025

🧠 Rationale behind the change
In our production environment, we need to manage agents registered with LivekitServer. Through load testing, we can determine how many jobs a single agent worker can handle. Therefore, before dispatching an agent to a room, we want to check the availability of the agent.
However, the agent state is managed per LivekitServer instance, and we cannot retrieve all agent workers from the cluster. To address this, we plan to poll the agent state from all nodes and cache that state with a TTL in our dispatch service.

Copy link

changeset-bot bot commented Mar 4, 2025

🦋 Changeset detected

Latest commit: 81d4bf4

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

💥 An error occurred when fetching the changed packages and changesets in this PR
Some errors occurred when validating the changesets config:
The package or glob expression "github.com/livekit/protocol" specified in the `fixed` option does not match any package in the project. You may have misspelled the package name or provided an invalid glob expression. Note that glob expressions must be defined according to https://www.npmjs.com/package/micromatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant