sonic-swss-common icon indicating copy to clipboard operation
sonic-swss-common copied to clipboard

[common] enable redispipeline to only publish after flush

Open a114j0y opened this issue 7 months ago • 4 comments

What I did

  • optimize redispipeline flush performance by remove unnecessary publish commands
  • add a new parameterbool flushPub in producerstatetable constructor function
    • to enable/disable batch publish feature
    • default value of m_flushPub is false, 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 is true]

Why I did it

  • save TCP traffic and increase fpmsyncd efficiency

It's a feature included in BGP Loading Optimization HLD #1521 GitHub issue/pull request detail

a114j0y avatar Jul 22 '24 22:07 a114j0y