minInstanceCount property

  1. @TagNumber(12)
int get minInstanceCount

The limit on the minimum number of function instances that may coexist at a given time.

Function instances are kept in idle state for a short period after they finished executing the request to reduce cold start time for subsequent requests. Setting a minimum instance count will ensure that the given number of instances are kept running in idle state always. This can help with cold start times when jump in incoming request count occurs after the idle instance would have been stopped in the default case.

Implementation

@$pb.TagNumber(12)
$core.int get minInstanceCount => $_getIZ(9);
  1. @TagNumber(12)
set minInstanceCount (int v)

Implementation

@$pb.TagNumber(12)
set minInstanceCount($core.int v) { $_setSignedInt32(9, v); }