github-actions[bot] commented on issue #9880: URL: https://github.com/apache/dolphinscheduler/issues/9880#issuecomment-1118123166
### Search before asking - [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues. ### What happened I use k8s deployment (Huawei cloud cce), multiple pods mount the same log volume, and found that the stored files do not distinguish which pod is saved, only master, worker, api, alert can not be specific. A worker, after further inspection, found that the log file for each hour was the log of a certain pod. This will make it impossible to query the log after the pod restarts, and it will be meaningless to mount the log volume. I used K8S deployment (Huawei cloud CCE), and multiple pods mounted the same log volume. I found that the saved files did not distinguish which POD saved them, but could only distinguish master, worker, API and alert, not specific worker. After Further checking, It was found that the log file of each hour was the log file of a pod. In this case, the POD cannot query logs after the restart, and it is meaningless to mount the log volume. ### What you expected to happen I checked the log related configuration (logback-master.xml, logback-worker.xml, logback-api.xml, logback-alert.xml), the file name of the configuration does not distinguish the specific pod, which will cause all pods to use the same one document. I looked at the log configuration (logback-master.XML, logback-worker.XML, logback-api.XML, logback-alert.xml), the configured file name does not discriminate between specific pods, which results in all pods using the same file. ### How to reproduce Maybe it would be better to join the filename to something like ${hostname}? Maybe the filename would be better with a name like ${hostname}? ### Anything else _No response_ ### Version 2.0.5 ### Are you willing to submit PR? - [ ] Yes I am willing to submit a PR! ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
