63 Commits

Author SHA1 Message Date
Luke Berndt
6825aaf9a4 Reduce backend per-upload CPU to relieve upload timeouts
The Node main thread was saturated at about 39 uploads/s, overflowing the
listen queue so uploads timed out connecting from nginx.

- Enable keepAlive on the S3 agent; every upload did a full TLS handshake
- Remove OpenTelemetry tracing
- Cache the system key lookup for 60s
- Use lean queries when listing calls
- Serialize each call once in notify_clients, not per recipient
- Add an nginx upstream keepalive pool, and hold Node's keepAliveTimeout
  above it so nginx never reuses a connection Node has closed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:06:48 -05:00
Luke Berndt
c0492ebf53 Guard against missing x-forwarded-for on socket connect
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 18:05:18 -05:00
Luke Berndt
d49326c606 Update index.js 2026-02-22 17:01:14 -05:00
Luke Berndt
5ee9f8d63d fixed 2026-02-22 16:59:36 -05:00
Luke Berndt
245fb74bf3 scraper detection for CORS 2026-02-22 16:43:00 -05:00
Luke Berndt
29653b3e4f Update index.js 2026-02-22 16:16:44 -05:00
Luke Berndt
70e1c155ce add system status 2025-02-06 21:19:23 -05:00
Luke Berndt
3d08ee65d4 tested 2025-01-03 11:10:11 -05:00
Luke Berndt
431e916fd1 firehoes 2025-01-03 09:35:27 -05:00
Luke Berndt
a1c3929fb9 fixes for account, admin 2024-09-14 09:54:19 -04:00
Luke Berndt
3117750b10 more connections 2024-09-13 14:14:30 -04:00
Luke Berndt
686069981f pool size 2024-09-12 21:35:17 -04:00
Luke Berndt
7d4be4bc49 more connections 2024-09-12 21:31:48 -04:00
Luke Berndt
2cbc6929e8 add upload server 2024-09-08 09:57:44 -04:00
Luke Berndt
f330feff8e client count 2024-09-02 22:25:02 -04:00
Luke Berndt
0683b93e0c new graph on main page 2024-09-02 21:57:56 -04:00
Luke Berndt
79d0297f7c trying out cursor 2024-09-01 17:21:02 -04:00
Luke Berndt
1fc14d74a3 it crashes! 2024-08-21 22:12:12 -04:00
Luke Berndt
2815061daf back to honeycomb tracing and high sample 2024-08-21 22:10:15 -04:00
Luke Berndt
fc77bd2934 upgrading telem 2024-08-21 10:43:39 -04:00
Luke Berndt
e3e14a229a ability to use a different public URL for S3 2024-08-19 17:09:09 -04:00
Luke Berndt
e502144d5f honeycomb tracing 2024-02-03 06:58:53 -05:00
tadscottsmith
05d9c6f83e Add system authorization check function. 2023-11-15 20:23:27 -06:00
Luke Berndt
b792843be7 small fix 2023-11-10 21:24:16 -05:00
Luke Berndt
b7301aa160 protect against some crashes 2023-11-10 08:21:02 -05:00
Luke Berndt
16141906f7 add contact and better initial call support 2023-07-17 15:12:54 -04:00
Luke Berndt
3a7ec72aab Add support for sending messages 2023-06-25 09:59:48 -04:00
Luke Berndt
545209f768 Cleaning! 2023-06-07 22:09:27 -04:00
Luke Berndt
429e667186 improved scheduling 2023-05-18 09:39:32 -04:00
Luke Berndt
e052aff634 regular cleanups 2023-05-16 21:01:55 -04:00
Luke Berndt
635a7c469c turn on stats 2023-04-13 09:26:34 -04:00
Luke Berndt
3f8eaad47f very simple get calls 2023-04-11 21:54:26 -04:00
Luke Berndt
0bdca1cdb5 different Loop style 2023-04-11 21:35:28 -04:00
Luke Berndt
3b7aab32fd fewer routes 2023-04-11 20:51:39 -04:00
Luke Berndt
dc1b190b5f trying an earlier version 2023-04-11 20:20:30 -04:00
Luke Berndt
60944e4d4f Ready to go 2023-04-11 15:54:32 -04:00
Luke Berndt
e44c2b6e41 ready to rock 2023-04-11 09:38:32 -04:00
Luke Berndt
bf6aef908b no socketio 2023-04-11 09:18:08 -04:00
Luke Berndt
af7a794337 lets just not set this 2023-04-11 09:09:23 -04:00
Luke Berndt
b4b8ca6a15 bad logging output 2023-04-11 09:08:15 -04:00
Luke Berndt
aafe97c710 fixed one bug 2023-04-11 08:26:37 -04:00
Luke Berndt
6fbd97bbb6 switched everything over to Mongoose 2023-04-10 22:51:57 -04:00
Luke Berndt
0062c404bf last try 2023-04-10 15:56:54 -04:00
Luke Berndt
4de89c9ac2 catching more errors 2023-04-10 15:53:24 -04:00
Luke Berndt
fd779e91da Everything looks like it is workings with the upgraded backend 2023-04-09 22:39:00 -04:00
Luke Berndt
6ae3f25215 upgraded most of the Backend 2023-04-08 12:57:12 -04:00
Luke Berndt
70cd2cd14e cleaned up stats collection 2023-04-07 09:32:58 -04:00
Luke Berndt
c087e9796f Upgraded call playback debug messages 2023-02-03 17:48:16 -05:00
Luke Berndt
aa4d343039 I think it is ready... 2023-01-23 22:12:54 -05:00
Luke Berndt
b23734c4a3 Events is functional!!!
Just need to clean some things up and test
2023-01-22 21:56:53 -05:00