Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use 1 second data points #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Use 1 second data points
- Previously 10 second data points were used.
- This commit also sets smoothing and wantlist scaling to work well with the
  new interval.
Ape committed Jan 10, 2016
commit 893fa59aa642b06be60af729ddc6d43cbd1527c1
4 changes: 2 additions & 2 deletions ipfs-collect
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ rrd_file=ipfs.rrd
data_file=data

if ! [ -e "$rrd_file" ]; then
rrdtool create "$rrd_file" -s 10 --no-overwrite \
rrdtool create "$rrd_file" -s 1 --no-overwrite \
DS:data_in:DERIVE:10:0:U \
DS:bw_total_in:DERIVE:10:0:U \
DS:bw_total_out:DERIVE:10:0:U \
@@ -18,7 +18,7 @@ if ! [ -e "$rrd_file" ]; then
RRA:LAST:0.5:1:8640
fi

while printf '\n'; sleep 5; do :; done | while read l; do
while printf '\n'; sleep 0.5; do :; done | while read l; do
data_in=U
bw_total_in=U
bw_total_out=U
4 changes: 2 additions & 2 deletions ipfs-graph
Original file line number Diff line number Diff line change
@@ -3,8 +3,8 @@ set -eu

rrd_file=ipfs.rrd
graph_file=ipfs.png
smoothing=120
wantlist_scale=0.001
smoothing=0
wantlist_scale=0.00002

rrdtool graph "$graph_file" -e now -s 'end-2h' -w 800 -h 400 -a PNG -E -Y \
--vertical-label "B/s" \