geerlingguy / tower-operator

DEPRECATED: This project was moved and renamed to: https://github.com/ansible/awx-operator
82 stars 34 forks source link

Can't scale the deployments and statefulset #20

Closed eas75034 closed 4 years ago

eas75034 commented 4 years ago

If you scale the deployments, and statefulset higher than 1 replica, they will get automatically scaled back down to 1. Why is this? How can I make it so I can scale higher than one?

eas75034 commented 4 years ago

It looks like the deployments for the memcached, rabbitmq, tower_task, and tower_web are all owned by the tower resource. This is why my changes at the deployment spec for the replicas was getting automatically revert back to 1. Is there a key/value reference I can use in the tower spec to control the number of replicas for the deployments? Same question regarding the postgres statefulset.

geerlingguy commented 4 years ago

Currently, I'm not sure exactly how things will behave if you use more than one instance... some service may work okay, others may not (split-brained and all that—especially Postgres, but maybe also memcached and rabbit since they might need more config to work with more than one running pod).

But it is something that should be configurable, assuming the underlying service can scale beyond one Pod without everything breaking.

stale[bot] commented 4 years ago

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] commented 4 years ago

This issue is no longer marked for closure.