A story that took time to establish a connection

When I deployed MySQL on Docker, it took about 30 seconds to establish a connection from Spring Data JPA to MySQL, so I will leave a memo. In conclusion, I set the IP of the connection destination to 0.0.0.0:3306, and it seemed that it took a long time to resolve the connection destination. .. ..

--Slow spring.datasource.url=jdbc:log4jdbc:mysql://0.0.0.0:3306/mydb

Settings that I copied from the net without thinking about anything. It takes time to troubleshoot and I regret it.

Recommended Posts

A story that took time to establish a connection
The story that docker had a hard time
[Small story] Misleading method name (a story that wasted time due to setScale.
A story that I had a hard time trying to build PHP 7.4 on GCE's CentOS 8
A story that I struggled to challenge a competition professional with Java
The story that the DB connection and other timeouts did not time out according to the set value
A story addicted to JDBC Template placeholders
A program that calculates factorials from 2 to 100
A story that was embarrassing to give anison file to the production environment
Correspondence to A connection to XXXX was leaked.
What to do when "call'Hoge.connection' to establish a connection" appears on rails c
A story addicted to EntityNotFoundException of getOne of JpaRepository
A story that separates business logic and model
Set the time of LocalDateTime to a specific time
How to create a class that inherits class information
A story about making a Builder that inherits the Builder
A story about trying to operate JAVA File
[Updated from time to time] Links that are indebted
A story that failed using "bundle exec rubocop -a"
A story about creating a service that proposes improvements to a website using a machine learning API
A story that failed when connecting to CloudSQL by running Sprint-boot with kubernetes (GKE)
A story that stumbled when deploying a web application created with Spring Boot to EC2
A story that did not work when trying to handle events in Notification Center
A story I was addicted to when getting a key that was automatically tried on MyBatis
A small story that is sometimes useful in Maven
A story about trying to get along with Mockito
A story about trying hard to decompile JAR files
A story about reducing memory consumption to 1/100 with find_in_batches
A concise summary of Java 8 date / time APIs that are likely to be used frequently
A story that I realized that I had to study as an engineer in the first place
[Docker] Is it good enough to call it a multi-stage build? → The story that became so good