Skip to content

Commit 1791f85

Browse files
committed
Add a bit more
1 parent 4980978 commit 1791f85

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

content/en/docs/mimir/what-is-it/_index.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ to OS filesystem. Remote node on the other hand, needs to retrieve the content f
6262
In other words: every node is able to "locate", but local node is able to "store" local filesystem backed content, and
6363
system node is able to "store" `Entry` instances, usually originating from other `Node` instances.
6464

65+
One peculiarity of system nodes is that they can be "published" as well. Mimir supports two LAN publishers out of the
66+
box: `http` that uses Java built in HTTP server and `socket` that uses plain `ServerSocket`.
67+
6568
Most important Node implementations are (note: there are more, but they are usually aggregating nodes):
6669

6770
| Node name | LocalNode | SystemNode | RemoteNode | Description |
@@ -101,3 +104,16 @@ In case of CI usage, daemon is usually unwanted overhead, as usually there is **
101104
Mimir cache. In such cases, Mimir session can be configured to use other local node than `DaemonNode` is. In this case, a `~/.mimir/session.properties`
102105
with content of `mimir.session.localNode=<node name>` can be used, for example `file` (remember, `SystemNode` extends `LocalNode`).
103106

107+
## Mimir LAN cache sharing
108+
109+
It is currently implemented using JGroups cluster messaging. In short, when JGroups backed `RemoteNode` is asked for
110+
`URI`, a message is broadcasted in cluster. Receiving cluster nodes will respond do they have the wanted content or not.
111+
If one or more node has it, it will create once-usable "token", and access URI and send back as response. Finally, the
112+
originator will fetch the wanted content identified by "token" from the received URI from randomly chosen node that
113+
responded positively.
114+
115+
## Mimir WAN cache sharing
116+
117+
**Not implemented yet**
118+
119+
Most probably will use IPFS.

0 commit comments

Comments
 (0)