Adding a huge number of static routes (>10k) in frr is very very slow over time #18206
Open
2 tasks done
Labels
triage
Needs further investigation
Description
I am using vtysh to add more than 10,000 static routes. Initially, this is fast for a few hundred static routes, but once it reaches thousands, it starts slowing down. Adding 10,000 routes using vtysh took more than four hours. When I used staticd.conf file and loaded the same 10k routes at startup, it was finished in few seconds. So, I am assuming that the mgmtd and the transaction based configuration is the cause for the delay.
Is there any other way to configure static routes in frr (using some socket programing or something else and without the mgmtd) so that I can add them very fast in runtime.
Version
How to reproduce
Using a script having 10k vtysh commands.
Expected behavior
The static routes should be added in minutes.
Actual behavior
The static route addition in a scaled setup takes hours to add.
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: