Skip to content
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

idle_deployment - Scale down deployments to put AWX into an idle state #2012

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

aknochow
Copy link
Member

@aknochow aknochow commented Feb 6, 2025

SUMMARY

idle_deployment - Scale down deployments to put AWX into an idle state

ISSUE TYPE

New or Enhanced Feature

Patch AWX to put into idle state:
oc patch awx awx --type=merge -p '{"spec":{"idle_deployment":true}}'

Result:

NAME                                                 READY   STATUS      RESTARTS   AGE
pod/awx-migration-24.6.1-tsh7v                       0/1     Completed   0          8m10s
pod/awx-operator-controller-manager-955c5f75-76mhf   2/2     Running     0          11m

NAME                                              READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/awx-operator-controller-manager   1/1     1            1           11m
deployment.apps/awx-task                          0/0     0            0           8m18s
deployment.apps/awx-web                           0/0     0            0           8m20s

NAME                                                       DESIRED   CURRENT   READY   AGE
replicaset.apps/awx-operator-controller-manager-955c5f75   1         1         1       11m
replicaset.apps/awx-task-5cbcc4847                         0         0         0       8m18s
replicaset.apps/awx-web-d5df86d77                          0         0         0       8m20s

NAME                               READY   AGE
statefulset.apps/awx-postgres-15   0/0     8m54s

Patch AWX again to bring out of idle state:
oc patch awx awx --type=merge -p '{"spec":{"idle_deployment":false}}'

Result:

NAME                                                 READY   STATUS      RESTARTS   AGE
pod/awx-migration-24.6.1-tsh7v                       0/1     Completed   0          11m
pod/awx-operator-controller-manager-955c5f75-76mhf   2/2     Running     0          14m
pod/awx-postgres-15-0                                1/1     Running     0          2m6s
pod/awx-task-5cbcc4847-k5vv5                         4/4     Running     0          101s
pod/awx-web-d5df86d77-s972r                          3/3     Running     0          103s

NAME                                              READY   UP-TO-DATE   AVAILABLE   AGE
deployment.apps/awx-operator-controller-manager   1/1     1            1           14m
deployment.apps/awx-task                          1/1     1            1           11m
deployment.apps/awx-web                           1/1     1            1           11m

NAME                                                       DESIRED   CURRENT   READY   AGE
replicaset.apps/awx-operator-controller-manager-955c5f75   1         1         1       14m
replicaset.apps/awx-task-5cbcc4847                         1         1         1       11m
replicaset.apps/awx-web-d5df86d77                          1         1         1       11m

NAME                               READY   AGE
statefulset.apps/awx-postgres-15   1/1     12m

@aknochow aknochow self-assigned this Feb 6, 2025
@aknochow aknochow marked this pull request as draft February 6, 2025 23:11
- separating database_configuration and deployment tasks into separate files to add ability to call configuration independently
@aknochow aknochow marked this pull request as ready for review February 10, 2025 16:30
@rooftopcellist
Copy link
Member

@aknochow I just finished tested with an external db, works like a charm. It leaves behind the external sts db, and scales up successfully afterwards. No errors, and I can reach the UI.

Nice work!

@aknochow aknochow merged commit c08c102 into ansible:devel Feb 11, 2025
7 of 9 checks passed
@aknochow aknochow deleted the idle_deployment branch February 11, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants