Skip to content

Commit

Permalink
bump memory & fix region
Browse files Browse the repository at this point in the history
  • Loading branch information
soloseng committed Aug 29, 2023
1 parent 8984821 commit 7eb0cab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export function meteringHandler<R extends OdisRequest>(
const eventLoopLag = Date.now() - eventLoopLagMeasurementStart
logger.info({ eventLoopLag }, 'Measure event loop lag')
})
// TODO:(soloseng): session ID may not always exist
const startMark = `Begin ${req.url}/${req.body.sessionID}`
const endMark = `End ${req.url}/${req.body.sessionID}`
const entryName = `${req.url}/${req.body.sessionID} latency`
Expand Down
15 changes: 9 additions & 6 deletions packages/phone-number-privacy/combiner/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
import { getContractKitWithAgent } from '@celo/phone-number-privacy-common'
import { setGlobalOptions } from 'firebase-functions/v2'
import { getContractKit } from '@celo/phone-number-privacy-common'
import * as functions from 'firebase-functions/v2/https'
import config from './config'
import { startCombiner } from './server'
import { blockchainApiKey, minInstancesConfig, requestConcurency } from './utils/firebase-configs'

require('dotenv').config()

setGlobalOptions({ region: 'us-central1' })

export const combinerGen2 = functions.onRequest(
{ minInstances: minInstancesConfig, secrets: [blockchainApiKey], concurrency: requestConcurency },
startCombiner(config, getContractKitWithAgent(config.blockchain))
{
minInstances: minInstancesConfig,
secrets: [blockchainApiKey],
concurrency: requestConcurency,
memory: '512MiB',
region: 'us-central1',
},
startCombiner(config, getContractKit(config.blockchain))
)
export * from './config'

0 comments on commit 7eb0cab

Please sign in to comment.