Skip to content

Commit

Permalink
UI: add "rocksdb.estimate-table-readers-mem" to graphs.
Browse files Browse the repository at this point in the history
This metric increases with the number of keys in rocksdb and can become
a sizeable chunk of the allocated memory (eg: ~50% of cgo memory in
the beta cluster)
  • Loading branch information
marc committed Jun 15, 2016
1 parent dfe2d0c commit 15bd139
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ui/embedded.go

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/next/app/containers/nodeGraphs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ export default class extends React.Component<RouteComponentProps<any, any>, {}>
<Metric name="cr.store.rocksdb.block.cache.usage" title="Block Cache" />
<Metric name="cr.store.rocksdb.block.cache.pinned-usage" title="Iterators" />
<Metric name="cr.store.rocksdb.memtable.total-size" title="Memtable" />
<Metric name="cr.store.rocksdb.table-readers-mem-estimate" title="Index" />
</Axis>
</LineGraph>

Expand Down
1 change: 1 addition & 0 deletions ui/next/app/containers/nodesGraphs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ export default class extends React.Component<{}, {}> {
<Metric name="cr.store.rocksdb.block.cache.usage" title="Block Cache" />
<Metric name="cr.store.rocksdb.block.cache.pinned-usage" title="Iterators" />
<Metric name="cr.store.rocksdb.memtable.total-size" title="Memtable" />
<Metric name="cr.store.rocksdb.table-readers-mem-estimate" title="Index" />
</Axis>
</LineGraph>

Expand Down
9 changes: 7 additions & 2 deletions ui/ts/pages/nodes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,9 @@ module AdminViews {
Metrics.Select.Avg(_storeMetric("rocksdb.block.cache.pinned-usage"))
.title("Iterators"),
Metrics.Select.Avg(_storeMetric("rocksdb.memtable.total-size"))
.title("Memtable")
.title("Memtable"),
Metrics.Select.Avg(_storeMetric("rocksdb.table-readers-mem-estimate"))
.title("Index")
).format(Utils.Format.Bytes).title("Engine Memory Usage")
);
this._addChart(
Expand Down Expand Up @@ -1008,7 +1010,10 @@ module AdminViews {
.title("Iterators"),
Metrics.Select.Avg(_storeMetric("rocksdb.memtable.total-size"))
.sources(this._storeIds)
.title("Memtable")
.title("Memtable"),
Metrics.Select.Avg(_storeMetric("rocksdb.table-readers-mem-estimate"))
.sources(this._storeIds)
.title("Index")
).format(Utils.Format.Bytes).title("Engine Memory Usage")
);
this._addChart(
Expand Down

0 comments on commit 15bd139

Please sign in to comment.