-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TiProxy infinitely reloads the config file #321
Comments
In fact, it is expected. Config file should be located at a separate directory. |
I don't think it's common sense for everyone. For example, in the tidb-test, the config file and log file are in the same directory. It just redirects the output to the current directory so that the log file is overwritten for every run and avoids removal. |
I understand. But, then, reloading conigs on k8s becomes difficult if you correct this behavior. I guess the only way to fix is filtering config file on the event again.. |
2 methods:
I'm filing the PR. |
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Use the config file in the working directory.
2. What did you expect to see? (Required)
The file size of
proxy.log
is small.3. What did you see instead (Required)
The file size of
proxy.log
keeps increasing rapidly. The logs are all about reloading the config file.The event of the config file is
event="WRITE \"proxy.log\""
, which means the log file is modified but the config file is not.4. What is your version? (Required)
master
OS: macOS
The text was updated successfully, but these errors were encountered: