Commit Graph

143 Commits

Author SHA1 Message Date
David Zhao
1eb56d4243 Improve usability of room configuration (#864)
* Improve usability of room configuration

- allowing setting configuration parameters directly
- removes dispatch wrapper to simplify agents specification

* generated protobuf

* changeset

* rename to roomConfig to avoid confusion

* fix test

* export agent dispatch protobufs

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-21 22:37:24 -07:00
Paul Wells
226ac38b50 add license header to mono (#861) 2024-10-17 02:03:26 -07:00
Paul Wells
37cb4c8b25 add monotonic time util (#860)
* add monotonic time util

* unixmicro

* fromtime
2024-10-16 08:59:12 -07:00
Raja Subramanian
b7c4dc5f45 More precise proto proxy timing. (#859)
* More precise proto proxy timing.

It is possible that update function takes some time. Due to that the
next cycle could see less than refresh interval since refresh and skip a
cycle.

That could end up adding an extra cycle.

* clean up

* clean up
2024-10-16 17:59:19 +05:30
Raja Subramanian
a3ae28b3c5 utility to for connection quality higher (#851) 2024-10-14 16:22:16 +05:30
Paul Wells
38527a8685 fix unlikely logger call depth (#849)
* fix unlikely logger call depth

* mute test
2024-10-11 08:29:06 -07:00
Paul Wells
9081e9623c fix guid append write offset (#846) 2024-10-09 16:45:27 -07:00
Paul Wells
136dfa7a25 fix agents rpc enum typo (#838)
* fix agents rpc enum typo

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-10-07 04:03:47 -07:00
Paul Wells
8fd1f553fe add MarshalAppend for guid (#837)
* add MarshalAppend for guid

* wrong bytes
2024-10-05 03:58:42 -07:00
Denys Smirnov
e29da3c74e Fix test deadlock on failure. (#834) 2024-10-04 18:33:55 +03:00
Paul Wells
b216a9275d add unlikely logger (#829) 2024-10-02 22:29:59 -07:00
Paul Wells
be21ccf7da add closers util (#827) 2024-09-27 09:27:25 -07:00
Paul Wells
1ac3b74d03 clean up unused utils (#819)
* clean up unused utils

* cleanup
2024-09-20 23:07:11 -07:00
Raja Subramanian
1874ac0679 Error util to check one of. (#815) 2024-09-19 10:55:04 +05:30
Paul Wells
822e90187c add callback functions to event emitter (#810) 2024-09-17 23:26:11 -07:00
Paul Wells
a7b1ab8bde add utilities for applying options and copying protobufs (#809) 2024-09-17 23:25:30 -07:00
Raja Subramanian
9675e0cf33 Add uint8 to Bitmap (#808) 2024-09-15 00:01:02 +05:30
Paul Wells
fbe514b3fa return error for max hedge attempts (#793)
* return error for max hedge attempts

* cleanup
2024-08-24 05:41:32 -07:00
Paul Wells
f5a53f8566 unblock blocked event emitters when stopped (#790) 2024-08-14 01:39:41 -07:00
Paul Wells
45b9751aaf add atomic config helpers (#772)
* add atomic config helpers

* generated protobuf

* copy

* disable grpc generation for protos

* copy

* deps

* tidy

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-07-29 19:55:40 -07:00
Paul Wells
47a1eaca35 add blocking event emitter mode (#768) 2024-07-26 01:35:24 -07:00
Benjamin Pracht
f187d838fc Add AgentDispatchPrefix to guid (#757) 2024-07-10 19:21:40 -07:00
Paul Wells
425cb974f7 update yaml config tags (#741) 2024-06-13 23:08:01 -07:00
Paul Wells
d5e9f0a2f9 refactor guid out of utils (#730)
* refactor guid out of utils

* cleanup
2024-06-05 19:07:23 -07:00
Paul Wells
c721a3ed39 add message bytes to psrpc metrics observer (#723)
* add message bytes to psrpc metrics observer

* deps
2024-05-26 12:36:38 -07:00
Lukas Herman
2ec622e468 fix: rate intermittent flaky tests (#721)
changes:
  * add retries to advance clock to unblock rate limiters
  * rewrite some tests to be more robust and simpler
  * add assertCount with noise to consider oversubscribed CI machines
  * remove parallel tests, reduce CPU pressure on CI machines
  * replaced assert with require
2024-05-24 10:40:50 -04:00
cnderrauber
04d15340d0 Move LatencyAggregate into utils (#720) 2024-05-23 15:30:33 +08:00
Paul Wells
e079b2245f avoid allocation from timeout queue iterator (#710) 2024-05-09 02:37:16 -07:00
Paul Wells
72c0789f38 allow setting min log level for logger (#705)
* allow setting min log level for logger

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-06 22:22:14 -07:00
Denys Smirnov
e0c63d7698 Add Twirp interceptor that prints curl commands (#702)
* Add Twirp interceptor that prints curl commands.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-05-01 22:08:30 +03:00
Denys Smirnov
e7962f4444 Pass additional metadata for SIP. (#696) 2024-04-26 13:44:03 +03:00
Paul Wells
524ca6a3a3 reduce allocations from guids (#692)
* reduce allocations from guids

* fix

* fix

* less lock thrashing
2024-04-21 13:07:37 -07:00
Paul Wells
91a1cc854d lazily initialize pion loggers (#689)
* lazily initialize pion loggers

* cleanup
2024-04-18 19:00:32 -07:00
Lukas Herman
b7e396271d fix: rate limit update and slack unit (#685)
* add an atomic update to rate and slack

* fix: slack should be int instead of Duration

* add documentation to rateLimit and slack
2024-04-17 13:22:27 -04:00
Paul Wells
b6a979d8cf add iterator to timeseries (#677)
* add iterator to timeseries

* cleanup

* cleanup
2024-04-09 23:02:26 -07:00
Lukas Herman
c69c1b0580 add Clock interface and LeakyBucket (#675)
* add Clock interface and LeakyBucket

* add SimulatedClock

* removed self reference and format

* renamed t to lb

* replaced sync/atomic with uber/atomic

* add source to the license comment

* favor value over pointer receiver for SystemClock

* use atomic.Int value

* use mutex based instead

* add source

* update comments and hide mutex

* add SetRateLimitOnTheFly

* fix: source in rate_test

* skip unstable slack tests on Github
2024-04-09 11:32:35 -04:00
Théo Monnom
bc6c7ffd71 agents protocol proposal (#595)
* simulate-job

* generated protobuf

* wip

* job_cost

* Update livekit_agent.proto

* generated protobuf

* Update livekit_agent.proto

* generated protobuf

* Update livekit_agent.proto

* Update livekit_agent.proto

* Update livekit_agent.proto

* generated protobuf

* Update livekit_agent.proto

* renamed to pong

Co-authored-by: David Zhao <dz@livekit.io>

* Update livekit_agent.proto

* Update livekit_agent.proto

* generated protobuf

* remove job_cost & ParticipantPermission

* generated protobuf

* Update livekit_agent.proto

* generated protobuf

* wip

* generated protobuf

* generated protobuf

* Update livekit_agent.proto

* generated protobuf

* generated protobuf

* handler namespace

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Zhao <dz@livekit.io>
Co-authored-by: David Colburn <xero73@gmail.com>
2024-04-03 22:49:52 +02:00
David Zhao
766ababa37 Include projectID in node snapshots (#672)
* Include projectID in node snapshots

* generated protobuf

* removed project_id from event & stat

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-31 13:31:40 -07:00
Paul Wells
38f2e3216c add hedge retry helper (#670)
* add hedge retry helper

* cleanup

* fix
2024-03-28 09:48:12 -07:00
Paul Wells
0d9caadf76 simplify timed version (#664) 2024-03-21 02:45:38 -07:00
Denys Smirnov
4d22b4ce36 Move CPU stats to a separate hwstats package. Fixes #659. (#660) 2024-03-14 22:24:40 +02:00
Paul Wells
feb177f216 call config observers synchronously (#657)
* call config observers synchronously

* cleanup
2024-03-13 21:34:20 -07:00
Paul Wells
8d755b44a9 add emit config update helper (#655) 2024-03-13 16:09:39 -07:00
Paul Wells
34e705a573 add config observer test (#645)
* add config observer test

* cleanup
2024-03-11 16:36:54 -07:00
Paul Wells
76870e1f15 add configobserver utility (#644)
* add configobserver utility

* deps
2024-03-11 13:22:50 -07:00
Denys Smirnov
92c5e52943 Update usage of core.Fuse. (#621) 2024-02-27 22:10:02 +02:00
Paul Wells
a9e0faf6f0 allow intercepting logging (#609)
* allow intercepting logging

* roll back nats
2024-02-20 20:46:29 -08:00
Paul Wells
6fbf4a2604 initialize lock tracker timestamp (#608) 2024-02-20 16:18:34 -08:00
Raja Subramanian
cee767e2d9 Close await chan when there is no change in message. (#603)
* Close await chan when there is no change in message.

Else, call sites waiting on update to be applied could hang.

* generated protobuf

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
2024-02-13 13:13:47 +05:30
Benjamin Pracht
cabaa7e10a Null CPU monitor for use on other platforms than linux/darwin (#592)
go-osstat only supports reporting CPU usage on linux and Darwin. We do not use it on linux, so create null cpu monitor for use on all platforms other than linux and Darwin. Display a warning to report that resource management is not supported.
2024-02-06 14:29:39 -08:00