I configured the network, and I'm experiencing slow speeds when many devices are connected.
The setup includes 2 business internet links, 1 RB 5009, 4 Unifi access points, 1 switch, and some wired equipment (desktops and DVR). I divided the links by VLAN, each link in a specific VLAN.
However, when around 50 to 60 devices connect, the network becomes very slow, with poor connection speeds in the DNS test (nslookup www.google.com).
Worth looking at CPU usage /system resources
And Wan interface traffic when things are slow.
A Guess:
Check the internet interface traffic when things are slow. If you have a maxed-out uplink it will usually cause things to behave poorly.
If this is the case you likely need to add some QOS to the link. Perhaps a Cake (or fq_codel) queue tree with parent being the Wan interface. (Likely with packet mark=no-mark, or no-mark and any other packet marks you use) and a max limit perhaps a bit below the supplied amount (best max-limit might take a bit of trial and error to find)