Commit Graph

4024 Commits

Author SHA1 Message Date
Dhananjay Mahtha 90c48f20e0 Fix: Prevent cache memory leak by adding maxKeys limit and conditional caching
- Add maxKeys limit (10,000) to NodeCache to prevent unbounded memory growth
- Skip caching undefined values when GeoIP/ASN lookups fail (e.g., when MaxMind DB not configured)
- Add periodic cache statistics logging every 5 minutes for monitoring
- Fixes memory leak where cache would grow indefinitely with high request volumes

The maxKeys limit uses LRU eviction, so oldest entries are automatically removed
when the limit is reached. With ~10k requests/day and 5min TTL, 10k keys provides
ample headroom while preventing OOM issues.

Fixes #2120
2025-12-21 17:08:27 -05:00
Owen 9e68c6c004 Merge branch 'dev' of github.com:fosrl/pangolin into dev 2025-12-21 16:59:55 -05:00
Owen 130c890678 Merge branch 'main' into dev 2025-12-21 16:58:13 -05:00
Owen Schwartz 5e183911e1 Revert "Bump recharts from 2.15.4 to 3.5.1"
This reverts commit 9d9401d2ee.
2025-12-21 16:50:08 -05:00
miloschwartz 74479c984c update traefik config with new badger version 2025-12-21 16:48:50 -05:00
Owen 1d5d856799 Make extendedCompatibility on by default 2025-12-21 16:38:28 -05:00
Owen 8ea6b0cd9e Adjust algo for showing maintence page 2025-12-21 16:38:27 -05:00
miloschwartz 90d07f9794 use cammel case in cli args 2025-12-21 16:26:06 -05:00
miloschwartz e9a29e7db2 improvements to create private resource modal 2025-12-21 16:07:32 -05:00
miloschwartz b2df8eb72e add advanced toggle to sites and clients create 2025-12-21 16:02:09 -05:00
miloschwartz 3f81b88073 add advanced section to org create form 2025-12-21 15:56:57 -05:00
miloschwartz dedc13ab98 bump version 2025-12-21 15:45:12 -05:00
miloschwartz 2f8ecf17ed add postgres migration 2025-12-21 15:43:38 -05:00
miloschwartz 81149085fa add sqlite migration 2025-12-21 15:32:43 -05:00
miloschwartz 0aa56d441e fix scroll bar 2025-12-20 22:31:50 -05:00
miloschwartz 757b735d98 separate maintenance section 2025-12-20 22:29:22 -05:00
miloschwartz 4af7900dae auto focus 2fa 2025-12-20 22:06:53 -05:00
miloschwartz a3610b7dde add badger middleware to api and dashboard routes 2025-12-20 21:49:18 -05:00
Owen af4f85a081 Fix api call 2025-12-20 21:14:48 -05:00
Owen 6a5939599c Remove maintence mode internal vars and use server 2025-12-20 17:28:39 -05:00
Owen 51ef859349 Dont print env var; confusing user 2025-12-20 17:28:30 -05:00
Owen e477a5a1b5 Add ee install option 2025-12-20 17:28:07 -05:00
miloschwartz 4a98061a62 visual enhancements 2025-12-20 16:50:05 -05:00
Owen be20289140 Resolve some warnings 2025-12-20 16:38:03 -05:00
Owen 3ce0cc1992 Add missing semicolon 2025-12-20 16:35:16 -05:00
Owen a9a0fbe244 Merge UI into new screen 2025-12-20 16:35:16 -05:00
Owen 03d1f4bbb9 Update lock 2025-12-20 16:35:16 -05:00
Owen 9b3d066a91 Fix merge issues 2025-12-20 16:35:16 -05:00
miloschwartz ccd4f9b65c restyle maintenance mode screen 2025-12-20 16:35:16 -05:00
Owen d8344988c0 Restrict license 2025-12-20 16:35:16 -05:00
Owen bb5594ab2f Update form 2025-12-20 16:35:16 -05:00
Owen 19f8cda3d9 Make private 2025-12-20 16:35:16 -05:00
Pallavi Kumari d3c4688c0f redirect everything to maintenance page 2025-12-20 16:35:16 -05:00
Pallavi Kumari 2d92111f1d add to priv route 2025-12-20 16:35:16 -05:00
Owen b8ffc601d4 add backend API maintenance screen 2025-12-20 16:35:16 -05:00
Pallavi Kumari 8af95ea1ca Lazy-Load DB for maintenance-screen 2025-12-20 16:35:16 -05:00
Pallavi Kumari beddb0d187 Skip config fetch during build 2025-12-20 16:35:16 -05:00
Pallavi Kumari bd20bb0dd1 add logger 2025-12-20 16:35:16 -05:00
Owen 662e63317b add tooltip 2025-12-20 16:35:16 -05:00
Pallavi Kumari d82535d3e1 point the resource to the nextjs server for maintenance screen 2025-12-20 16:35:16 -05:00
Pallavi Kumari 1d862131dd remove maintenance mode from oss traefik config generator 2025-12-20 16:35:16 -05:00
Pallavi Kumari 150c51c9eb move settings into a new SettingsSection card 2025-12-20 16:35:16 -05:00
Owen 8618a5c2fd add en-Us strings 2025-12-20 16:35:16 -05:00
Pallavi Kumari 795302a351 refactor files and add func to private traefik config generator file 2025-12-20 16:35:16 -05:00
Pallavi Kumari 096a2bfa10 fix maintenance router name 2025-12-20 16:35:16 -05:00
Pallavi Kumari 188994ce84 add pg schema 2025-12-20 16:35:16 -05:00
Owen 800bdcb277 generate traefik config for maintenance ui 2025-12-20 16:35:16 -05:00
Pallavi Kumari c033fd4e8b backend for updating maintenance screen 2025-12-20 16:35:16 -05:00
Owen d2fa55dd11 ui to enable down for maintenance screen 2025-12-20 16:35:16 -05:00
Owen 7e047d9e34 db schema for maintenance 2025-12-20 16:35:16 -05:00