rib-sharding
Syntax
rib-sharding {
number-of-shards;
}
Hierarchy Level
[edit system processes routing bgp]
Description
Enable BGP RIB sharding. BGP RIB sharding is to split the BGP process across routes. Different routes are hashed into different threads to achieve concurrency. BGP RIB sharding splits a unified BGP RIB into several sub RIBs and each sub RIB handles a subset of BGP routes. Each sub RIB is served by a separate RPD thread to achieve concurrency. BGP RIB sharding is disabled by default. To enable, you need to explicitly configure it on a multicore routing engine. This feature is supported only on 64-bit routing protocol process (rpd) where the Routing Engine has more than one core. We recommend configuring this feature on a device with atleast 4CPU cores and 16GB of memory.
-
RPD would restart automatically when rib-sharding or update-threading configuration is changed.
-
Sharding requires Update/IO thread. If
rib-shardingis configured andupdate-threadingis not configured, the commit check fails.
Options
number of shards—the number of sharding threads created. If you
configure rib-sharding on a routing engine, RPD creates sharding
threads. By default, it is the same as the number of CPU cores on the routing
engine. Optionally, you can specify the number-of-shards you want to create.
-
Range: 1-31 shards
Limitations
RIB sharding is not supported for all routing features and configurations.
The following limitations apply:
-
RIB sharding and outbound route filtering (ORF) are not supported together.
-
Some Multicast VPN (MVPN) and NG-MVPN scenarios do not support RIB sharding.
-
Support for RIB sharding varies by feature implementation and Junos OS release.
For the up-to-date feature support information for BGP RIB sharding, including supported products and Junos OS releases, see the Juniper Pathfinder entry for BGP RIB Sharding.
Required Privilege Level
system—To view this statement in the configuration.
system-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 19.4R1.
Support for NSR with sharding introduced in Junos OS Release 22.2.