@zarpay/zar-cdk-lib - v0.32.0
    Preparing search index...

    Interface ContainerHealthCheckProps

    Container health check configuration.

    interface ContainerHealthCheckProps {
        command?: string[];
        interval?: Duration;
        retries?: number;
        startPeriod?: Duration;
        timeout?: Duration;
    }
    Index

    Properties

    command?: string[]

    Health check command.

    ['CMD-SHELL', curl -f http://localhost:${containerPort}/up || exit 1]

    interval?: Duration

    Health check interval.

    Duration.seconds(60)
    
    retries?: number

    Number of retries before marking unhealthy.

    5
    
    startPeriod?: Duration

    Start period grace time.

    Duration.seconds(60)
    
    timeout?: Duration

    Health check timeout.

    Duration.seconds(10)