Sidekiq queues usually get stuck due to the large amount of requests when federating. To scale up the server it is often necessary to split the different queues, as proposed here.
Proposed solution:
To split sideqik into different processes for default, push, pull, mailers, scheduler.
Additionally, in more recent versions of mastodon an ingress queue has been implemented to handle toots from other instances. Perhaps that might help to optimize the traffic.