mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-25 11:17:50 +01:00
7ba6fa7148
* chore(plugin-server): remove piscina workers Using Piscina workers introduces complexity that would rather be avoided. It does offer the ability to scale work across multiple CPUs, but we can achieve this via starting multiple processes instead. It may also provide some protection from deadlocking the worker process, which I believe Piscina will handle by killing worker processes and respawning, but we have K8s liveness checks that will also handle this. This should simplify 1. prom metrics exporting, and 2. using node-rdkafka. * remove piscina from package.json * use createWorker * wip * wip * wip * wip * fix export test * wip * wip * fix server stop tests * wip * mock process.exit everywhere * fix health server tests * Remove collectMetrics * wip |
||
---|---|---|
.. | ||
assets | ||
helpers | ||
main | ||
utils | ||
worker | ||
config.test.ts | ||
e2e.buffer.test.ts | ||
e2e.timeout.test.ts | ||
historical-export-e2e.test.ts | ||
http-server.test.ts | ||
server.test.ts | ||
sql.test.ts | ||
utils.test.ts |