Browse Source

feat: Add an env var for jicofo load redistribution. (#2053)

* feat: Add an env var for jicofo load redistribution.

* Update jicofo/rootfs/defaults/jicofo.conf

---------

Co-authored-by: Aaron van Meerten <aaron.van.meerten@gmail.com>
bgrozev 1 month ago
parent
commit
62feac8e4d
2 changed files with 6 additions and 0 deletions
  1. 1 0
      docker-compose.yml
  2. 5 0
      jicofo/rootfs/defaults/jicofo.conf

+ 1 - 0
docker-compose.yml

@@ -385,6 +385,7 @@ services:
             - JICOFO_CONF_SSRC_REWRITING
             - JICOFO_ENABLE_HEALTH_CHECKS
             - JICOFO_ENABLE_ICE_FAILURE_DETECTION
+            - JICOFO_ENABLE_LOAD_REDISTRIBUTION
             - JICOFO_ENABLE_REST
             - JICOFO_HEALTH_CHECKS_USE_PRESENCE
             - JICOFO_MAX_MEMORY

+ 5 - 0
jicofo/rootfs/defaults/jicofo.conf

@@ -98,6 +98,11 @@ jicofo {
         enabled = {{ .Env.JICOFO_ENABLE_ICE_FAILURE_DETECTION | toBool }}
       }
       {{ end }}
+      {{ if .Env.JICOFO_ENABLE_LOAD_REDISTRIBUTION }}
+      load-redistribution {
+        enabled = {{ .Env.JICOFO_ENABLE_LOAD_REDISTRIBUTION | toBool }}
+      }
+      {{ end }}
 
       {{ if $ENABLE_JVB_XMPP_SERVER }}
       brewery-jid = "{{ $JVB_BREWERY_MUC }}@{{ $JVB_XMPP_INTERNAL_MUC_DOMAIN }}"