Collecting microservice logs
About this task
Default microservice logs are configured in the embedded log4j2.xml file. During deployment, the embedded log4j2.xml is updated to collect logs to Talend Cloud. Log collection is enabled by default.
When recovering artifacts, every log is collected again.
To configure a custom behavior for log collection, edit the org.talend.ipaas.rt.dsrunner.cfg file in the <RemoteEngineInstallationDirectory>/etc directory.
Procedure
- Problem:
Microservices, being always-on, continuously send logs to a socket on a 7788-based port. Each microservice deployment occupies one worker thread for logging. The thread pool size is defined as ms.worker.thread.number.
Saturation can occur if a single microservice opens multiple connections, overwhelming the thread pool.
- Recommended solution:
Increase the thread pool size (ms.worker.thread.number) to accommodate your deployment needs. For example, setting the size to 50 can mitigate the problem effectively with minimal memory or performance impact.