ruanwenjun opened a new issue, #15966: URL: https://github.com/apache/dolphinscheduler/issues/15966
### Search before asking - [X] I had searched in the [DSIP](https://github.com/apache/dolphinscheduler/issues/14102) and found no similar DSIP. ### Motivation Right now, the log is stored at worker/master and remote server. The query logic look like below <img width="1193" alt="image" src="https://github.com/apache/dolphinscheduler/assets/22415594/a36e3d45-8b9e-4b14-94c7-c298b47d6f9a"> The LogService is duplicate at worker/master, we need to maintain two service implementation which have the same code. And once the master/worker is not active, then we can not fetch the log, this problem may occur frequently in k8s. So it's better to create a LogClient at API side to manage the log fetch logic, and create a LogServer to response for the client request, the LogServer will be imported at master/worker. ### Design Detail <img width="1174" alt="image" src="https://github.com/apache/dolphinscheduler/assets/22415594/91fc2143-102b-4ea0-b5ef-73c92d7d193d"> 1. We will fetch the log from master/worker firstly. 2. If the master/worker not exist or we cannot find the log file from master/worker then we will try to fetch from remote log storage. ### Compatibility, Deprecation, and Migration Plan Compatibility with previous version. ### Test Plan Test by manual. ### 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]
