borgbackup / borgstore

experimental storage backend
Other
7 stars 3 forks source link

idea: add a latency / bandwidth emulator option #24

Closed ThomasWaldmann closed 1 month ago

ThomasWaldmann commented 1 month ago

it's always a bit tricky to estimate or test performance of remote backends:

idea:

we could add some options to the posixfs backend:

ThomasWaldmann commented 1 month ago

Related: guess a collection of typical latency/bandwidth values for misc. internet connections would be interesting.

ThomasWaldmann commented 1 month ago

Initially I thought about adding this to posixfs backend, but I guess it is simpler and more versatile to add it to Store higher level API.

When using it, one would usually use the store with a posixfs backend, so that one can assume that the posixfs latency is negligible and the bandwidth is very high, so both can be ignored and that primarily the configured latency and bandwidth values determine the timing.

That way, it could be also used with other backends like sftp (or any future backend), to make them slower. E.g. to simulate an internet sftp server while actually using a LAN or localhost sftp server.