iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 552 forks source link

Sync plugin - excessive Realtime API requests #290

Closed jonatkins closed 11 years ago

jonatkins commented 11 years ago

@Xelio Just looking at the Realtime API requests from the currently available test build

From 18 users so far:

Requests  % Requests  Methods
2.93k       95.84%    drive.files.list  
107          3.50%    drive.realtime.load   
20           0.65%    drive.files.insert    

drive.files.list seems particularly high in proportion to other requests.

It's two users who have contributed most of the usage too - approx 2000 requests from one user, 840 from another. The rest are below 35 requests each.

The per-country stats suggest the 2000 req user is in the US, and the 840 in China - but it's not possible to narrow it down further.

jonatkins commented 11 years ago

Fingers crossed that pull fixes things. Will have to wait a little while to see how the stats behave. I hope those particular users update their sync plugin soon.

Latest stats is that worst user has passed 12k requests, and there's five others that now stand out in the stats with excessive usage.

Xelio commented 11 years ago

https://github.com/jonatkins/ingress-intel-total-conversion/pull/293 I think some of the request come from conflict of old clientId, which the plugin can't access the file created by old clientId but keep retrying.

jonatkins commented 11 years ago

That sounds like an error you should be able to catch and use to disable syncing.

It could be worth including additional status information in the dialog - authorisation status, permission/other errors, sync status.

jonatkins commented 11 years ago

OK, seems to be good now - requests/day peaked at 25k, but now down to under 1k

Xelio commented 11 years ago

Good. Do you still have the Auth error?

jonatkins commented 11 years ago

@Xelio The 'auth' issue is odd - as far as I can tell it's something specific to my desktop Chrome installation.

On this browser, every time IITC is reloaded, the auth fails, but authorising it again will always succeed, and it remains fine until I reload the page again.

However, on Firefox, and on Chrome on a couple of other PCs, it's fine - works correctly after reloading the page or restarting the browser.

So not a general issue - happy to ignore it for now and we'll see if others report the same issue.