Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

(7.0) Disable source/dest check for instances #2163

Merged
merged 2 commits into from Sep 30, 2020

Conversation

r0mant
Copy link
Contributor

@r0mant r0mant commented Sep 29, 2020

Description

Update our AWS autoscaler controller loop with additional responsibility to periodically check if any of the cluster instances have source/destination check enabled and disable it. The check should be disabled in AWS cloud integration mode.

Our autoscaler actually already disables this parameter for new instances that come up when it receives events from ASG, but it doesn't work for pre-existing instances or those created outside of auto-scaling groups.

I kept scaling in mind when adding this, there should not be any downsides in that regard because I'm using a single "describe instances" call with filters (once every 10 minutes) to get information specifically about instances that have that check enabled which should not be many.

Type of change

  • Internal change (not necessarily a bug fix or a new feature)

TODOs

  • Self-review the change
  • Perform manual testing
  • Address review feedback

Testing done

Provisioned instances using our terraform and made sure that gravity-site disables source/dest check. Also, manually enabled it back and made sure it was disabled again.

@r0mant r0mant requested a review from a team September 29, 2020 01:54
@r0mant r0mant self-assigned this Sep 29, 2020
lib/autoscale/aws/autoscaler.go Show resolved Hide resolved
lib/autoscale/aws/discovery.go Outdated Show resolved Hide resolved
@r0mant r0mant merged commit 95cf592 into version/7.0.x Sep 30, 2020
@r0mant r0mant deleted the roman/7.0/sourcedest branch September 30, 2020 00:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants