-
Notifications
You must be signed in to change notification settings - Fork 773
[bugfix] Dragonfly bind an already in used port make dfdaemon.log file size huge #364
Comments
I have suffered this issue too. |
Dfdaemon will shutdown when the address is already in use. Is there another process to monitor dfdaemon and do some automatically startup operations? |
The PID of Dfdaemon is not changed, so i think Dfdaemon did not shutdown. |
I means that there may be a monitor process always retry to start a new |
@lowzj [Service] [Install] systemd control the Dfdaemon, and the |
Please make sure that you have read the issue dragonflyoss/dragonfly#291. |
Thanks for you comment, maybe there is another monitor process start new dfdaemon process. we will further investigation this issue, by the way, our storm also use this port 65001, whether storm process did a weird action on dfdaemon? this is just an arbitrary assumption. After we find out the reason, i will close this issue and provide the reason. If anyone who encounter the same issue, please leave your comment here. |
I think we could eliminate |
@godliness I have tested this scenario with your systemd config file:
Then I found that these messages are logged to
Due to that the problem of time format in dfdaemon.log, you can use this command to count how many times the dfdaemon started by systemd every minutes:
And you also can get some information from
|
Thanks for your testing, i have reproduced this issue on our machine, below is the detail steps:
I think the key point is the https://github.com/dragonflyoss/Dragonfly/blob/v0.2.0/dfdaemon/initializer/initializer.go#L104
|
@godliness Thanks for your detailed steps, I have reproduced this problem. I will take a look on this. Welcome to submit pull request if you have any idea to fix it. |
Not at all, i will try to fix this issue soon, and send a PR for this. |
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
When the size of dfdaemon.log file large than 20M, the size of log file will continuous growth up. Use Mmap to copy the file which need be truncated. Related to issue: dragonflyoss/dragonfly#364 Signed-off-by: godliness <[email protected]>
Ⅰ. Issue Description
Dragonfly bind an already in used port make dfdaemon.log file size huge
Ⅱ. Describe what happened
Dragonfly bind an already in used port make dfdaemon.log file size huge, and dragonfly write into dfdaemon.log file frequently, below is the log content:
But there is another confused thing is that dragonfly actually already bind on port 65001, but it still output the message
time="2019-01-28 12:27:00" level=fatal msg="listen tcp :65001: bind: address already in use"
Ⅲ. Describe what you expected to happen
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
uname -a
):Linux ******* 3.10.0-693.5.2.1.el7.x86_64 Add a Gitter chat badge to README.md #1 SMP Thu Aug 23 15:56:23 CST 2018 x86_64 x86_64 x86_64 GNU/Linux
/cc @allencloud
The text was updated successfully, but these errors were encountered: