Commit Graph

12 Commits

Author SHA1 Message Date
Jan Koppe 124e366268
implement active srs sync and celery
reworks the entire logic how active streams are being tracked.
instead of keeping a counter by listening only to srs callback
hooks, portier will now actively scrape the http api of known
srs nodes to retrieve information about all currently existing
streams on a srs node. this prevents portier from being wrong
about active stream counts due to drift, and allows us to show
more information about stream data to users in the future,
as the srs api will also expose information about used codecs,
stream resolution and data rates as seen by srs itself.

to implement this, the previous remains of celery have been
made active again, and it is now required to run exactly one
celery beat instance and one or more celery workers beside
portier itself. these will make sure that every 5 seconds all srs
nodes are actively being scraped, on top of the scrape that is
triggered by every srs callback hook.

this keeps the data always superfresh.

the celery beat function allows us to implement cron-based
automation for many other functions (restream, pull, etc) in
the future as well, so it's okay to pull in something more heavy
here rather than just using a system cron and executing a
custom management command all the time.
2024-02-29 18:33:52 +01:00
Jan Koppe ba03d9be1a
cleanup 2024-02-25 21:23:21 +01:00
Jan Koppe 2d01023a4b
maintenance: update to Django 5, Redis 7, Postgres 16, add dev SRS 2024-02-25 11:24:42 +01:00
Jan Koppe 9b231f6859
make stream and restreamconfig listviews reactive with vuejs against restapi 2020-05-31 20:25:39 +02:00
Jan Koppe 64758083b3
stop being stupid, fix file perms by not using add with http 2020-05-02 00:37:43 +02:00
Jan Koppe 95982a7815
fix staticfiles permissions in docker; remove dead css include 2020-05-02 00:23:21 +02:00
Jan Koppe 0400e85f89
fontawesome5;interfont;local frontend resources;languages 2020-05-01 23:06:55 +02:00
Jan Koppe 621771c391
run createn of default group and rtmp application on container start 2020-05-01 16:08:07 +02:00
Jan Koppe 805e2911f8
run nginx and gunicorn with supervisord in container 2020-04-25 10:22:22 +02:00
Jan Koppe 4e9fd4abed
enable translations; environment config; heavily expanded dockerfile; dev docker-compose 2020-04-23 20:19:49 +02:00
Jan Koppe 70ccad1d46
add refined dockerfile with gunicorn 2020-04-20 18:56:29 +02:00
Jan Koppe 97135c90a5
move out concierge stub to repo, restructure 2020-04-15 21:20:30 +02:00
Renamed from portier/Dockerfile (Browse further)