Internet speed prioritization in containers

How can I prioritize a container with regards to internet speed? Let’s assume I’ve got two podman (docker) containers and both upload stuff.

Reasoning

My upload bandwidth is limited. One container needs to reliably upload stuff and the other doesn’t. Thus, I want to prioritize one container over the over in order to deliver content in this container reliably.

Example

Syncthing can sync over a long time period but jellyfin can’t.

  • MangoPenguin@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    6 months ago

    This would be done in your routers QoS settings using the port to select traffic most likely, or if running the containers in macvlan networking mode, by IP.

    • GravitySpoiled@lemmy.mlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      6 months ago

      thx. If I read it correctly, you can set a bandwidth limit to a container, e.g. busybox. Can you prioritize as well?

      • Lem453@lemmy.ca
        link
        fedilink
        English
        arrow-up
        1
        ·
        6 months ago

        I don’t know. This docker allows you to use the standard Linux command tc on a docker container. Perhaps check to see if tc allows you to prioritize traffic like you. This isbgenerall called “quality of service”. That search term may help as well.