你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

LifecycleConfiguration Class

The lifecycle configuration properties of a session in the dynamic session pool.

Constructor

LifecycleConfiguration(*, lifecycle_type: str | _models.LifecycleType | None = None, cooldown_period_in_seconds: int | None = None, max_alive_period_in_seconds: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
lifecycle_type

The lifecycle type of the session pool. Known values are: "Timed" and "OnContainerExit".

Default value: None
cooldown_period_in_seconds
int

The cooldown period of a session in seconds when the lifecycle type is 'Timed'.

Default value: None
max_alive_period_in_seconds
int

The maximum alive period of a session in seconds when the lifecycle type is 'OnContainerExit'.

Default value: None

Variables

Name Description
lifecycle_type

The lifecycle type of the session pool. Known values are: "Timed" and "OnContainerExit".

cooldown_period_in_seconds
int

The cooldown period of a session in seconds when the lifecycle type is 'Timed'.

max_alive_period_in_seconds
int

The maximum alive period of a session in seconds when the lifecycle type is 'OnContainerExit'.