aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2023-04-27 11:54:12 +0200
committerChristopher Baines <mail@cbaines.net>2023-04-27 14:58:47 +0200
commit688f4cd79d47e9c74b18125d2cfb0e972bb2431e (patch)
tree61e5cba8c6d616ac47c333bdec084db6c1760c90 /scripts
parent638e0442c380f256b4ca08e6144599c66cd1ad29 (diff)
downloaddata-service-688f4cd79d47e9c74b18125d2cfb0e972bb2431e.tar
data-service-688f4cd79d47e9c74b18125d2cfb0e972bb2431e.tar.gz
Set request timeouts for the thread pools
The request timeout should ensure that the operations don't back up if the thread pool is overloaded.
Diffstat (limited to 'scripts')
-rw-r--r--scripts/guix-data-service.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/guix-data-service.in b/scripts/guix-data-service.in
index adfc3d3..f376152 100644
--- a/scripts/guix-data-service.in
+++ b/scripts/guix-data-service.in
@@ -214,7 +214,10 @@
2))
#:idle-seconds 60
#:idle-thunk
- close-thread-postgresql-connection)))
+ close-thread-postgresql-connection))
+
+ (thread-pool-request-timeout 10))
+
(start-guix-data-service-web-server
(assq-ref opts 'port)
(assq-ref opts 'host)