diff --git a/services/backup/src/Constants.h b/services/backup/src/Constants.h index 85379103d..6c6f988a0 100644 --- a/services/backup/src/Constants.h +++ b/services/backup/src/Constants.h @@ -1,24 +1,26 @@ #pragma once #include "GlobalTools.h" #include "Tools.h" #include namespace comm { namespace network { const std::string LOG_TABLE_NAME = tools::decorateTableName("backup-service-log"); const std::string BACKUP_TABLE_NAME = tools::decorateTableName("backup-service-backup"); // This has to be smaller than GRPC_CHUNK_SIZE_LIMIT because we need to // recognize if we may receive multiple chunks or just one. If it was larger // than the chunk limit, once we get the amount of data of size equal to the // limit, we wouldn't know if we should put this in the database right away or // wait for more data. -const size_t LOG_DATA_SIZE_DATABASE_LIMIT = 1 * 1024 * 1024; +// 400KB limit (KB, not KiB, that's why it's 1000 not 1024) - +// https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/ServiceQuotas.html +const size_t LOG_DATA_SIZE_DATABASE_LIMIT = 400 * 1000; } // namespace network } // namespace comm