Skip to main content

MemorySnapshot

crawlee.autoscaling.types.MemorySnapshot

A snapshot of memory usage.

Args: total_size: Total memory available in the system. current_size: Memory usage of the current Python process and its children. max_memory_size: The maximum memory that can be used by AutoscaledPool. max_used_memory_ratio: The maximum acceptable ratio of current_size to max_memory_size. created_at: The time at which the measurement was taken.

Index

Properties

created_at

created_at: datetime

current_size

current_size: ByteSize

is_overloaded

is_overloaded: bool

Returns whether the memory is considered as overloaded.

max_memory_size

max_memory_size: ByteSize

max_used_memory_ratio

max_used_memory_ratio: float

total_size

total_size: ByteSize