Skip to content

Commit

Permalink
[PATCH] Fix frrcfgd high CPU utilzation issue caused by small pubsub …
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh352 committed Dec 3, 2024
1 parent 1de087d commit b049db9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sonic-frr-mgmt-framework/frrcfgd/frrcfgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1486,7 +1486,7 @@ def listen(self):
"""Start listen Redis keyspace events and will trigger corresponding handlers when content of a table changes.
"""
self.pubsub = self.get_redis_client(self.db_name).pubsub()
self.sub_thread = threading.Thread(target=self.listen_thread, args=(0.01,))
self.sub_thread = threading.Thread(target=self.listen_thread, args=(10,))
self.sub_thread.start()

def stop_listen(self):
Expand Down

0 comments on commit b049db9

Please sign in to comment.