How to tune APM Server in Fleet

If "output.elasticsearch.worker" has been removed in elasticsearch 8. How can I tune number of workers or is it made automatically?