diff options
author | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2021-03-11 17:41:14 +0100 |
---|---|---|
committer | Tor Brede Vekterli <vekterli@verizonmedia.com> | 2021-03-12 14:40:35 +0100 |
commit | 0a78220415f590da91e4710d38c52c42a0f7572c (patch) | |
tree | c9e1a0aa1806c3fb62d2cbbf14a2a9fdcfec1056 /vespajlib | |
parent | cdf52990f001826004b52b39acf99647c7f7b0f7 (diff) |
Don't store full bundle objects in cluster state history
Bundles have a lot of sub-objects per state, so in systems with a
high amount of node entries, this adds unnecessary pressure on the
heap. Instead, store the string representations of the bundle and
the string representation of the diff to the previous state version
(if any). This is also inherently faster than computing the diffs
on-demand on every status page render.
Also remove mutable `official` field from `ClusterState`. Not worth
violating immutability of an object just to get some prettier (but
with high likelihood actually more confusing) status page rendering.
Diffstat (limited to 'vespajlib')
0 files changed, 0 insertions, 0 deletions