Skip to content

Commit

Permalink
increase worker_connections per worker process (#1328)
Browse files Browse the repository at this point in the history
* increase worker_connections per worker process

* Auto commit - update kustomization.yaml

---------

Co-authored-by: CI/CD pipeline <CI/[email protected]>
  • Loading branch information
Despire and CI/CD pipeline authored Apr 8, 2024
1 parent caa232b commit 4f26daa
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/claudie/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
images:
- name: ghcr.io/berops/claudie/ansibler
newTag: 4f4c7c9-2693
newTag: 81b00f5-2706
- name: ghcr.io/berops/claudie/autoscaler-adapter
newTag: 688726a-1932
- name: ghcr.io/berops/claudie/builder
Expand Down
2 changes: 1 addition & 1 deletion services/ansibler/templates/conf.gotpl
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ server {
proxy_next_upstream on;
}
{{- end }}
}
}
13 changes: 13 additions & 0 deletions services/ansibler/templates/nginx.goyml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,19 @@
file:
path: "/etc/nginx/sites-enabled/default"
state: absent
- name: Increase worker connections
ansible.builtin.lineinfile:
path: /etc/nginx/nginx.conf
regexp: '^(\s*)worker_connections (\d+);'
backrefs: yes
line: '\1worker_connections 65535;'
- name: Ensure worker_rlimit_nofile is set
ansible.builtin.blockinfile:
path: /etc/nginx/nginx.conf
block: |
worker_rlimit_nofile 65535;
insertbefore: '^events {'
marker: "# {mark} ANSIBLE MANAGED BLOCK"
- name: restart nginx
service:
name: nginx
Expand Down

0 comments on commit 4f26daa

Please sign in to comment.