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

Listener: the API change for multiple addresses support #21391

Merged

Conversation

soulxu
Copy link
Member

@soulxu soulxu commented May 20, 2022

Commit Message: Listener: the API change for multiple addresses support
Additional Description:

Both listener and admin API are changed to support multiple addresses.

Risk Level: low
Testing: n/a
Docs Changes: API doc
Release Notes: n/a
Platform Specific Features: n/a
Part of Fixes #11184

@repokitteh-read-only
Copy link

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @adisuissa
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #21391 was opened by soulxu.

see: more, trace.

@soulxu
Copy link
Member Author

soulxu commented May 20, 2022

This the API change separated from #19367

soulxu added 2 commits May 20, 2022 06:49
Signed-off-by: He Jie Xu <[email protected]>
Signed-off-by: He Jie Xu <[email protected]>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks a few comments.

/wait

Signed-off-by: He Jie Xu <[email protected]>
@soulxu
Copy link
Member Author

soulxu commented May 27, 2022

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #21391 (comment) was created by @soulxu.

see: more, trace.

@soulxu
Copy link
Member Author

soulxu commented May 27, 2022

seems CI issue also. not waste resources to retest again.

@soulxu
Copy link
Member Author

soulxu commented Jun 2, 2022

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #21391 (comment) was created by @soulxu.

see: more, trace.

@soulxu
Copy link
Member Author

soulxu commented Jun 2, 2022

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #21391 (comment) was created by @soulxu.

see: more, trace.

@soulxu
Copy link
Member Author

soulxu commented Jun 2, 2022

@soulxu
Copy link
Member Author

soulxu commented Jun 6, 2022

The CI passed after merge with main

Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM with small comments, thanks.

/wait

Signed-off-by: He Jie Xu <[email protected]>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks LGTM with a small comment.

/wait

Copy link
Contributor

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

Before finalizing this, I just want to confirm that we do NOT think we need any other data with each address. Some examples of things that might be useful, but possibly none of these are needed:

  • different socket options
  • different stat prefix (if no stat-prefix is specified, we currently use the address as the stat-prefix; if a stat-prefix is specified then there's no way to get different stats for the different addresses)
  • anything related to internal listeners (cc @lambdai)
  • different value of freebind

Adding a message to repeat here gives us the ability to add more settings in the future if we need to, so it seems more future-proof.

Another way of thinking about it: the result of this is that additional listening sockets are setup. Will we ever need to set configuration to change any of the settings that are on a socket, to be different between the different addresses on the same envoy listener?

@mattklein123
Copy link
Member

Adding a message to repeat here gives us the ability to add more settings in the future if we need to, so it seems more future-proof.

Yeah I like this idea. Good point. Let's do it.

@soulxu
Copy link
Member Author

soulxu commented Jun 8, 2022

  • different stat prefix (if no stat-prefix is specified, we currently use the address as the stat-prefix; if a stat-prefix is specified then there's no way to get different stats for the different addresses)

At least ensure that we already consider the pre-address stat prefix, but it is too complex for now. Thanks for the good point! let me update the PR

Signed-off-by: He Jie Xu <[email protected]>
@soulxu
Copy link
Member Author

soulxu commented Jun 8, 2022

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #21391 (comment) was created by @soulxu.

see: more, trace.

mattklein123
mattklein123 previously approved these changes Jun 8, 2022
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. Will defer to @ggreenway for approve/merge.

Copy link
Contributor

@ggreenway ggreenway left a comment

Choose a reason for hiding this comment

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

/wait

Signed-off-by: He Jie Xu <[email protected]>
@soulxu
Copy link
Member Author

soulxu commented Jun 9, 2022

/retest

@repokitteh-read-only
Copy link

Retrying Azure Pipelines:
Retried failed jobs in: envoy-presubmit

🐱

Caused by: a #21391 (comment) was created by @soulxu.

see: more, trace.

@soulxu
Copy link
Member Author

soulxu commented Jun 9, 2022

@mattklein123 sorry, I lost your approval since I updated the PR :)

@repokitteh-read-only repokitteh-read-only bot removed the api label Jun 9, 2022
@mattklein123 mattklein123 merged commit 10533dd into envoyproxy:main Jun 9, 2022
tyxia pushed a commit to tyxia/envoy that referenced this pull request Jun 14, 2022
Amila-Rukshan pushed a commit to Amila-Rukshan/envoy that referenced this pull request Jun 28, 2022
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.

Support multiple addresses per listener
4 participants