sonic-net / sonic-swss

SONiC Switch State Service (SwSS)
https://azure.github.io/SONiC
Other
170 stars 512 forks source link

Add voqstatsorch for aggregate VOQ counters. #3271

Open vivekverma-arista opened 2 weeks ago

vivekverma-arista commented 2 weeks ago

Add voqstatsorch to synchronise for aggregate VOQ counters.

What I did Add a new module called voqstatsorch inside orchagent which will synchronise ASIC's COUNTERS_DB and SSI's CHASSIS_COUNTERS_DB using producer/subscriber model.

Everytime COUNTERS_DB of an ASIC is updated as a result of flex counter poll, voqstatsorch updates CHASSIS_COUNTERS_DB with the same entry but with a diferent key format.

Why I did it This is to support aggregate VOQ counters.

How I verified it

Details if related

  1. Should merge after #908 and #20057
  2. Tracked by #1543
  3. HLD: #1587