2

I'm looking at the possibility of increasing the wait_timeout on a MySQL server in an effort to avoid a streaming JDBC SELECT in a Solr Data Import Handler from timing out after the default 28800 seconds.

Note: Setting autoReconnect=true on the connection isn't sufficient for my needs.

jscott
  • 24,204
  • 8
  • 77
  • 99
Brian
  • 135
  • 8

1 Answers1

2

What are the negatives of setting a high wait_timeout setting in MySQL?

Idle and persistent connections will obviously take longer to expire. This may mean that you bump up against some default and sane limits.

The first one will be max_connections. Then following that - because of the way which MySQL assigns memory and file descriptors to connections and threads - table_cache, open-files-limit and general RAM consumption will increase.

wait_timeout can act as a bit of a natural guard against these things. You can increase it, but bear in mind that the client-side is at fault and that it may have server-side impact.

Dan Carley
  • 25,189
  • 5
  • 52
  • 70