Skip to content

Commit

Permalink
cloud: Reduce archived pieces, increase RAM
Browse files Browse the repository at this point in the history
  • Loading branch information
spbnick committed Nov 8, 2024
1 parent 6f6c502 commit 2d4c9a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion kcidb/cloud/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ function functions_deploy() {
archive true \
--env-vars-file "$env_yaml_file" \
--trigger-topic "${archive_trigger_topic}" \
--memory 2048MB \
--memory 4096MB \
--max-instances=1 \
--timeout 540

Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -445,10 +445,10 @@ def kcidb_archive(event, context):
LOGGER.info("No data old enough to archive")
return

# Transfer data in one-day pieces, which can hopefully fit in memory
# Transfer data in pieces which can hopefully fit in memory
after_str = after.isoformat(timespec='microseconds')
while after < until:
next_after = min(after + datetime.timedelta(days=1), until)
next_after = min(after + datetime.timedelta(hours=12), until)
next_after_str = next_after.isoformat(timespec='microseconds')
# Transfer the data, preserving the timestamps
LOGGER.info("FETCHING operational database dump for (%s, %s] range",
Expand Down

0 comments on commit 2d4c9a0

Please sign in to comment.