mirror of
https://github.com/ansible/awx.git
synced 2026-03-09 21:49:27 -02:30
Change 'rabbitmqctl status' to a wget | grep
- This reduces CPU usage from 250 millis on idle to 25 millis on idle - Default rabbitmq user needs administrator privileges
This commit is contained in:
@@ -39,7 +39,7 @@ data:
|
|||||||
[rabbitmq_management,rabbitmq_peer_discovery_k8s].
|
[rabbitmq_management,rabbitmq_peer_discovery_k8s].
|
||||||
rabbitmq_definitions.json: |
|
rabbitmq_definitions.json: |
|
||||||
{
|
{
|
||||||
"users":[{"name": "{{ rabbitmq_user }}", "password": "{{ rabbitmq_password }}", "tags": ""}],
|
"users":[{"name": "{{ rabbitmq_user }}", "password": "{{ rabbitmq_password }}", "tags": "administrator"}],
|
||||||
"permissions":[
|
"permissions":[
|
||||||
{"user":"{{ rabbitmq_user }}","vhost":"awx","configure":".*","write":".*","read":".*"}
|
{"user":"{{ rabbitmq_user }}","vhost":"awx","configure":".*","write":".*","read":".*"}
|
||||||
],
|
],
|
||||||
@@ -269,12 +269,18 @@ spec:
|
|||||||
containerPort: 5672
|
containerPort: 5672
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
exec:
|
exec:
|
||||||
command: ["rabbitmqctl", "status"]
|
command:
|
||||||
|
- /bin/ash
|
||||||
|
- -c
|
||||||
|
- "wget -O - --header \"Authorization: Basic {{ ( rabbitmq_user + ':' + rabbitmq_password ) | b64encode }}\" http://localhost:15672/api/healthchecks/node | grep -qF \"{\"status\":\"ok\"}\""
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
exec:
|
exec:
|
||||||
command: ["rabbitmqctl", "status"]
|
command:
|
||||||
|
- /bin/ash
|
||||||
|
- -c
|
||||||
|
- "wget -O - --header \"Authorization: Basic {{ ( rabbitmq_user + ':' + rabbitmq_password ) | b64encode }}\" http://localhost:15672/api/healthchecks/node | grep -qF \"{\"status\":\"ok\"}\""
|
||||||
initialDelaySeconds: 10
|
initialDelaySeconds: 10
|
||||||
timeoutSeconds: 10
|
timeoutSeconds: 10
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user