feat(throughput): single process per queue (#956)

* feat(throughput): single process per queue

* fix data race

* fix: golint and data race on load test

* wrap up initial v2 scheduler

* fix: more debug logs and tighten channel logic/blocking sends

* improved casing on dispatcher and lease manager

* fix: data race on min id

* increase wait on load test, fix data race

* fix: trylock -> lock

* clean up queue when no longer in set

* fix: clean up cache on exit

* ensure cleanup is only called once

* address review comments
This commit is contained in:
abelanger5
2024-10-15 11:05:19 -04:00
committed by GitHub
parent 49dd3f4bb2
commit 67a96d7166
65 changed files with 8047 additions and 369 deletions
+1
View File
@@ -206,6 +206,7 @@ func RunWithConfig(ctx context.Context, sc *server.ServerConfig) ([]Teardown, er
jobs.WithPartition(p),
jobs.WithQueueLoggerConfig(&sc.AdditionalLoggers.Queue),
jobs.WithPgxStatsLoggerConfig(&sc.AdditionalLoggers.PgxStats),
jobs.WithScheduler(sc.SchedulingPool),
)
if err != nil {