gather information about historical server performance #905
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#905
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
While patiently uploading some relatively small (3MB) files to the testgrid,
I found myself wishing for more specific information about how long each
server was taking to respond. Some part of me wanted to blame specific
servers for being slow, but I realize that my upstream bandwidth is limited,
and I'd like to compare the upload time of each segment against the minimum
possible upload time given my available bandwidth. So I want more information
about server performance.
The download staus web page (via "recent uploads and downloads") reports
per-server per-segment fetch response times as a big list of numbers. It's
possible to eyeball this and look for trends, for example in the following
download:
hk475awa
: 1.56s, 876ms, 714ms, 705ms, 545ms, 545ms, 539ms, 579ms, 392ms, 386ms, 377ms, 371ms, 372ms, 387ms, 555ms, 388ms, 373ms, 373ms, 372ms, 372ms, 370ms, 373ms, 370ms, 370mslwkv6cji
: 160ms, 103ms, 105ms, 106ms, 100ms, 119ms, 117ms, 105ms, 106ms, 109ms, 102ms, 107ms, 103ms, 1.02s, 91ms, 93ms, 90ms, 93ms, 90ms, 92ms, 89ms, 93ms, 89ms, 80ms2gn6njsm
: 763ms, 536ms, 520ms, 537ms, 537ms, 548ms, 537ms, 534ms, 527ms, 535ms, 528ms, 525ms, 628ms, 532ms, 541ms, 528ms, 530ms, 528ms, 534ms, 527ms, 528ms, 527ms, 529ms, 448msyou can tell that
lwkv6cji
was pretty quick, and that2gn6njsm
was 5-6x slower.
I'd like three improvements on this:
trends. Maybe segnum should be the X axis, reponse time is the Y axis,
serverid is color, and each sample should be drawn as a dot. Servers which
gave consistent service would show up as horizontal stripes. Common-mode
delays would appear as spikes.
involve storing some history about each server, maybe in a sqlite database
or something.
I've also been thinking about this in the context of a new Downloader (#287),
in which I want to sort potential servers according to their likely download
speeds (favoring fast servers, but experimenting with slower ones to spread
the load and learn about alternatives). Mainly I want the Downloader to be
able to tell the difference between a server that's running at normal speed,
one that's running unusually slowly, and one that's disconnected, and I think
historical data will help here.
Also, with historical data, we might be able to deduce each server's local
upload/download speed limits by looking for a minimum reponse time for
given-sized messages. We might use this to build up a list of download
servers with an aggregate bandwidth that matches our own download bandwidth
(exactly filling all the pipes), or to influence share placement during
upload.
Another challenge is that currently the only data we get is response time for
each request, which combines outbound request size (and contention for the
wire), server response turnaround time (i.e. CPU load, disk IO latency, etc),
and response size (and wire contention). In some ways, we want to be able to
distinguish between those components. In other ways, we really only care
about the sum.
But mainly, distinguishing between "slow" and "disconnected" may work better
if we had finer-grained information, like how many bytes have arrived at the
socket since the last complete message was received, and how long ago the
last byte arrived. Likewise, when sending data, it would be useful to know
that the transmit buffer still has pending data, and how long it's been since
the last socket write was allowed. This would help tell the difference
between a connection that is alive but only trickling data through slowly,
versus one that has been stopped for the last 10 seconds. With only coarser
per-message data (which, for 3-of-10 and 128KiB segments, means about 40kB
per message), it might be hard to confidently declare a disconnect within a
reasonable multiple of the expected reponse time.
I don't know exactly what sorts of data I'd want or how much of it to keep.
This ticket is to collect ideas on what to collect and what to do with it.
The first concrete improvement would be to record per-request response times
for upload just like we do for download. The second would be to graph them.