-
Notifications
You must be signed in to change notification settings - Fork 49
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
Let mirrors specify multiple countries #268
base: master
Are you sure you want to change the base?
Conversation
fedora-infra#267 requests the ability for a mirror (really, a globally load balanced set of mirrors behind a single DNS name) to be able to specify the countries of their actual mirrors. This patch lets Host.country be a comma-separated list of countries. Signed-off-by: Matt Domsch <[email protected]>
6e00f98
to
106eaf6
Compare
I think this is a useful feature, in particular for smaller countries and for people who live in a border region. Several use cases in Europe come to mind. However, I think it would be preferred in the relational model to make the country column a table instead of a comma separated string. Only smaller changes would be required for it to add a model definition and migration the current data. @mdomsch What do you think about this idea? And are you still interested in this pull request? If not, I would try to adopt it. |
I'm not directly involved in mirrormanager maintenance anymore. The current maintainers would be in a better position to comment as to the direction they want to see here (if any). |
861f200
to
d9d0078
Compare
@abompard I would volunteer to update this pull request. Can you briefly comment on how you would like the database schema to be for multiple countries, so that I can work in the right direction? As mentioned, I would suggest a separate n:m relation between hosts and countries. |
Hey! It looks like hosts and countries are already linked by a relationship table: HostCountry. So, hosts can already have multiple countries. Am I missing something? (I only did maintenance on the code a few months ago, I'm not aware of all use cases). |
Ah, I see, there's a confusion between |
I'm not sure whether I understand the original intent of the data model but I think there is a bigger mismatch between the data model and its usage: I agree that the form seems to be intended to add entries to In addition this pull request points out and tries to address defect that the In addition, there might be anycast, DNS load balancing or Geo DNS mirror servers which are located in multiple countries as the description of this pull request points out. So the |
ead4faf
to
df37cb1
Compare
#267
requests the ability for a mirror (really, a globally load balanced
set of mirrors behind a single DNS name) to be able to specify the
countries of their actual mirrors.
This patch lets Host.country be a comma-separated list of countries.