Commit Graph

  • a9b68608c6 Serve the /api/v1/stats prefix distribution from memory (closes #30) next clawbot 2026-10-03 18:43:58 +02:00
  • 44a5f4cdca Create new databases with auto_vacuum incremental (closes #43) clawbot 2026-10-03 17:09:29 +02:00
  • 32704c601e Look up IP addresses by prefix at each mask length (closes #48) clawbot 2026-10-03 16:04:38 +02:00
  • 7322f936e4 Stamp the git tag or short commit in a plain docker build (closes #46) clawbot 2026-10-02 08:17:35 +02:00
  • 6422d9fa0c Container makes its data directory usable itself (closes #42) clawbot 2026-09-29 12:23:42 +02:00
  • 057e0bd9a9 Add a .dockerignore (closes #39) clawbot 2026-09-29 07:42:20 +02:00
  • 87a3bc115e README: license and author up front; bring TODO.md up to date (closes #38) clawbot 2026-09-29 07:06:30 +02:00
  • d28a59023a Add MIT LICENSE (closes #1) clawbot 2026-09-29 05:05:35 +02:00
  • 1ac24669d3 Stop the streamer without sending on closed queues (closes #34) clawbot 2026-09-28 21:42:33 +02:00
  • 6187ac8503 Let the daemon receive docker stop's signal itself (closes #33) clawbot 2026-09-28 21:08:33 +02:00
  • f2a9e90625 Refuse invalid settings at start, health check follows PORT (closes #31) clawbot 2026-09-28 20:08:42 +02:00
  • df9e23d503 Serve /api/v1/stats counts from realtime in-memory counters (closes #27) clawbot 2026-09-22 09:41:16 +02:00
  • cd59cb8a8d Serve /api/v1/stats from a cache and index-scan the route timestamps (closes #27) issue-27-cached-stats sneak 2026-09-21 23:28:28 +00:00
  • 3898daad4e Add _txlock=immediate so batch writes wait instead of dropping (closes #25) clawbot 2026-09-21 20:12:33 +02:00
  • 08f060045b Cap glibc malloc arenas to keep non-Go RSS bounded (closes #23) clawbot 2026-09-21 19:29:31 +02:00
  • 658aadbb81 Set GOMEMLIMIT in the image and document the memory budget (closes #13) clawbot 2026-09-21 17:29:29 +02:00
  • efaf79c4e3 Shrink the four handler queues from 100,000 to 20,000 (closes #11) clawbot 2026-09-21 16:29:39 +02:00
  • 63d62b7bc1 Fix two goroutine leaks: stats handlers on timeout, streamer tickers on reconnect (closes #12) clawbot 2026-09-21 16:29:32 +02:00
  • cb2374f033 Stop decoding unused Community and Raw fields of RIS messages (closes #9) clawbot 2026-09-21 16:12:41 +02:00
  • 6d8ae7f592 Add .editorconfig and Gitea CI workflow (closes #14) clawbot 2026-09-21 16:01:14 +02:00
  • 211fdad9c0 Bound peering AS-path map and swap it instead of copying (closes #10) clawbot 2026-09-21 16:01:08 +02:00
  • 594e7a504b Bound SQLite memory across the whole connection pool (closes #8) clawbot 2026-09-21 15:46:34 +02:00
  • 54014c88c8 Run make check inside the Docker build with a pinned lint stage (closes #5) clawbot 2026-09-21 09:35:16 +02:00
  • b0cd884019 Skip live network feed test under -short for deterministic make check (closes #2) clawbot 2026-09-21 09:05:33 +02:00
  • ddf0b2fa99 Refresh vendored REPO_POLICIES.md main prod sneak 2026-07-07 01:53:25 +02:00
  • 583c16a65c Adopt scripts-to-rule-them-all: script/ entrypoints, Makefile shims sneak 2026-07-07 00:19:23 +02:00
  • 0747165ab1 Add standard Workflow section to TODO.md sneak 2026-07-06 21:06:41 +02:00
  • b144e1515b Add TODO.md sneak 2026-07-06 20:35:48 +02:00
  • 68cc06690b Use TRUNCATE mode for WAL checkpoints sneak 2026-01-01 06:49:58 -08:00
  • 4f62b280c5 Reduce WAL checkpoint interval from 30s to 5s sneak 2026-01-01 06:48:58 -08:00
  • f1d7c21478 Run WAL checkpoint on startup with logging sneak 2026-01-01 06:38:15 -08:00
  • a163449a28 Improve request logging and make health check lightweight sneak 2026-01-01 06:06:20 -08:00
  • 8f524485f7 Add periodic WAL checkpointing to fix slow queries sneak 2026-01-01 05:42:03 -08:00
  • c6fa2b0fbd Fix container to run app as routewatch user sneak 2025-12-31 16:17:59 -08:00
  • f788a0dbf9 set state dir properly in container sneak 2025-12-31 15:58:35 -08:00
  • aebdd1b23e Add oldest and newest route timestamps to status page sneak 2025-12-31 15:47:57 -08:00
  • 8fc10ae98d Fix NULL handling in GetWHOISStats query sneak 2025-12-31 15:17:09 -08:00
  • d27536812f Remove heading from status page sneak 2025-12-31 15:11:03 -08:00
  • 58b5333c6c Fix navbar and simplify templates sneak 2025-12-31 15:10:24 -08:00
  • 4284e923a6 Add navbar and home page with search functionality sneak 2025-12-31 14:56:02 -08:00
  • 45810e3fc8 Fix prefix URL routing for encoded CIDR notation sneak 2026-01-01 05:37:12 +07:00
  • 27909e021f ci sneak 2025-12-31 06:14:44 +01:00
  • c116b035bd Add status page enhancements with new metrics and footer sneak 2025-12-30 14:50:54 +07:00
  • 1115954827 Fix prefix URL routing to handle CIDR notation with slashes sneak 2025-12-30 14:41:57 +07:00
  • 9043cf9bc0 Add connection duration and reconnect count to status page sneak 2025-12-30 14:33:37 +07:00
  • 3a9ec98d5c Add structured HTTP request logging and increase timeouts sneak 2025-12-30 13:37:54 +07:00
  • 0ae89c33db Fix Dockerfile: vendor dependencies after copying source sneak 2025-12-30 13:16:35 +07:00
  • 8e79b8c074 Add Dockerfile with multi-stage build and source archive sneak 2025-12-29 16:07:11 +07:00
  • 5d7358fce6 Clean up auto_vacuum comment for fresh database deployment sneak 2025-12-29 16:02:27 +07:00
  • d7e6f46320 Switch to incremental vacuum for non-blocking space reclamation sneak 2025-12-29 16:00:33 +07:00
  • da6d605e4d Add production hardening: health check, streamer panic fix, db maintenance sneak 2025-12-29 15:55:54 +07:00
  • d2041a5a55 Add WHOIS stats to status page with adaptive fetcher improvements sneak 2025-12-27 16:20:09 +07:00
  • f8b7d3b773 Unify IP lookup response structure and add PTR lookups sneak 2025-12-27 15:56:10 +07:00
  • cb75409647 Add hostname resolution support to IP lookup endpoint sneak 2025-12-27 15:53:14 +07:00
  • 8eaf4e5f4b Add adaptive rate limiting to ASN WHOIS fetcher sneak 2025-12-27 15:51:06 +07:00
  • 3b159454eb Add IP information API with background WHOIS fetcher sneak 2025-12-27 15:47:35 +07:00
  • 7e4dc528bd Display wire bytes on status page instead of decompressed bytes sneak 2025-12-27 12:59:50 +07:00
  • ab392d874c Track wire bytes separately from decompressed stream bytes sneak 2025-12-27 12:56:57 +07:00
  • 95bbb655ab Add godoc documentation and README with code structure sneak 2025-12-27 12:30:46 +07:00
  • 23dcdd800b Improve godoc documentation for PeeringHandler sneak 2025-12-27 12:26:07 +07:00
  • c292fef0ac Add comprehensive godoc documentation to handler.go sneak 2025-12-27 12:24:36 +07:00
  • e1d0ab5ea6 Add detailed godoc documentation to CLIEntry function sneak 2025-12-27 12:24:22 +07:00
  • 8323a95be9 latest sneak 2025-12-27 12:19:20 +07:00
  • 2f96141e48 Fix IPv6 prefix length links to use separate /prefixlength6/<len> route sneak 2025-08-09 11:37:14 +02:00
  • 1ec0b3e7ca Change stats fetch interval from 500ms to 2 seconds sneak 2025-07-29 04:22:06 +02:00
  • 037bbfb813 Reduce slow query threshold from 50ms to 25ms sneak 2025-07-29 04:20:43 +02:00
  • 1fded42651 Quadruple all HTTP timeouts to prevent timeout errors sneak 2025-07-29 04:18:07 +02:00
  • 3338e92785 Add JSON validation middleware to ensure valid API responses sneak 2025-07-29 04:13:01 +02:00
  • 7aec01c499 Add AS peers display to AS detail page sneak 2025-07-29 03:58:09 +02:00
  • deeedae180 Fix template references to renamed ASN fields sneak 2025-07-29 03:37:07 +02:00
  • d3966f2320 Fix SQL query to use renamed asn column sneak 2025-07-29 02:52:47 +02:00
  • 23127b86e9 Add queue high water marks to handler statistics sneak 2025-07-29 02:46:53 +02:00
  • 2cfca78464 Reduce peering processing interval from 2 minutes to 30 seconds sneak 2025-07-28 23:05:58 +02:00
  • c9da20e630 Major schema refactoring: simplify ASN and prefix tracking sneak 2025-07-28 22:58:55 +02:00
  • a165ecf759 Fix prefix stats by counting from live routes tables sneak 2025-07-28 22:44:44 +02:00
  • 725d04ffa8 Split prefixes table into prefixes_v4 and prefixes_v6 sneak 2025-07-28 22:41:42 +02:00
  • fc32090483 Fix JavaScript UI and complete database table migration sneak 2025-07-28 22:39:01 +02:00
  • 3673264552 Separate IPv4 and IPv6 routes into different tables sneak 2025-07-28 22:29:15 +02:00
  • 8e12c07396 Implement queue backpressure with gradual message dropping sneak 2025-07-28 22:17:00 +02:00
  • b6ad50f23f Add warnings about schema changes and remove ad-hoc index creation sneak 2025-07-28 22:09:19 +02:00
  • c35b76deb8 Optimize AS detail queries and increase PrefixHandler batch size sneak 2025-07-28 22:07:27 +02:00
  • 6d46bbad5b Fix nil pointer dereference in GetPrefixDistributionContext sneak 2025-07-28 22:04:22 +02:00
  • 9518519208 Fix prefix links on prefix length page with URL encoding sneak 2025-07-28 22:00:27 +02:00
  • 7d39bd18bc Fix concurrent map write panic in timeout middleware sneak 2025-07-28 21:54:58 +02:00
  • e0a4c8642e Add context cancellation support to database operations sneak 2025-07-28 19:27:55 +02:00
  • 0196251906 Fix race condition crash in timeout middleware sneak 2025-07-28 19:07:30 +02:00
  • 62ed5e08aa Improve prefix count link styling on status page sneak 2025-07-28 19:05:45 +02:00
  • 5fb3fc0381 Fix prefix length page to show unique prefixes only sneak 2025-07-28 19:04:19 +02:00
  • 9a63553f8d Add index to optimize COUNT(DISTINCT prefix) queries sneak 2025-07-28 19:01:45 +02:00
  • ba13c76c53 Fix prefix distribution bug and add prefix length pages sneak 2025-07-28 18:42:38 +02:00
  • 1dcde74a90 Update AS path display to show handles with clickable links sneak 2025-07-28 18:31:35 +02:00
  • 81267431f7 Increase batch sizes to improve write throughput sneak 2025-07-28 18:27:42 +02:00
  • dc3ceb8d94 Show AS descriptions in AS path on prefix detail page sneak 2025-07-28 18:25:26 +02:00
  • a78e5c6e92 Add log.txt to .gitignore sneak 2025-07-28 18:13:07 +02:00
  • 9ef2a22db3 Remove SQLite pragmas that set default values sneak 2025-07-28 18:12:25 +02:00
  • 05805b8847 Optimize SQLite settings for better balance sneak 2025-07-28 18:06:31 +02:00
  • ddb3cfa4f0 Add mutex to serialize database access sneak 2025-07-28 17:56:26 +02:00
  • 3ef60459b2 Fix SQLite transaction deadlocks with immediate mode sneak 2025-07-28 17:26:42 +02:00
  • 40d7f0185b Optimize database batch operations with prepared statements sneak 2025-07-28 17:21:40 +02:00
  • b9b0792df9 Fix shutdown handling and optimize SQLite settings sneak 2025-07-28 16:52:52 +02:00