mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Use UN/LOCODE as location identity in storage node attributes #101
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#101
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @alexvanin on GitHub (Jan 14, 2021).
Originally assigned to: @cthulhu-rider on GitHub.
NeoFS storage nodes specify their location in node attributes. These attributes presented in the network map, so one can define placement policies with location attributes from there. However there are issues:
St. PetersburgorSaint Petersburg.To deal with these issues we can use UN/LOCODE as location attribute. LOCODEs are
XX XXXids, e.g.CN SGHfor Shanghai. They stored in a database maintained by UN in this format:Example
neofs-clihelper command?) to find proper LOCODE value.NEOFS_NODE_LOCODE=RU LED) and then starts it.AddPeermethod with storage node attribute/LOCODE:RU LED/Country:Russia/City:Saint PetersburgIssues
EuropeorAsia.@alexvanin commented on GitHub (Jan 21, 2021):
We can try to compute region based on country, however there can be inconsistency. In some databases Russia is
Asiaregion, in othersEurope. We can try to predict region more precisely based on latitude and longitude from LOCODE database, but this is not trivial.@realloc commented on GitHub (Jan 28, 2021):
It looks like we could import coordinates of Polygons representing parts of the worlds' boundaries from OSM and check if the coordinates from LOCODE are in those boundaries locally, without calls to OSM or other external service.