mirror of
https://github.com/dali99/nixos-matrix-modules.git
synced 2026-07-18 03:30:31 +02:00
generate only one upstream per worker
This commit is contained in:
@@ -29,6 +29,7 @@ rec {
|
||||
# Subindex by resource names, listener types, and convert to upstreams
|
||||
(lib.mapAttrs (_: workers: lib.pipe workers [
|
||||
(lib.concatMap (worker: worker.settings.worker_listeners))
|
||||
lib.lists.head # only select one listener for the worker to avoid cache thrashing
|
||||
lib.flatten
|
||||
mapListenersToUpstreamsByType
|
||||
]))
|
||||
|
||||
Reference in New Issue
Block a user