8000 Add resource requests to default podspec by kdelee · Pull Request #11559 · ansible/awx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add resource requests to default podspec #11559

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion awx/main/tasks/receptor.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ def _run_internal(self, receptor_ctl):
self.task.instance.result_traceback = detail
self.task.instance.save(update_fields=['result_traceback'])
else:
logger.warn(f'No result details or output from {self.task.instance.log_format}, status:\n{unit_status}')
logger.warn(f'No result details or output from {self.task.instance.log_format}, status:\n{state_name}')
except Exception:
raise RuntimeError(detail)

Expand Down
1 change: 1 addition & 0 deletions awx/main/utils/execution_environments.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def get_default_pod_spec():
"image": ee.image,
"name": 'worker',
"args": ['ansible-runner', 'worker', '--private-data-dir=/runner'],
"resources": {"requests": {"cpu": "250m", "memory": "100Mi"}},
}
],
},
Expand Down
2 changes: 1 addition & 1 deletion awx/settings/defaults.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def IS_TESTING(argv=None):
AWX_CONTAINER_GROUP_K8S_API_TIMEOUT = 10
AWX_CONTAINER_GROUP_DEFAULT_NAMESPACE = os.getenv('MY_POD_NAMESPACE', 'default')
# Timeout when waiting for pod to enter running state. If the pod is still in pending state , it will be terminated. Valid time units are "s", "m", "h". Example : "5m" , "10s".
AWX_CONTAINER_GROUP_POD_PENDING_TIMEOUT = "5m"
AWX_CONTAINER_GROUP_POD_PENDING_TIMEOUT = "2h"

# Internationalization
# https://docs.djangoproject.com/en/dev/topics/i18n/
Expand Down
0