[feature] Pause WHOIS lookups when the GeoLite quota is exhausted
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 67/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- backend, networking
Direzione di ricerca
Find the GeoLite City WHOIS lookup code and its existing cache and Celery integration. Start by tracing how MaxMind errors, especially INSUFFICIENT_FUNDS (HTTP 402), are handled; check the relevant tests before changing behavior. Done means a shared six-hour cooldown skips service requests across organizations and workers, preserves existing WHOIS data, and allows lookups again after expiry.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
OpenWISP uses MaxMind's GeoLite City web service to retrieve WHOIS information for device IP addresses. When the daily query quota is exhausted, subsequent lookups continue to request data from MaxMind even though those requests cannot succeed.
Describe the solution you'd like
When MaxMind reports that the GeoLite query quota is exhausted, store a cooldown marker in the cache for six hours. While the marker exists, skip further requests to the service. Once it expires, allow lookups to try again. If the quota is still exhausted, start another six-hour cooldown.
The cooldown should apply across organizations and Celery workers using the same MaxMind account. Existing WHOIS information should remain available during the cooldown.
Describe alternatives you've considered
MaxMind's documentation describes a daily query limit but does not specify an exact reset time. A fixed six-hour cooldown avoids assuming that the quota resets at midnight UTC.
Retrying skipped tasks after the cooldown could recover lookups without waiting for another device event. That approach needs further investigation because Celery warns about long-delayed tasks with Redis brokers.
Additional context
MaxMind documents a limit of 1,000 GeoLite web-service lookups per day per service. For GeoLite City, INSUFFICIENT_FUNDS (HTTP 402) indicates that the account has reached its daily query limit.
- Lingua principale
- Python
- Stelle
- 794
- Fork
- 339
- Merge medio
- 10h 24m
- PR unite (30g)
- 33
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di openwisp/openwisp-controller
-
[bug] DeviceListFilterBackend drops additional query filters when config__templates is providedApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
openwisp/openwisp-controller#1544 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[fix] Recent Commands row uses "created" timestamp for the "Modified" fieldForse già presa @xovishnukosuri l’ha presa 237 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
openwisp/openwisp-controller#1263 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
openwisp/openwisp-controller#1524 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[feature] Emit a signal when a device operating system changesForse di nuovo libera @Vara715 l’ha presa 21 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
Difficoltà 3/5 Mezza giornata Idoneità per principianti 65/100
openwisp/openwisp-controller#1506 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
[feature] Add board_name field to Device model for DTB board identificationForse di nuovo libera @atif09 l’ha presa 49 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement gsoc
openwisp/openwisp-controller#1491 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di openwisp/openwisp-controller
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
FinanceFlash/unvibecode#577 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area/test type/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Clodmony/starship-coop#70 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
punitarani/fli#270 ·
-
🐛 Bug 🔔 Pending processing
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
jumpserver/jumpserver#17980 ·
I maintainer di solito rispondono entro 1 giorno
-
community enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
I maintainer di solito rispondono entro 1 giorno