-
Notifications
You must be signed in to change notification settings - Fork 1
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
Don't use cdn-us1 (Cloudflare + Backbaze) for the actual versions #87
Conversation
Cloudflare almost always have lowest ping, leaving no chance to other servers to server data for iOS users. Viktor reported some issues with Cloudflare from Argentina. "Let's see if us-west1 + us-east1 + uk1 + nl1 servers can handle America and Oceania.
servers = [SERVER.backblaze, SERVER.us_east1, SERVER.us_west1, SERVER.uk1, SERVER.nl1, SERVER.planet].filter( | ||
(server) => DATA_VERSIONS.slice(-server.dataVersions).includes(dataVersion), | ||
servers = [SERVER.us_east1, SERVER.us_west1, SERVER.uk1, SERVER.nl1, SERVER.planet].filter((server) => | ||
DATA_VERSIONS.slice(-server.dataVersions).includes(dataVersion), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIR, we had an archive of all map data versions on backblaze?
If I request an old data version, will get an empty list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
backblaze stays as an archive:
Lines 141 to 143 in ecc91e7
// Only fallback to the archive in the US if nothing was found closer. | |
if (servers.length == 0 && DATA_VERSIONS.slice(-SERVER.backblaze.dataVersions).includes(dataVersion)) { | |
servers = [SERVER.backblaze]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like that the same logic is needed for NA, SA, OC... I will take a look tomorrow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Нормально, посмотрим как будет. Очевидно что если клаудфлар тормозит в ЛАТАМ, он так же будет тормозить везде.
- клаудфлар дает самый быстрый пинг (очевидно)
- iOS загрузчик выбирает именно его и только
- потом он начинает качать из своих "каких-то там" нодов, что я вижу только тормоза
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vng не очевидно, что клаудфлар будет так же тормозить везде. У них много серверов в США и Канаде, там основные их клиенты. И никто ещё из США не жаловался на такие тормоза. Поэтому обрубание канала в США из-за проблем в Аргентине считаю не обоснованным, чрезмерным и рискованным шагом.
Cloudflare almost always have lowest ping, leaving no chance to other servers to server data for iOS users. Viktor reported some issues with Cloudflare from Argentina. "Let's see if us-west1 + us-east1 + uk1 + nl1 servers can handle America and Oceania.