Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Added

- `FunctionConfig.requestConcurrency` option for GCP gen2 functions, mapped to `serviceConfig.maxInstanceRequestConcurrency`. Lets functions serve more than one request per instance (defaults to 1 currently).

## [5.2.0](https://github.com/Space48/cloud-seed/compare/v5.1.0...v5.2.0)

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions stacks/gcp/GcpStack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ export default class GcpStack extends TerraformStack {
timeoutSeconds: func.timeout ?? 60,
maxInstanceCount: func.maxInstances,
minInstanceCount: func.minInstances,
maxInstanceRequestConcurrency: func.requestConcurrency,
environmentVariables,
...(func.vpc?.network || func.vpc?.subnet
? {
Expand Down
1 change: 1 addition & 0 deletions types/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export type FunctionConfig = {
};
maxInstances?: number;
minInstances?: number;
requestConcurrency?: number;
version?: string;
};

Expand Down
Loading