diff --git a/kcidb/cloud/functions.sh b/kcidb/cloud/functions.sh index 6a35c8a4..f47053ac 100644 --- a/kcidb/cloud/functions.sh +++ b/kcidb/cloud/functions.sh @@ -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 diff --git a/main.py b/main.py index 44c41d0c..d4a10fe5 100644 --- a/main.py +++ b/main.py @@ -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",