[ARVADOS] updated: c4a0f7a714586e61ad844de58837a20c76eda2a8
Git user
git at public.curoverse.com
Mon May 8 16:04:11 EDT 2017
Summary of changes:
services/ws/event_source.go | 3 +++
1 file changed, 3 insertions(+)
via c4a0f7a714586e61ad844de58837a20c76eda2a8 (commit)
from 3652f3ed82e994c9eea74ba1afb4aa3c11ebd697 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit c4a0f7a714586e61ad844de58837a20c76eda2a8
Author: Tom Clegg <tom at curoverse.com>
Date: Mon May 8 16:04:01 2017 -0400
11638: Log a warning if Postgres pool size is unlimited.
diff --git a/services/ws/event_source.go b/services/ws/event_source.go
index 1cc5ae7..7c1b584 100644
--- a/services/ws/event_source.go
+++ b/services/ws/event_source.go
@@ -116,6 +116,9 @@ func (ps *pgEventSource) Run() {
logger(nil).WithError(err).Error("sql.Open failed")
return
}
+ if ps.MaxOpenConns <= 0 {
+ logger(nil).Warn("no database connection limit configured -- consider setting PostgresPool>0 in arvados-ws configuration file")
+ }
db.SetMaxOpenConns(ps.MaxOpenConns)
if err = db.Ping(); err != nil {
logger(nil).WithError(err).Error("db.Ping failed")
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list