Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions docs/features/irrdb.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,3 +155,17 @@ bgpq3 -S RIPE -l pl -j -m 24 AS-BTIRE
bgpq3 -S RIPE -l pl -j -m 48 -6 AS-BTIRE
```


## Optional background updates

Manual IRRDB updates can run outside the HTTP request without changing the application's default queue connection. Set `IRRDB_QUEUE_CONNECTION=irrdb`, run database migrations, and rebuild cached configuration. Supervise a worker as the web application user:

```
php artisan queue:work irrdb --queue=irrdb --sleep=2 --tries=1 --timeout=1500 --memory=768 --max-time=3600
```

The dedicated connection uses the `irrdb_jobs` table and a retry interval of 1800 seconds. Keep worker timeout below the retry interval. Restart workers after deploying changes. A persistent cache supporting atomic locks is required; configure the same cache for web, worker, and scheduled IRRDB imports.

Leaving the environment variable unset preserves existing queue selection. Pagination, batched writes, and writer serialization apply independently. Listing search matches the start of a prefix or ASN. Change previews are limited to 50 entries with exact totals retained. Failed imports roll back their transaction and leave previously committed records available.

The worker must be supervised and monitored: jobs cannot complete while it is stopped. This feature does not reload route-server configurations or restart BGP sessions.