Skip to content

Conversation

DAlperin
Copy link
Contributor

No description provided.

@DAlperin
Copy link
Contributor Author

I need to test this more to find a consistently good way to keep track of connection counts.

@DAlperin
Copy link
Contributor Author

I think I should ignore connections to the repmr user to avoid fluctuations.

Copy link
Contributor

@davissp14 davissp14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few notes

Copy link
Contributor

@davissp14 davissp14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Few nits, but not critical.

if current > 1 {
continue
}
return errors.New("scale to zero condition hit")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Should just use fmt.Errorf here.

}
}

func getCurrentConnCount(ctx context.Context, node *flypg.Node) (int, error) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: At some point this should be moved to the admin package.

@DAlperin DAlperin merged commit 46c7d02 into master Apr 13, 2023
@benwaffle benwaffle deleted the scale_to_zero branch June 19, 2024 22:42
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.

3 participants