### Search before asking - [x] I have searched in the [issues](https://github.com/apache/amoro/issues?q=is%3Aissue) and found no similar issues. ### Description In master-slave mode, the optimizer needs to support pulling optimization tasks from each ams node for processing. ### Parent issue https://github.com/apache/amoro/issues/3670 ### Are you willing to submit PR? - [x] 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)