diodechain / diode_feedback

This is the place to Diode Drive users to give their feedback
3 stars 0 forks source link

Large file shares not reliable if network disrupted #97

Closed hansr closed 4 months ago

hansr commented 2 years ago

Environment: Testing on MacOS 10.15.4, Diode Drive 1.2.4+ (also present in earlier versions)

Description: Sharing large files via webpage is a key use case for Diode Drive. However, there are a few scenarios in which large files share/upload are not as reliable as they should be. See below for the different testing and scenarios.

Scenario 1 - Download and then "Pause Network" Status: FAIL Shared file: 100MB video Zone: 1 Team Member Test: Started download via Firefox. Once download started, clicked "Pause Network".
Outcome: File download immediately "Failed" Desired Outcome: File download stalls until network unpaused or switch to another member to continue download Notes: Pause network is not the central use case to design around, but is the easiest way to create a failure.

Scenario 2 - Download and then change WiFi network Status: FAIL Shared file: 100MB video Zone: 1 Team Member Test: Started download via Firefox. Once download started, changed to a new WiFi network. Outcome: File download immediately said "Paused", then switched to "Failed" after about 20 seconds Desired Outcome: File download stalls until new WiFi connectivity established or switch to another member to continue download Notes: Google Drive either does not notice when WiFi networks are changed, or, if the change is long enough (or if WiFi is turned off), the upload/download just goes into "Paused" mode and then automatically restarts as soon as connectivity is restored.

Scenario 3 - 3 Concurrent Downloads Status: PASS Shared file: 100MB video Zone: 1 Team Member Test: Started download via Firefox from a Mac, and via Chromium from 2 Raspberry Pis. Left all networks alone - didn't try to introduce any instability.
Outcome: File downloads all succeeded - they dropped from 300kB/s to ~90kB/s per download when all three were running. Desired Outcome: NA Notes: Could potentially introduce downloading from other team member if more than one download going on.

Scenario 4 - Large Upload to/from same network Status: PASS Shared file: 390MB video Zone: 1 Team Member Test: Uploaded via Firefox to the published share. Outcome: Succeeded - upload ran at ~216kB/s when Diode Drive share hosted on same computer/same network as upload, ~325kB/s when on different computers / different networks.
Desired Outcome: NA Notes: Both instances were in Asia. If change WiFi network on uploading computer (browser), upload page refreshes and must be restarted.

Scenario 5 - Large Upload to Asia based Zone from US browser Status: FAIL Shared file: 390MB video Zone: 1 Team Member Test: Uploaded via Firefox to the published share. Outcome: Upload remains at 0% for ~70 seconds, and then disappears with no warning, no information when the share link page is forcibly refreshed. Tried also with smaller files, same result.
Desired Outcome: NA Notes: Connected PC via hotspot, VPN'd to US exit node. Very possibly an issue with the VPN.

Scenario 6 - Large Upload to Europe Team Member from Asia browser Status: FAIL Shared file: 390MB video Zone: One with two members, but only one active member in EU (other member is in Asia, but turned off) Test: Uploaded via Firefox to the published share. Outcome: Failed on 3 attempts - each "made it" to 100%, but ultimately showed "Upload of 'testupload.mp4' failed" Desired Outcome: Success :-). Notes: ~160kB/s

hansr commented 4 months ago

Network disruptions now bridged with newer ddrive-gateway system.