Long delay on loading external storage

I have some cross-country storage setup (EU → US) with two nextcloud instances.

Page load times are fairly frustrating (in the span of 2-10 seconds) but actual file transfers are good and fast.

“Check for changes” is disabled on the storage.

My question: With check for changes disabled, shouldn’t it just be loading directly from the local database without querying the remote server on page load? The pages should load instantly, correct?

In theory yes. But I am not sure, if at the first connection, it checks first if the storage is available.

Sometimes it can be worth monitoring your system, it can be stuff like DNS resolution that is delayed … Is there a longer delay for other connections as well, e.g. if you initiate a ssh connection from one server to the other?

I tried modifying the /etc/hosts file to point directly to the IP for the domain and it did not help.

I will check the logs to see if there is anything showing up, but is this expected behavior for nextcloud?

The latency between the US and Germany is 150ms, so I’d expect longer page loads. But if it should be querying the local database for files with check for changes disabled this seems like a bug to me.

I’ll submit an issue on github if its not intended behavior.

yes, but that shouldn’t explain the 10s it sometimes takes.

If you access, perhaps you can monitor the traffic on your server in real time, see if it is waiting for something from the network, or if that is some internal stuff. And/or check on the remote server, when the first query arrives.

In theory it is best, if your external storage is located nearby with a fast connection.