Dynamic cpu priority?

I have a home server with many container…now I ran in a problem with two of them:

1 game servers…need much power sometimes with strong peaks.
2 plex media server with video encoding…So at 4k hdr strong and continuing load.

What I want is that I start streaming anything and the plex server need the resources that the game server automatically get limited. Or in short words…dynamic prioritization for container.

The only thing I found is to limit a container at Start and permanent.