#atlantis (2021-05)

atlantis

Discuss the Atlantis (http://runatlantis.io|runatlantis.io) *Archive: * https://archive.sweetops.com/atlantis/

2021-05-07

Steve Wade avatar
Steve Wade

does anyone know (or have ideas) how to fix atlantis (using the upstream fargate module) taking a long time when a lot of PRs are being executed from different repositories

David avatar
David

like how to debug on the server, or how to redeploy?

Steve Wade avatar
Steve Wade

at present we have quite a few PRs currently being planned/applied across a number of repos

Steve Wade avatar
Steve Wade

when this happens we find that Atlantis slows down massively

joshmyers avatar
joshmyers

Nope, don’t do that.

joshmyers avatar
joshmyers

Atlantis uses a local BoltDB, more tasks isn’t what you want.

Steve Wade avatar
Steve Wade

i thought that might be the case

joshmyers avatar
joshmyers
terraform-aws-modules/terraform-aws-atlantis attachment image

Terraform configurations for running Atlantis on AWS Fargate. Github, Gitlab and BitBucket are supported - terraform-aws-modules/terraform-aws-atlantis

joshmyers avatar
joshmyers

Beef up the Fargate task size CPU/mem

joshmyers avatar
joshmyers

Makes a big difference

Steve Wade avatar
Steve Wade

yeh makes sense

Steve Wade avatar
Steve Wade

any recommendations?

joshmyers avatar
joshmyers
    ecs_task_memory = 4096
    ecs_task_cpu    = 2048
joshmyers avatar
joshmyers

Depends how many concurrent plan/apply you expect to run, how long is a piece of string

joshmyers avatar
joshmyers

We also set ATLANTIS_PARALLEL_POOL_SIZE to 50

Steve Wade avatar
Steve Wade

what does that do?

David avatar
David

I run on a m5.2xlarge (8 vCPU, 32gb mem) EC2 instance and often have hundreds of plans run in parallel.

joshmyers avatar
joshmyers

RTFM

Steve Wade avatar
Steve Wade

i thought that only works when using workspaces?

David avatar
David

There is a difference I believe between Atlantis workspaces and Terraform workspaces, if that is what you are thinking of

Steve Wade avatar
Steve Wade

changes applied, lets see what this does to the speed, fingers crossed

pcantea avatar
pcantea

:wave: Hi all, quick question, do env vars set with the env step persist between runs? For example if I run atlantis plan which sets FOO=BAR, will $FOO be there if I run atlantis plan again?

jose.amengual avatar
jose.amengual

if they are part of the workflow yes

1

2021-05-03

RB avatar

If there is a repo level atlantis.yaml file containing directories dir1 and dir2 and a PR comes in that affects the terraform module dir3, atlantis will show a 0 / 0 approval check for the PR. This seems like a bug, no ?

RB avatar
Atlantis plan/apply checks approve PR even if there are no directories to check · Issue #1547 · runatlantis/atlantis attachment image

The repo level atlantis.yaml for dir1 and dir2 version: 3 projects: - dir: dir1 - dir: dir2 A PR for only dir3 and I see this atlantis/apply — 0/0 projects applied successfully. atlantis/plan — 0/0…

jose.amengual avatar
jose.amengual

and if you run atlantis plan manually it says no plans?

RB avatar

it says no plans

RB avatar

oh, not sure how to run atlantis manually. ill have to check that

jose.amengual avatar
jose.amengual

weird

    keyboard_arrow_up