@nexartis/nexartis-nanda-node-sdk - v1.2.1
    Preparing search index...

    Interface NnnCircuitBreakerConfig

    Circuit breaker configuration.

    interface NnnCircuitBreakerConfig {
        cooldownMs?: number;
        failureThreshold?: number;
        groupingDepth?: number;
        maxEndpoints?: number;
    }
    Index

    Properties

    cooldownMs?: number

    Cooldown period in ms before allowing a probe request. Default: 30000.

    failureThreshold?: number

    Number of consecutive failures before tripping the circuit. Default: 5.

    groupingDepth?: number

    Number of leading URL path segments used to group endpoints into circuits. Default: 2 (e.g. /api/agents/search and /api/agents share a circuit).

    A lower depth groups more sub-paths together. A higher depth isolates sub-paths but increases the number of independent circuits.

    2 Set to Infinity to give every unique pathname its own circuit.

    maxEndpoints?: number

    Maximum number of endpoint keys tracked simultaneously. When exceeded, the oldest (least-recently-created) entry is evicted.

    256