Queue for Youtube & other sites to restrict bandwidth

I would like to restrict all traffic to/from Youtube and some sites at certain bandwidth. Ideally i would like to give 1Mbps down/512Kbps up per user. if its not possible per user, then i would say 3Mbps down/1Mbps up totally for all users and those sites. I am not familiar with queues and i would like some help please.
The reason behind that is a site that i manage has a 50Mbps/5Mbps VDSL circuit and when they access those sites, traffic for the rest of the applications gets really bad. So boss for this site wants to limit the traffic,not block it.

AFAIK, you can’t really filter Youtube traffic to restrict bandwidth.

You can limit port 443 traffic using mangle rules and a queue tree to prioritize the specific ports used by the other apps i.e. regular browsing on port 80. That would limit Netflix and any other site using the same port. It’s also possible to carefully fasttrack some essential traffic (DNS, streaming apps, etc.). QOS options are numerous, but actual L7 filtering is limited and should be used sparingly. RouterOS doesn’t have turn key adaptive QOS (like what is available via third party software on some home routers).

Since Youtube uses https, encrypted packets can’t be reliably restricted by using L7 filtering, unless you want to block it completely (I posted in another thread how to do this).

You can also manage bandwidth for each user by using addresses, mangle rules and queues (PCQ or SFQ). Read the docs provided by Mikrotik for usage scenarios. Each user can then have his own QOS tree.

All these options require CPU and have caveats in complex multi client environments.