Skip to content

Commit

Permalink
Increase batch delay on IpsetManager.
Browse files Browse the repository at this point in the history
This improves performance under heavy churn.
  • Loading branch information
Shaun Crampton committed Dec 8, 2015
1 parent 4845eaa commit fdad018
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions calico/felix/ipsets.py
Expand Up @@ -38,6 +38,10 @@


class IpsetManager(ReferenceManager):
# Using a larger batch delay here significantly reduces CPU usage when
# we're under heavy churn.
batch_delay = 0.05

def __init__(self, ip_type, config):
"""
Manages all the ipsets for tags for either IPv4 or IPv6.
Expand Down

0 comments on commit fdad018

Please sign in to comment.