Skip to main content

Module policy

Module policy 

Source
Expand description

Concrete PagingPolicy implementations.

Today: TieredPolicy, a single process-wide byte budget for resident columns. Resident columns can move between Timely workers, so the accounting cannot be thread-local; budget is held in a single AtomicUsize and credited back from whichever thread happens to drop the column.

Structsยง

TieredPolicy
A single-pool byte budget for resident columns.

Constantsยง

BACKEND_FILE ๐Ÿ”’
BACKEND_SWAP ๐Ÿ”’
CODEC_LZ4 ๐Ÿ”’
CODEC_NONE ๐Ÿ”’

Functionsยง

decode_backend ๐Ÿ”’
decode_codec ๐Ÿ”’
encode_backend ๐Ÿ”’
encode_codec ๐Ÿ”’
try_consume ๐Ÿ”’
Atomically subtracts want from atomic if at least want is available. Returns true on success.