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

Multiple instances? #1155

Closed
deefha opened this issue Aug 12, 2020 · 8 comments
Closed

Multiple instances? #1155

deefha opened this issue Aug 12, 2020 · 8 comments
Labels
question Further information is requested

Comments

@deefha
Copy link

deefha commented Aug 12, 2020

Hello,

it is possible to run Atlantis on multiple concurrent pods with load balancing? I don't think so, but I need to confirm it.

I tried to run two pods and hide them behind NodePort just for test. Then atlantis plan from an merge request was processed by first pod, however following atlantis apply went to second pod and I've got this error message:

stat /home/atlantis/.atlantis/repos/some/repo-name/1: no such file or directory

I probably understand this behaviour. Or is it my fault and there is any way to configure Atlantis to cope with this situation?

Thanks

@tsunamishaun
Copy link

I've deployed the upstream atlantis chart and its setup to be a stateful set with a single pvc. One pod, one read writeable storage backend. Because Atlantis uses boltdb (which lives on the pv, think sqllite) it can only be writeable by one pod, I think the way it is deployed in the chart reflects the app architecture. I dont know if there are plans to support another form of kv store/backend? But that could potentially change how many pods can run. I haven't had any issues with load yet myself rather run concurrency.

@lkysow
Copy link
Member

lkysow commented Aug 17, 2020

Hi, this is not currently supported. See #894.

@lkysow lkysow added the question Further information is requested label Aug 17, 2020
@lkysow lkysow closed this as completed Aug 17, 2020
@david-heward-unmind
Copy link
Contributor

What is the latest on this now?

@jamengual
Copy link
Contributor

jamengual commented Oct 3, 2022 via email

@bakayolo
Copy link
Contributor

@jamengual , #1345 does not address this specific thing right?

If we use the upstream helm chart for deploying Atlantis as a statefulset, and configure the number of replicas to be >1, does atlantis is able to plan/apply from the same pod?

@nitrocode
Copy link
Member

If you set the replica set greater than 1 then you need to use redis for locking

@jamengual
Copy link
Contributor

right now it does, you can use the Redis external locking and share a disc between pods

@bakayolo
Copy link
Contributor

That's amazing, I did not know about that. Thanks for the quick reply

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

7 participants