David Colburn
fff937a89c
participant kinds ( #2626 )
2024-04-05 12:59:06 -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
Raja Subramanian
22474e0f5d
Remove unused interface method ( #2513 )
...
* Remove unused interface method
* cleanup
2024-02-26 20:55:41 +05:30
Raja Subramanian
6696c1e63d
Close published track always. ( #2508 )
...
Simplify and close published track always. Avoid the round about path of
unbind to close.
2024-02-25 13:46:55 +05:30
Paul Wells
e5b8e25064
use shared psrpc utils ( #2506 )
...
* use shared psrpc utils
* fix
* deps
2024-02-24 00:38:49 -08:00
Benjamin Pracht
8d7257dd19
Move CreateIngress to IOInfoService. Adopt UpdateIngressStare from IOInfoService instead of IngressService ( #2485 )
...
When paired with an updated ingress service, this will cause CreateIngress to be called twice for URL pull ingress, with the 2nd call failing.
2024-02-15 14:00:25 -08:00
Paul Wells
cb42c6152c
add psrpc redis keepalive ( #2398 )
...
* add psrpc redis keepalive
* deps
2024-01-21 06:16:40 -08:00
Paul Wells
3f2f850bdb
clean up legacy rpc ( #2384 )
...
* clean up legacy rpc
* cleanup
* cleanup
* cleanup
* tidy
* cleanup
* cleanup
2024-01-14 01:49:26 -08:00
David Zhao
4ba4f5310b
Use default psrpc client parameters ( #2269 )
2023-11-27 23:20:16 -08:00
Sean DuBois
702e562f9f
Add SIP Support ( #2240 )
2023-11-14 14:24:54 -05: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
Paul Wells
de7532b5a1
split room and participant services ( #2205 )
...
* merge
* tidy
* deps
2023-10-31 21:28:21 -07:00
David Colburn
60c78affda
clean up ioInfo ( #2195 )
2023-10-26 13:32:31 -07:00
Paul Wells
a5abf61a56
update psrpc ( #2188 )
2023-10-25 20:20:49 -07:00
Paul Wells
325e5ca753
add psrpc room service ( #2171 )
...
* add psrpc room service
* update deps
* disable by default
* feedback
* config
* test
2023-10-22 22:49:38 -07:00
David Colburn
62b057b4c1
Egress store/IO cleanup ( #2152 )
...
* egress store cleanup
* client wrapper, regenerate
* put WithClusterID back
* rename clent
* infinite loops
* client wrapper -> interface
* remove StopEgress update
* remove Update from IOClient
* avoid duplicate EgressStarted events
* update protocol
2023-10-18 14:48:51 -07:00
David Zhao
0b0431b765
Per-session TURN credentials ( #2080 )
...
Switching to using session specific TURN credentials instead of shared
credentials per Room. Also eliminates need to load Room from Redis
during TURN authentication
2023-09-17 10:08:35 -07:00
Paul Wells
6c20c7eb15
add test for removing disconnected participants on signal close ( #1896 )
...
* add test for removing disconnected participants on signal close
* cleanup
2023-07-20 21:21:40 -07:00
kannonski
cf4801064d
changing key file permissions control ( #1893 )
2023-07-19 14:23:30 -07:00
David Colburn
0a3c22993e
Remove deprecated egress client ( #1701 )
...
* remove deprecated egress client
* don't copy mutex
2023-05-09 16:54:32 -07:00
David Zhao
40ceddd18b
Integrate QueuedNotifier, fixes out-of-order delivery ( #1615 )
2023-04-15 01:20:23 -07:00
Paul Wells
2c93d55e5c
add stream retry middleware for signalling ( #1503 )
2023-03-08 00:51:19 -08:00
Paul Wells
e22de045ba
add signal psrpc service ( #1485 )
...
* add signal psrpc service
* update protocol dep
* refactor for cloud
* update psrpc
* pr feedback
2023-03-03 15:49:46 -08:00
Paul Wells
b35d64ae86
finish timed version migration ( #1443 )
...
* finish timed version migration
* update protocol dep
2023-02-18 12:08:08 -08:00
David Colburn
6da9e85636
Remove deprecated ingress rpc ( #1439 )
...
* remove legacy ingress rpcs
* remove from io service
2023-02-17 11:40:38 -08:00
David Colburn
10c53e0ebb
Move psrpc to protocol ( #1426 )
...
* move psrpc to protocol
* update checks
* update protocol
* update protocol ref
* blank line
2023-02-15 16:47:38 -08:00
David Zhao
ea12e1477f
Update to go-redis v9. Fixed Redis cluster support ( #1415 )
...
* Update to go-redis v9. Fixed Redis cluster support
2023-02-12 22:22:21 -08:00
David Colburn
a87107a0f3
IOInfo service ( #1305 )
...
* IOInfo service
* only start if not nil
* use ctx in updateEgressInfo
* updates
* fix merge
2023-01-16 16:26:03 -08:00
David Zhao
17236799bb
Fix handling of non-monotonic timestamps ( #1304 )
...
* Fix handling of non-monotonic timestamps
Timed version is inspired by Hybrid Clock. We used to have a mixed behavior
by using time.Time:
* during local comparisons, it does increment monotonically
* when deserializing remote timestamps, we lose that attribute
So it's possible for two requests to be sent in the same microsecond, and
for the latter one to be dropped.
To fix that behavior, I'm switching it to keeping timestamps to consolidate
that behavior, and accepting multiple updates in the same ms by incrementing ticks.
Also using @paulwe's idea of a version generator.
2023-01-12 11:57:26 -08:00
Paul Wells
a052ebd644
Ingress psrpc ( #1295 )
...
* add ingress psrpc codegen
* use psrpc for ingress
* merge entity/info update psrpc services
* split update/delete ingress methods
* add race helper test
* add race context cancel test
* sync race result with mutex
2023-01-12 11:00:43 -08:00
Benjamin Pracht
7778cdf2cd
Do not use the egress version stored in redis to decide whether to enable PsRPC. Use a conf entry instead ( #1262 )
2022-12-30 09:32:55 +13:00
David Colburn
6719a3c714
Updated egress rpc ( #1252 )
...
* updated egress rpc
* check if egress exists on stop
* fix static check
* remove old migration code
* rename
* regenerate, update test
* latest staticcheck
* update to psrpc 0.1.0
* fix tests
* dual write rpcs on running egress
* remove unused field
* fix race, change service for egress impl
* return nil if bus is nil
* id -> ids
* add affinityFunc to StartEgress
2022-12-22 21:03:27 -08:00
David Zhao
14de2bec9c
Fixed single-node routing breakage. ( #1209 )
...
* Fixed single-node routing breakage.
Due to a regression of a previous change, Redis was always enabled even
when no configuration was provided.
* updated go modules
2022-12-04 16:23:35 -08:00
David Zhao
12ae179be2
Configurable RoomService execution timeout ( #1206 )
...
* API execution timeout is now configurable
In certain environments, it can take longer than the default 2s to
fully execute API requests. Making execution timeout a configurable option.
* do not expose api to YAML. internal for now.
2022-12-04 10:13:09 -08:00
cnderrauber
3c907ed460
Add stats for data channel and signal ( #1198 )
...
* Add stats for data channel and signal
* Solve comment
2022-11-30 14:53:19 +08:00
cnderrauber
6711060cdb
Add enable loopback candidate option ( #1185 )
2022-11-23 16:01:36 +08:00
Benjamin Pracht
c735668f67
Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis ( #1149 )
...
* Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis
* Update protocol to v1.2.1
2022-11-07 17:27:28 -08:00
David Colburn
803046b882
Auto egress ( #1011 )
...
* auto egress
* fix room service test
* reuse StartTrackEgress
* add timestamp
* update prefixed filename explicitly
* update protocol
* clean up telemetry
* fix telemetry tests
* separate room internal storage
* auto participant egress
* remove custom template url
* fix internal key
* use map for stats workers
* remove sync.Map
* remove participant composite
2022-09-21 12:04:19 -07:00
David Zhao
da2525e973
for some reasons this wasn't generated before committed. ( #974 )
2022-08-31 21:35:51 -07:00
Benjamin Pracht
d8edb9b2e7
Adopt Ingress RPC interface changes ( #972 )
2022-08-31 14:14:40 -07:00
cnderrauber
c401ca58af
turn packet and bytes stats used for telemetry and load control ( #969 )
...
* stats for turn
* add connections stats
* stats for standalone turn server only
* wire update
2022-08-31 11:00:27 +08:00
Benjamin Pracht
c333b7a026
Add support for Ingress service ( #868 )
...
Also check for Join permission on ingress API calls
2022-08-04 09:48:53 -07:00
Raja Subramanian
a393d64ccc
Do not re-use transceiver when negotiation is pending. ( #862 )
2022-07-31 10:50:55 +05:30
David Colburn
7aa5888338
Keep egress info for 24h ( #856 )
...
* Keep egress info for 24h
* updates
* better version comparison
* fix test
* duplicated if
2022-07-28 20:27:59 -05:00
David Colburn
0ab4379c5c
Separate egress/ingress storage ( #855 )
2022-07-28 17:01:33 -05:00
David Zhao
53f51c8cb0
Logging cleanup ( #843 )
...
* Logging cleanup
Changes log levels to better match significance
* fix lock
2022-07-21 00:39:49 -07:00
David Colburn
fbbcbe77df
Remove recording ( #811 )
...
* remove recorder service
* update protocol
2022-07-05 18:39:32 -07:00
David Colburn
4be096cf74
Update egress RPC handler ( #759 )
...
* egress rpc handler
* add egress statuses
* nil redis client
* update protocol
2022-06-13 12:18:17 -07:00
David Zhao
73808a1623
Remove TrackSender.ParticipantIdentity since it's unused ( #738 )
...
Just introduced this in #736 and realized the interface change comes
with a bunch of unintended consequences, so reverting this addition.
2022-05-29 23:22:03 -07:00