Skip to content

Commit

Permalink
Instance soft concurrency (#39)
Browse files Browse the repository at this point in the history
* feat: support instanceSoftConcurrency

Signed-off-by: wss-git <wssgryx@163.com>
  • Loading branch information
wss-git authored Feb 8, 2023
1 parent bf215b6 commit b78876d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 12 deletions.
22 changes: 11 additions & 11 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Type: Component
Name: fc-info
Version: 0.0.37
Version: 0.0.38
Category: 基础云产品
HomePage: "https://github.com/devsapp/fc"
Tags:
Expand Down
4 changes: 4 additions & 0 deletions src/lib/fc-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export default class FcInfo {
gpuMemorySize,
environmentVariables,
instanceConcurrency,
instanceSoftConcurrency,
customContainerConfig,
caPort,
instanceType,
Expand Down Expand Up @@ -146,6 +147,9 @@ export default class FcInfo {
if (instanceConcurrency) {
functionConfig.instanceConcurrency = instanceConcurrency;
}
if (instanceSoftConcurrency) {
functionConfig.instanceSoftConcurrency = instanceSoftConcurrency;
}
if (customContainer) {
functionConfig.customContainerConfig = customContainer;
}
Expand Down
1 change: 1 addition & 0 deletions src/lib/interface/fc-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface FunctionConfig {
initializationTimeout?: number;
initializer?: string;
instanceConcurrency?: number;
instanceSoftConcurrency?: number;
instanceType?: string;
customDNS?: CustomDNS;
layers?: string[];
Expand Down

0 comments on commit b78876d

Please sign in to comment.