0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-11-16 06:41:06 +01:00
dendrite/common
Neil Alexander f7cfa75886
Limit database connections (#980, #564) (#998)
* Limit database connections (#564)

- Add new options to the config file database:
      max_open_conns: 100
      max_idle_conns: 2
      conn_max_lifetime: -1
- Implement connection parameter setup on the *DB (database/sql) in internal/sqlutil/trace.go:Open()
- Propagate the values in the form of DbProperties interface via all the
  Open() and NewDatabase() functions

Signed-off-by: Tomas Jirka <tomas.jirka@email.cz>

* Fix wasm builds

* Remove file accidentally added from working tree

Co-authored-by: Tomas Jirka <tomas.jirka@email.cz>
2020-05-01 13:34:53 +01:00
..
basecomponent Limit database connections (#980, #564) (#998) 2020-05-01 13:34:53 +01:00
caching LRU cache for room versions in RS query API (#976) 2020-04-22 13:00:05 +01:00
config Limit database connections (#980, #564) (#998) 2020-05-01 13:34:53 +01:00
http use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00
keydb Limit database connections (#980, #564) (#998) 2020-05-01 13:34:53 +01:00
test Rename the typing server to EDU server (#948) 2020-03-30 15:02:20 +01:00
transactions Replace deprecated prometheus.InstrumentHandler and unsafe time.Ticker 2019-12-17 16:47:45 +00:00
consumers.go Fix sarama import URLs (#856) 2020-04-22 15:26:56 +01:00
eventcontent.go Allow anyone to publish rooms (#971) 2020-04-17 12:17:20 +01:00
events.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
httpapi.go Add HTTP trace logging (#965) 2020-04-15 17:48:40 +01:00
httpapi_test.go S7evinK: basicauth metrics (#961) 2020-04-14 15:54:35 +01:00
log.go Log errors from rows.Close (#920) 2020-03-18 10:17:18 +00:00
partition_offset_table.go Log errors from rows.Close (#920) 2020-03-18 10:17:18 +00:00
postgres.go Add peer-to-peer support into Dendrite via libp2p and fetch (#880) 2020-03-06 10:23:55 +00:00
postgres_wasm.go Add peer-to-peer support into Dendrite via libp2p and fetch (#880) 2020-03-06 10:23:55 +00:00
routing.go Fix URLDecodeMapValues (#984) 2020-04-28 12:50:49 +01:00
sql.go Limit database connections (#980, #564) (#998) 2020-05-01 13:34:53 +01:00
types.go Implement profile retrieval over federation (#726) 2019-08-07 00:02:12 +08:00