Advertisement
Guest User

Untitled

a guest
Jun 27th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 0 0
  1. 17:55:05] <vladikoff> hey hannosch, saipc forwarded your response. We can solve the latency problem by hosting ichnaea in the U.S.
  2. [17:55:20] <vladikoff> hannosch, for the first iteration we do not need fast response either
  3. [17:56:23] <vladikoff> hannosch, how hard is it to implement IP look up for Mozilla internal stuff only?
  4. [17:56:59] <hannosch> vladikoff: hosting ichnaea is overkill. you just need to put the maxmind db file on disk and use one of the many clients to read it. that's probably 10 lines of your code and a dependency
  5. [17:57:20] <telliott> apparently I was wrong and we've given up trying to centralize it!
  6. [17:57:47] <hannosch> and than you can decide to get city data out of it, instead of just a region code like "US" or "GB"
  7. [17:58:06] <vladikoff> hannosch, ichnaea does not have city data?
  8. [17:58:23] <saipc> hannosch: we do have one at mozilla/fxa-geodb, but vladikoff and I are concerned about robustness
  9. [17:58:25] <hannosch> it doesn't expose it as an API
  10. [18:00:00] <hannosch> there are plenty of clients available at http://dev.maxmind.com/geoip/geoip2/downloadable/ - I only know the Python one, but there are several for node.js. one of them ought to be good
  11. [18:00:25] <vladikoff> hannosch, IMHO pros of using your stuff (with IP lookup): it is already hosted, has metrics and ops looking at it, you also have overrides in place for some locations
  12. [18:00:37] <vladikoff> hannosch, one single db for all Mozilla stuff
  13. [18:01:05] <vladikoff> hannosch, and auto update already in place
  14. [18:01:40] <vladikoff> hannosch, if we make our own we have to: have ops keep looking at it, implement auto-update, implement override
  15. [18:02:16] <hannosch> well, for ichnaea, we only do update the db on each software rollout, so with it in maintenance mode, maybe once a month or less
  16. [18:02:54] <hannosch> it gets packaged up as a custom rpm and installed as an rpm dependency here. so there is no magic auto-update
  17. [18:03:08] <vladikoff> hannosch, i see
  18. [18:03:41] <saipc> vladikoff: what do u mean by override ?
  19. [18:03:48] <vladikoff> hannosch, what does Desktop use these days? Google?
  20. [18:04:35] <vladikoff> saipc, there are some locations that need to be corrected for legal reasons
  21. [18:05:03] <saipc> vladikoff: i see
  22. [18:05:11] <hannosch> vladikoff: depends on what you mean by desktop. there is a precise geolocation API which gets latitude/longitude responses. that uses a Google service. there is also search defaults which needs to the users country code to fetch the right search providers, that uses ichnaea
  23. [18:05:38] <hannosch> well, and we don't have any override in ichnaea either. we just pass through whatever we get from the db
  24. [18:06:12] <vladikoff> hannosch, ah okay, thanks for clarifying!
  25. [18:06:16] <hannosch> since maxmind offers a robust geoip service, we never looked at or invested in alternatives
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement