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

Multi-AZ AWS setup #33

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jeremyvdw
Copy link

The number of AZ used is based on the number of master nodes, which is quite opinionated.
I'm definitively open to feedback.

@Jeeppler
Copy link

I think the assumption is pretty okay.

@rimusz
Copy link
Contributor

rimusz commented Apr 23, 2018

there is a bug for private/public agents subnets, it should check the masters count but it check agents ones

@rimusz
Copy link
Contributor

rimusz commented Apr 23, 2018

master and agents .tf files need to use element in subnet_id as per subnet_id = "${element(aws_subnet.public.*.id,count.index)}" and those two merge conflicts resolved then PR is good to be merged

@jeremyvdw
Copy link
Author

Hey, thanks for the feedback.
I’m pushing a fix later today.

@rimusz
Copy link
Contributor

rimusz commented Apr 24, 2018

also can you make it optional please, thanks
and master are not recommend to be spread around multi-az, they need to stay in one AZ

@jeremyvdw
Copy link
Author

@rimusz Based on this document, I was confident that masters could be spread around different AZ.

Do you want a "spread in AZ" optional switch that either deploy all master to a single zone masters like described here, or cross zone masters ?

Also, the smoke test is failing on TeamCity but I can't access it.

@rimusz
Copy link
Contributor

rimusz commented Apr 25, 2018

it is not really recommended to spread masters across multi-az (is more harm than good).
bootstrap and master can stay in one zone by default e.g. ${aws_subnet.public.0.id}" and the agents then can be spread across all available zones, this what exactly I have made for the custom terraform setup based on this one repo.
if masters stay in one zone, and agents are spread across multi-az then I think we do not need optional one.
I cannot access teamcity as well

@rimusz
Copy link
Contributor

rimusz commented Apr 25, 2018

please remove count = "${var.num_of_masters}" from the private-/public-agent.tf files, so agent can be spread on all available zones in the region

@rimusz
Copy link
Contributor

rimusz commented Apr 25, 2018

LGTM
cc @bernadinm I have tested such setup, not sure why CI fails there

@cprovencher
Copy link
Collaborator

@rimusz CI fails because the CI script is not yet merged but the PR triggers are activated. We need to merge this: #47

@rimusz rimusz changed the title Multi-AZ setup Multi-AZ AWS setup Jun 20, 2018
@rimusz
Copy link
Contributor

rimusz commented Jun 28, 2018

@bernadinm can we merge this one? I been using this solution without isues

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.

None yet

4 participants