diff --git a/packages/backend/src/functions/ceremony.ts b/packages/backend/src/functions/ceremony.ts index 908bd518..9bf72df7 100644 --- a/packages/backend/src/functions/ceremony.ts +++ b/packages/backend/src/functions/ceremony.ts @@ -46,7 +46,7 @@ dotenv.config() export const startCeremony = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .pubsub.schedule(`every 30 minutes`) .onRun(async () => { @@ -71,7 +71,7 @@ export const startCeremony = functions export const stopCeremony = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .pubsub.schedule(`every 30 minutes`) .onRun(async () => { @@ -96,7 +96,7 @@ export const stopCeremony = functions export const setupCeremony = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: SetupCeremonyData, context: functions.https.CallableContext): Promise => { // Check if the user has the coordinator claim. diff --git a/packages/backend/src/functions/circuit.ts b/packages/backend/src/functions/circuit.ts index 09471cbc..12cf86fe 100644 --- a/packages/backend/src/functions/circuit.ts +++ b/packages/backend/src/functions/circuit.ts @@ -312,7 +312,7 @@ const waitForVMCommandExecution = (ssm: SSMClient, vmInstanceId: string, command export const coordinateCeremonyParticipant = functionsV1 .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .firestore.document( `${commonTerms.collections.ceremonies.name}/{ceremonyId}/${commonTerms.collections.participants.name}/{participantId}` @@ -883,7 +883,7 @@ export const verifycontribution = functionsV2.https.onCall( export const refreshParticipantAfterContributionVerification = functionsV1 .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .firestore.document( `/${commonTerms.collections.ceremonies.name}/{ceremony}/${commonTerms.collections.circuits.name}/{circuit}/${commonTerms.collections.contributions.name}/{contributions}` @@ -966,7 +966,7 @@ export const refreshParticipantAfterContributionVerification = functionsV1 export const finalizeCircuit = functionsV1 .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: FinalizeCircuitData, context: functionsV1.https.CallableContext) => { if (!context.auth || !context.auth.token.coordinator) logAndThrowError(COMMON_ERRORS.CM_NOT_COORDINATOR_ROLE) diff --git a/packages/backend/src/functions/participant.ts b/packages/backend/src/functions/participant.ts index c8e32ec7..b6cc2d00 100644 --- a/packages/backend/src/functions/participant.ts +++ b/packages/backend/src/functions/participant.ts @@ -46,7 +46,7 @@ dotenv.config() export const checkParticipantForCeremony = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext) => { if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator)) @@ -177,7 +177,7 @@ export const checkParticipantForCeremony = functions export const progressToNextCircuitForContribution = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise => { if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator)) @@ -235,7 +235,7 @@ export const progressToNextCircuitForContribution = functions export const progressToNextContributionStep = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext) => { if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator)) @@ -298,7 +298,7 @@ export const progressToNextContributionStep = functions export const permanentlyStoreCurrentContributionTimeAndHash = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall( async (data: PermanentlyStoreCurrentContributionTimeAndHash, context: functions.https.CallableContext) => { @@ -357,7 +357,7 @@ export const permanentlyStoreCurrentContributionTimeAndHash = functions export const temporaryStoreCurrentContributionMultiPartUploadId = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall( async (data: TemporaryStoreCurrentContributionMultiPartUploadId, context: functions.https.CallableContext) => { @@ -411,7 +411,7 @@ export const temporaryStoreCurrentContributionMultiPartUploadId = functions export const temporaryStoreCurrentContributionUploadedChunkData = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall( async (data: TemporaryStoreCurrentContributionUploadedChunkData, context: functions.https.CallableContext) => { @@ -471,7 +471,7 @@ export const temporaryStoreCurrentContributionUploadedChunkData = functions export const checkAndPrepareCoordinatorForFinalization = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise => { if (!context.auth || !context.auth.token.coordinator) logAndThrowError(COMMON_ERRORS.CM_NOT_COORDINATOR_ROLE) diff --git a/packages/backend/src/functions/storage.ts b/packages/backend/src/functions/storage.ts index 1a93054c..b124b8ef 100644 --- a/packages/backend/src/functions/storage.ts +++ b/packages/backend/src/functions/storage.ts @@ -134,7 +134,7 @@ const checkIfBucketIsDedicatedToCeremony = async (bucketName: string) => { export const createBucket = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: CreateBucketData, context: functions.https.CallableContext) => { // Check if the user has the coordinator claim. @@ -238,7 +238,7 @@ export const createBucket = functions export const checkIfObjectExist = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: BucketAndObjectKeyData, context: functions.https.CallableContext): Promise => { // Check if the user has the coordinator claim. @@ -294,7 +294,7 @@ export const checkIfObjectExist = functions export const generateGetObjectPreSignedUrl = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: BucketAndObjectKeyData, context: functions.https.CallableContext): Promise => { if (!context.auth) logAndThrowError(COMMON_ERRORS.CM_NOT_AUTHENTICATED) @@ -409,7 +409,7 @@ export const startMultiPartUpload = functions export const generatePreSignedUrlsParts = functions .region("europe-west1") .runWith({ - memory: "512MB", + memory: "1GB", timeoutSeconds: 300 }) .https.onCall( diff --git a/packages/backend/src/functions/timeout.ts b/packages/backend/src/functions/timeout.ts index 1d58847d..1d82681a 100644 --- a/packages/backend/src/functions/timeout.ts +++ b/packages/backend/src/functions/timeout.ts @@ -42,7 +42,7 @@ dotenv.config() export const checkAndRemoveBlockingContributor = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .pubsub.schedule("every 1 minutes") .onRun(async () => { @@ -253,7 +253,7 @@ export const checkAndRemoveBlockingContributor = functions export const resumeContributionAfterTimeoutExpiration = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .https.onCall(async (data: { ceremonyId: string }, context: functions.https.CallableContext): Promise => { if (!context.auth || (!context.auth.token.participant && !context.auth.token.coordinator)) diff --git a/packages/backend/src/functions/user.ts b/packages/backend/src/functions/user.ts index 5541255c..ae7d0af9 100644 --- a/packages/backend/src/functions/user.ts +++ b/packages/backend/src/functions/user.ts @@ -18,7 +18,7 @@ dotenv.config() export const registerAuthUser = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .auth.user() .onCreate(async (user: UserRecord) => { @@ -136,7 +136,7 @@ export const registerAuthUser = functions export const processSignUpWithCustomClaims = functions .region("europe-west1") .runWith({ - memory: "512MB" + memory: "1GB" }) .auth.user() .onCreate(async (user: UserRecord) => {