Skip to main content
Version: 1.3

SnapshotterOptions

Properties

eventLoopSnapshotIntervalSecs

Type: number = 0.5

Defines the interval of measuring the event loop response time.


clientSnapshotIntervalSecs

Type: number = 1

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


maxBlockedMillis

Type: number = 50

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


cpuSnapshotIntervalSecs

Type: number = 1

Defines the interval of measuring CPU usage. This is only used when running locally. On the Apify platform, the statistics are provided externally at a fixed interval.


maxUsedCpuRatio

Type: number = 0.95

Defines the maximum usage of CPU. Exceeding this limit overloads the CPU.


memorySnapshotIntervalSecs

Type: number = 1

Defines the interval of measuring memory consumption. This is only used when running locally. On the Apify platform, the statistics are provided externally at a fixed interval. The measurement itself is resource intensive (25 - 50ms async). Therefore, setting this interval below 1 second is not recommended.


maxUsedMemoryRatio

Type: number = 0.7

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


maxClientErrors

Type: number = 1

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


snapshotHistorySecs

Type: number = 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.