Skip to main content
Version: 3.9

SnapshotterOptions

Index

Properties

optionalclientSnapshotIntervalSecs

clientSnapshotIntervalSecs?: number = ```ts 1 ```

Defines the interval of checking the current state of the remote API client.

optionaleventLoopSnapshotIntervalSecs

eventLoopSnapshotIntervalSecs?: number = ```ts 0.5 ```

Defines the interval of measuring the event loop response time.

optionalmaxBlockedMillis

maxBlockedMillis?: number = ```ts 50 ```

Maximum allowed delay of the event loop in milliseconds. Exceeding this limit overloads the event loop.

optionalmaxClientErrors

maxClientErrors?: number = ```ts 1 ```

Defines the maximum number of new rate limit errors within the given interval.

optionalmaxUsedMemoryRatio

maxUsedMemoryRatio?: number = ```ts 0.7 ```

Defines the maximum ratio of total memory that can be used. Exceeding this limit overloads the memory.

optionalsnapshotHistorySecs

snapshotHistorySecs?: number = ```ts 60 ```

Sets the interval in seconds for which a history of resource snapshots will be kept. Increasing this to very high numbers will affect performance.