Skip to content

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

soulxu added 2 commits May 20, 2022 05:51
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
@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 <hejie.xu@intel.com>
Signed-off-by: He Jie Xu <hejie.xu@intel.com>
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 <hejie.xu@intel.com>
@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

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
@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 <hejie.xu@intel.com>
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
Member

@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 <hejie.xu@intel.com>
@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
Member

@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 <hejie.xu@intel.com>
@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
…1391)

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: Tianyu Xia <tyxia@google.com>
Amila-Rukshan pushed a commit to Amila-Rukshan/envoy that referenced this pull request Jun 28, 2022
…1391)

Signed-off-by: He Jie Xu <hejie.xu@intel.com>
Signed-off-by: Amila Senadheera <amila.15@cse.mrt.ac.lk>
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