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

Staging to Main: increase memory limit for verify contribution cf #339

Merged
merged 8 commits into from
Nov 27, 2024
2 changes: 1 addition & 1 deletion packages/backend/src/functions/bandada.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const bandadaApi = new ApiSdk(BANDADA_API_URL)
export const bandadaValidateProof = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.https.onCall(async (data: BandadaValidateProof): Promise<VerifiedBandadaResponse> => {
const VKEY_DATA = {
Expand Down
2 changes: 1 addition & 1 deletion packages/backend/src/functions/ceremony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export const setupCeremony = functions
export const initEmptyWaitingQueueForCircuit = functions
.region("europe-west1")
.runWith({
memory: "512MB"
memory: "1GB"
})
.firestore.document(
`/${commonTerms.collections.ceremonies.name}/{ceremony}/${commonTerms.collections.circuits.name}/{circuit}`
Expand Down
4 changes: 2 additions & 2 deletions packages/backend/src/functions/circuit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ const checkIfVMRunning = async (ec2: EC2Client, vmInstanceId: string, attempts =
* 2) Send all updates atomically to the Firestore database.
*/
export const verifycontribution = functionsV2.https.onCall(
{ memory: "16GiB", timeoutSeconds: 3600, region: "europe-west1" },
{ memory: "32GiB", timeoutSeconds: 3600, region: "europe-west1", cpu: 8 },
async (request: functionsV2.https.CallableRequest<VerifyContributionData>): Promise<any> => {
try {
if (!request.auth || (!request.auth.token.participant && !request.auth.token.coordinator))
Expand Down Expand Up @@ -895,7 +895,7 @@ export const verifycontribution = functionsV2.https.onCall(
}
} catch (error: any) {
logAndThrowError(makeError("unknown", error))
}
}
}
)

Expand Down
Loading