# awx-operator and ngnix performance

**URL:** <https://forum.ansible.com/t/awx-operator-and-ngnix-performance/37630>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [February 7, 2023, 4:55pm UTC](https://forum.ansible.com/t/awx-operator-and-ngnix-performance/37630 "2023-02-07T16:55:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![metabsd](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/metabsd/32/1128_2.png) [@metabsd](https://forum.ansible.com/u/metabsd)\
**Post date:** [February 7, 2023, 4:55pm UTC](https://forum.ansible.com/t/awx-operator-and-ngnix-performance/37630/1 "2023-02-07T16:55:55Z")

</div>

Hello, I need your advice on adjusting the performance of ngnix.

After searching in the operator definition I noticed that the values are currently static and I can’t change them.

[https://github.com/ansible/awx-operator/blob/234a10d185fbaf3cb881f890cf5cac91f0d71be8/roles/installer/templates/configmaps/config.yaml.j2#L91](https://github.com/ansible/awx-operator/blob/234a10d185fbaf3cb881f890cf5cac91f0d71be8/roles/installer/templates/configmaps/config.yaml.j2#L91)

However, by adding a second replica I solved my problem with the amount of API calls our Configure AWX project generates when configuring Ansible AWX.

With a replica I get this error.

“msg”: “There was an unknown error when trying to connect to [https://servername/api/v2/job\_templates/\*\*\*\*\*\*\*\*65/survey\_spec/:](https://servername/api/v2/job_templates/ ******** 65/survey_spec/:) timeout The read operation timed out”

In fact I always have a read operation time out but not always on the same endpoint. It looks like a limit on the amount of total calls.

I checked the number of connections to Ngnix via curl localhost:8052/nginx\_status and I saw a maximum of 150 connections.

That’s why I was thinking that if I increase the number of worker\_processes or worker\_connections it could solve my problem because theoretically by using a 2nd replica I double my values and in this case I don’t have any more problem.

Do you have any idea what is causing my problem.

Thank you for your help!
