Skip to main content

Module bounded_map

Module bounded_map 

Source
Expand description

The tokens of the streaming sessions which wait for their clients, bounded in age and number.

Structsยง

BoundedMap ๐Ÿ”’
A map bounded by element age and maximum amount of items. Elements only get inserted and taken. A full map takes no more elements until one of them got taken or expired, a valid element never gets dropped for a new one. Clients take their element right after it got inserted, the map holds few of them and a linear search is quick enough.

Constantsยง

DEFAULT_CAPACITY ๐Ÿ”’
The most elements of a map, like the most streaming requests in flight of the kubelet and CRI-O. An element only holds what its client needs to start, a low limit would let clients which do not come fail the others until the elements expire.
MAX_AGE ๐Ÿ”’
How long an element waits for its client by default. A client connects right after it got the URL, the kubelet keeps its streaming requests for a minute as well.