Benjamin Pracht
fb7eb3450e
Update agents service to updated protocol ( #2837 )
...
- Deprecate namespace field
- Restore former semantic of starting a job for each registered namespace, for a given Agent Name
- Add agentName field
- Use "dispatcher" naming convention
2024-07-08 17:09:11 -07:00
Paul Wells
e511464d3d
add handler interface to receive agent worker updates ( #2830 )
...
* add handler interface to receive agent worker updates
* cleanup
2024-07-02 13:11:08 -07:00
Benjamin Pracht
32a4d03c9e
Implement Agents protocol addition ( #2786 )
2024-06-27 19:20:52 -07:00
David Colburn
407614b28e
fix jobRequestAffinity ( #2641 )
2024-04-10 12:44:46 -07:00
David Zhao
f4314686d1
Improve Agent logging ( #2628 )
2024-04-05 20:32:29 -07:00
dc67f505a5
agent service: new protocol & namespaces ( #2545 )
...
* initial worker impl
* fix test
* fix build
* TestAgentNamespaces
* log err
* nit cmt
* TestAgentMultiNode
* Update pkg/agent/worker.go
Co-authored-by: David Zhao <dz@livekit.io >
* retry on worker selection & fix review comments
* Update roommanager.go
* license
* use testutils.WIthTimeout
* abstract namespace/enabled logic into agent.Client, incrementally dispatch
* typos and dates
* lock
* timeout is now optional
* pass in topics instead of fixed
* handler handles connections
* onIdle, numConnections
* fix WithGrants
* update protocol
* check agent client
* broadcast after unlock
* fix data race
* remove ReadChan, fix dispatcher
---------
Co-authored-by: David Zhao <dz@livekit.io >
Co-authored-by: David Colburn <xero73@gmail.com >
2024-04-03 15:25:42 -07:00
David Zhao
be526cc43e
Adds callback to notify when workers are registered ( #2328 )
2023-12-20 08:10:35 -08:00
David Zhao
3fe124c87f
Log cleanup pass ( #2285 )
...
* Log cleanup pass
Demoted a bunch of logs to DEBUG, consolidated logs.
* use context logger and fix context var usage
* moved common error types, fixed tests
2023-12-02 15:07:31 -08:00
Paul Wells
aa797c749c
validate input to agent worker register ( #2231 )
...
* validate input to agent worker register
* prevent multiple registrations
* cleanup
2023-11-09 00:58:59 -08:00
Paul Wells
229c80ac17
retry jobs when agent ws write fails ( #2230 )
...
* retry jobs when agent ws write fails
* release lock before io
2023-11-09 00:29:21 -08:00
David Colburn
57643a42ed
Agents enabled check ( #2227 )
...
* agents enabled check
* participant -> publisher
* nil check client
* add NumConnections
* add lock around agent check
* do not launch agents against other agents
* regen
* don't need atomic anymore
* update protocol
2023-11-07 19:19:07 -08:00
David Colburn
60374c6402
Agents ( #2203 )
...
* agents
* add test
* undo name changes
* remove debug logs
* fixes
* fix data race in test
2023-11-03 11:43:35 -07:00