isodude / ceph-http-geo-redirect Goto Github PK
View Code? Open in Web Editor NEWA project that will redirect requests towards download.ceph.com towards their regional mirror.
License: GNU Lesser General Public License v3.0
A project that will redirect requests towards download.ceph.com towards their regional mirror.
License: GNU Lesser General Public License v3.0
With NL:
$ cat geoip.lst | cut -d ' ' -f 2 | sort | uniq -c
44794 AU
96496 CZ
2524 DE
1238369 EU
105465 FR
183683 HK
94546 SE
39532 UK
1250980 US
Without NL:
$ cat geoip.lst | cut -d ' ' -f 2 | sort | uniq -c
44794 AU
96496 CZ
1240893 DE
105465 FR
183683 HK
94546 SE
39532 UK
1250980 US
What I would like to see is NL taking a bit of DE instead of everything. Maybe introduce some sort of penalty when it's no balance between the mirrors?
I guess CN is taken care by the US mirror, so not much to do there.
The purpose of mirrors is to keep the data available for end users.
At the same time we don't want mirrors in the loop that are out of sync.
How does one handle that the rsync source is not available? It's even worse if rsync was firewalled, but not HTTP.
One idea comes to mind and that is to use the timestamps from all the other mirrors instead and pick the latest one. No mirror should be behind more than 6-12 hours from that server.
The docker files should just be a complement, not a requirement.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.