mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-03-30 18:15:47 +00:00
- PacketStore loads all packets into memory on startup (~11MB for 27K packets) - Indexed by id, hash, observer, and node pubkey for fast lookups - /api/packets, /api/packets/timestamps, /api/packets/:id all served from RAM - MQTT ingest writes to both RAM + SQLite - Configurable maxMemoryMB (default 1024MB) in config.json packetStore section - groupByHash queries computed in-memory - Packet store stats exposed in /api/perf - Expected: /api/packets goes from 77ms to <1ms
52 lines
1.5 KiB
JSON
52 lines
1.5 KiB
JSON
{
|
|
"port": 3000,
|
|
"mqtt": {
|
|
"broker": "mqtt://localhost:1883",
|
|
"topic": "meshcore/+/+/packets"
|
|
},
|
|
"channelKeys": {
|
|
"public": "8b3387e9c5cdea6ac9e5edbaa115cd72",
|
|
"#test": "9cd8fcf22a47333b591d96a2b848b73f",
|
|
"#sf": "a32c1fcfda0def959c305e4cd803def1",
|
|
"#wardrive": "4076c315c1ef385fa93f066027320fe5",
|
|
"#yo": "51f93a1e79f96333fe5d0c8eb3bed7c3",
|
|
"#bot": "eb50a1bcb3e4e5d7bf69a57c9dada211",
|
|
"#queer": "5754476f162d93bbee3de0efba136860",
|
|
"#bookclub": "b803ab3fbb867737ab5b7d32914d7e67",
|
|
"#shtf": "9321638017bd7f42ca4468726cd06893"
|
|
},
|
|
"defaultRegion": "SJC",
|
|
"regions": {
|
|
"SJC": "San Jose, US",
|
|
"SFO": "San Francisco, US",
|
|
"OAK": "Oakland, US",
|
|
"MRY": "Monterey, US",
|
|
"LAR": "Los Angeles, US"
|
|
},
|
|
"cacheTTL": {
|
|
"stats": 10,
|
|
"nodeDetail": 300,
|
|
"nodeHealth": 300,
|
|
"nodeList": 90,
|
|
"bulkHealth": 600,
|
|
"networkStatus": 600,
|
|
"observers": 300,
|
|
"channels": 15,
|
|
"channelMessages": 10,
|
|
"analyticsRF": 1800,
|
|
"analyticsTopology": 1800,
|
|
"analyticsChannels": 1800,
|
|
"analyticsHashSizes": 3600,
|
|
"analyticsSubpaths": 3600,
|
|
"analyticsSubpathDetail": 3600,
|
|
"nodeAnalytics": 60,
|
|
"nodeSearch": 10,
|
|
"invalidationDebounce": 30,
|
|
"_comment": "All values in seconds. Server uses these directly. Client fetches via /api/config/cache."
|
|
},
|
|
"packetStore": {
|
|
"maxMemoryMB": 1024,
|
|
"estimatedPacketBytes": 450,
|
|
"_comment": "In-memory packet store. maxMemoryMB caps RAM usage. All packets loaded on startup, served from RAM."
|
|
}
|
|
} |