As Xray uses RabbitMQ for queue & task management, it is important to familiarize yourself with it as well, in addition to tune it accordingly too.
RabbitMQ Production Checklist
RabbitMQ Runtime Tuning
RabbitMQ Production Checklist
RabbitMQ Runtime Tuning