radondb-mysql-kubernetes icon indicating copy to clipboard operation
radondb-mysql-kubernetes copied to clipboard

Failed to start pod for the first time

Open harryand666 opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe.

1、The slowlog and auditlog in the pod will report an error when the mysql pod starts up for the first time each time, which will trigger a restart. 2、both slowlog and auditlog use tail -f as the startup command, and at the same time, it is the "/var/log/mysql/" of the container directory mounts an empty directory. When mysql is not started, the log file is not generated,so the log container cannot be started for the first time, resulting in a restart record

Describe the solution you'd like

It is recommended to add readiness probe or liveness probe. , to define the startup sequence

Describe alternatives you've considered

Additional context

harryand666 avatar Jun 22 '22 13:06 harryand666

Thanks for your suggestion, we will fix it right away

runkecheng avatar Jun 22 '22 14:06 runkecheng