For Juniper devices with a large RIB, sharding can be enabled to improve the performance. By default only a single CPU core is used for the RIB.
Warning: Changing this configuration option is disruptive.
Set the following configuration:
set system processes routing bgp rib-sharding number-of-shards 4
set system processes routing bgp update-threading