[BGPCEP-859] Correct prefix counters Created: 27/Jan/19  Updated: 16/Oct/20

Status: Confirmed
Project: bgpcep
Component/s: BGP
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Low
Reporter: Robert Varga Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

EffectiveRibInWriter's installedPrefixes counter is not accurate and cannot be accurately maintained during write process, because we do not know whether a prefix ended up being installed and hence when we see a withdraw we would have to read the data we have written.

Instead of current expensive maintenance, we should maintain these number solely on events we trigger as writes - i.e. we should subscribe to the EFFRIBIN table routes for a particular writer and observe the number of routes present in the datastore.

This way the counter-keeping will be dead-simple and also accurate.



 Comments   
Comment by Robert Varga [ 27/Jan/19 ]

This is especially true for installedPrefixes. receivedPrefixes are based on the contents of ADJRIBIN, hence we can maintain that accurately without too much trouble.

Generated at Wed Feb 07 19:14:19 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.