fishjam-dev / fishjam

General purpose media server. Supports WebRTC, HLS, RTSP, SIP
https://fishjam-dev.github.io/fishjam-docs/
Apache License 2.0
199 stars 14 forks source link

Add simple load-balancing with use libcluster #57

Closed Rados13 closed 1 year ago

Rados13 commented 1 year ago

Description of approach. The third scenario is implemented. As for the metrics, the number of running rooms on the jellyfish instance is used for now. It will be changed to the number of forwarded tracks in the following PR.

codecov[bot] commented 1 year ago

Codecov Report

Merging #57 (b84f4ca) into main (1302b8a) will decrease coverage by 0.54%. The diff coverage is 76.19%.

@@            Coverage Diff             @@
##             main      #57      +/-   ##
==========================================
- Coverage   86.11%   85.57%   -0.54%     
==========================================
  Files          33       33              
  Lines         504      520      +16     
==========================================
+ Hits          434      445      +11     
- Misses         70       75       +5     
Files Changed Coverage Δ
lib/jellyfish/room_service.ex 88.13% <71.42%> (-5.62%) :arrow_down:
lib/jellyfish/application.ex 77.77% <75.00%> (-2.23%) :arrow_down:
lib/jellyfish_web/controllers/room_controller.ex 100.00% <100.00%> (ø)
lib/jellyfish_web/controllers/room_json.ex 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 1302b8a...b84f4ca. Read the comment docs.