Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(send_kcidb.py): Limit submission batch to smaller value #953

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/send_kcidb.py
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def _run(self, context):
"""Main run loop that processes nodes and sends data to KCIDB"""
self.log.info("Listening for events... Press Ctrl-C to stop.")

chunksize = 200
chunksize = 20

while True:
is_hierarchy = False
Expand All @@ -674,7 +674,7 @@ def _run(self, context):
# Submit batch
# Sometimes we get too much data and exceed gcloud limits,
# so we reduce the chunk size to 50 and try again
chunksize = 50 if not self._submit_to_kcidb(batch, context) else 200
chunksize = 5 if not self._submit_to_kcidb(batch, context) else 20

self._clean_caches()

Expand Down