dativebase / dativebaseclj

DativeBase in Clojure: Linguistic Data Management
https://app.dative.ca
MIT License
0 stars 0 forks source link

Resolve Dative not working — 2024-06-04 #13

Open jrwdunham opened 2 months ago

jrwdunham commented 2 months ago

Problem: Requests to OLD API return 500.

AC:

jrwdunham commented 2 months ago

Root cause: MySQL connections sleeping for up to 8h! (Root cause of that is that SQLAlchemy is misconfigured and/or one MySQL database per OLD instance is bad architecture.)

Resolution: set MySQL wait_timeout to 300, ie 5m.

Added the following to /etc/mysql/my.cnf, which sets the connection timeout to 5 minutes:

  [mysqld]
  wait_timeout = 300
  interactive_timeout = 300