Skip to main content

Module memory

Module memory 

Source
Expand description

memory.global.put, memory.global.remove and memory.global.list: one Global Memory for the fleet (task #12439, section 4.6). The rules for which write wins and what is never touched are in backend::memory::fleet; these are the thin handlers the transport calls.

A write is attributed to the remote agent as slug@machine, never to the operator, and with no uid: the callerโ€™s uid is signed but not tied to its key, so it describes and never proves.

Constantsยง

MAX_PUT_PARAMS ๐Ÿ”’
The most params bytes memory.global.put takes: the 1 MiB an entryโ€™s text may be, plus its JSON escaping and the other fields.

Functionsยง

list ๐Ÿ”’
What this machine holds for the fleet, without any text: the ids, when each was written, a hash of its content and whether it was removed, so the caller can tell what to send.
parse ๐Ÿ”’
put ๐Ÿ”’
remove ๐Ÿ”’
write ๐Ÿ”’
Run a store write off the async threads and tell the Memory pane when it changed something.