Helllo,
as we were using rancher for managing our dockerized services we also used it for setting up AWX. Fortunately there is an AWX template in the rancher community catalog which is mainly based on the docker-compose installation from the AWX repository as far as I can tell. That worked OK to run AWX with a single instance.
Now as our inrfastructure and with it the number of playbooks to be continuously executed grows we also would like to sclae our AWX deployment by adding new instances. The first thing is to find out what an instance actually means, I did not find something about it in the docs. On a test kubernetes cluster we have seen that when scaling up the whole pod with awx_task, awx_web, memcached and rabbitmq inside is duplicated so I was assuming that these 4 components form an instance. Now I have tried to replicate the same setup using rancher. It worked in a way that I could see a new instance being registered in the instance groups menu. But when actually trying to execute a playbook on it it seems to interact with the existing instance. Either the template executed on a separate instance group with that new instance only is not going to start at all or it stays in pending state for a while and then fails with the error message “Task was marked as running in Tower but was not present in the job queue, so it has been marked as failed.”
The new instance we have set up has a separate memcached, a separate awx_rask and awx_web container and a separate RabbitMQ. It just shares the database with the existing first instance.
So my questions are now:
- Is it correct that these 4 separate components (awx_task, awx_web, memcached and rabbitmq) are needed to form a new instance ?
- How does the instance to be configured to work properly with the existing instance and interfering each other ?
One of my assumptions was, that it has something to do with the SYSTEM_UUID but then also noticed when scaling up the pod in kubernetes that both instances have the uuid 00000000-0000-0000-0000-000000000000 so it must be something different ?
Anybody is able to help here who maybe has a properly scaling deployment unsing rancher ?
Thanks,
Dirk