Comments (10)
- implement a retry strategy with an incremental back-off time in response to 426;
429
from arouteserver.
- add support for peeringdb-py
I'd be happy to help with that one! It would also be a good excuse to make the client use a local cache.
from arouteserver.
v1.15.1 is out, with a way to set the API key. Using authenticated API queries should reduce the impact of rate limiting.
This issue will remain opened until I’ll check how to implement bulk queries, which should lower the number of interactions between ARouteServer and the PeeringDB API.
from arouteserver.
I pushed some commits here to implement the bulk queries (150 ASNs being queried at once to get IRR info and max-prefix limits) and also to add the user-agent header.
The CI/CD pipeline is running for 1.16.0-alpha1, which includes these changes: once it will be completed, it will be possible to install and test out the pre-release following these instructions.
from arouteserver.
The (optional) environment variable SECRET_PEERINGDB_API_KEY
can now be used to set the API key to be used for PeeringDB API queries. This should mitigate the effects of the anonymous API throttling mechanism.
The CI/CD pipeline is running for 1.15.1-alpha1: once it will be completed, it will be possible to install and test out the pre-release following these instructions.
The new env var will be shipped as part of 1.15.1.
from arouteserver.
Other options:
implement a retry strategy with an incremental back-off time in response to 429;(done in 5461cdb)- add support for peeringdb-py
use bulk queries ((done in 3a2f827)asn__in=$list_of_ASN_separated_by_comma
)
from arouteserver.
A retry-on-failure with back-off has been added, and also a way to pass the API key using a local file at a well-known path.
The CI/CD pipeline is running for 1.15.1-alpha2, which includes these changes: once it will be completed, it will be possible to install and test out the pre-release following these instructions.
from arouteserver.
If not using peeringdb-py, also needed:
- Add a delay in between queries that is randomly between 2 and 2.5 seconds, to reduce thundering herd. This delay will mean arouteserver queries PeeringDB at most 30 hits per minute.
from arouteserver.
Another thing that would be great:
- Set User-Agent to include "arouteserver" and the current version number. Right now it just shows up as, for example,
python-requests/2.27.1
. Would be better if it wasarouteserver/x.y.z python-requests/a.b.c
.
from arouteserver.
v1.16.0 is out with the improvements mentioned above.
I’ll file another ticket to analyze a potential integration with peeringdb-py, or to check whether it’s possible to add support for it.
from arouteserver.
Related Issues (20)
- Jinja2 / markupsafe version missmatch leads to errors HOT 1
- Allow configuration of the PeeringDB URL
- Add support for peeringdb-py
- __init__() got an unexpected keyword argument 'allowed_methods' after upgrade to 1.16 HOT 9
- Remove RGNET from whois sources HOT 1
- as_macro not added to IX-F JSON if read from PeeringDB HOT 8
- Route-Servers with Peer Active to ASNs that were excluded
- Double "AS" in comment for ASN without IPv6 in ARIN HOT 1
- Deprecate ARIN-WHOIS data source HOT 5
- feature request: add anchors to route server policy textual representation, other minor issues HOT 2
- Add routeserver attribute to IX-F export HOT 5
- Add metadata to policy textual representation
- Max prefix limit exceed shutdown with auto recovery HOT 1
- ipv4 table entry in bird config HOT 3
- PeeringDB AS-set name format should not be used in AS-set IRR object export HOT 6
- Looking Glass Client Configuration HOT 1
- Issue in IPv4 prefix length verification for RFC8950 HOT 3
- Double "AS" in comment for ASN without prefixes in Registro.br
- BUG - AS-SET filters starting with RS and other characters are not processed HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arouteserver.