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

Add support for more instance sizes and regions #1037

Merged
merged 3 commits into from
Feb 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/v2/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ import { ManifestEndpoint } from '../runtime/manifest';
* List of all regions supported by Cloud Functions v2
*/
export const SUPPORTED_REGIONS = [
'us-west1',
'us-central1',
'europe-west4',
'asia-northeast1',
'europe-north1',
'europe-west1',
'europe-west4',
'us-central1',
'us-east1',
'us-west1',
] as const;

/**
Expand Down Expand Up @@ -71,21 +74,27 @@ export const MAX_CONCURRENCY = 1_000;
* List of available memory options supported by Cloud Functions.
*/
export const SUPPORTED_MEMORY_OPTIONS = [
'128MB',
'256MB',
'512MB',
'1GB',
'2GB',
'4GB',
'8GB',
'16GB',
'32GB',
] as const;

const MemoryOptionToMB: Record<MemoryOption, number> = {
'128MB': 128,
'256MB': 256,
'512MB': 512,
'1GB': 1024,
'2GB': 2048,
'4GB': 4096,
'8GB': 8192,
'16GB': 16384,
'32GB': 32768,
};

/**
Expand Down