sonic-swss-common
sonic-swss-common copied to clipboard
[common] enable redispipeline to only publish after flush
What I did
- optimize redispipeline flush performance by remove unnecessary publish commands
- add a new parameter
bool flushPub
inproducerstatetable
constructor function- to enable/disable batch publish feature
- default value of
m_flushPub
isfalse
, so no impact on existing codes - optimization is effective only explicitly set this option
- remove individual publish command from the
producerstatetable
APIs' lua scripts - add a publish command when the pipeline flushes [if
m_flushPub
istrue
]
Why I did it
- save TCP traffic and increase fpmsyncd efficiency
It's a feature included in BGP Loading Optimization HLD #1521