Is there any difference between using the public IP vs using the private IP of a droplet (connection stability wise)?

November 27, 2018 2.4k views
MySQL MariaDB Networking Databases Docker Ubuntu Debian

Hi DO community, I ask this question because I have a DockerContainer(Java) -> Droplet(MariaDB) app and sometimes (is not frequent and I haven't discovered any pattern) receive the warning

WARN com.zaxxer.hikari.pool.PoolBase - HikariPool-1 - Failed to validate connection com.mysql.cj.jdbc.ConnectionImpl@d1e1999 (No operations allowed after connection closed.). Possibly consider using a shorter maxLifetime value

And I checked all my code and I'm not executing any query after the close statement (I'm using a Closeable wrapper for the hibernate entity manager).

Thanks in advance

1 comment
  • It worths to mention that my wait_timeout time on the cnf is bigger than my maxLifetime on the HikariCP

Be the first one to answer this question.