Skip to content

http call always failed (no healthy upstream) if target cluster has lb subset config #15163

Closed

Description

@wbpcode

Title: http call always failed (no healthy upstream) if target cluster has lb subset config

Description:

When I try to send http request with cluster->httpAsyncClient().send(...), if target cluster has lb subset config, then the requests always failed with a No Healthy Upstream error.
The reason is the metadataMatchCriteria() of route entry of async http client always return null.

const Router::MetadataMatchCriteria* metadataMatchCriteria() const override { return nullptr; }

Activity

  1. added
    triage
    on Feb 24, 2021
  2. wbpcode commented on Feb 24, 2021

    @wbpcode
    MemberAuthor

    Maybe we can extend RequestOption so that it can be used to pass metadataMatchCriteria. When users use async http client to send requests, they can configure metadataMatchCriteria according to their needs. 🤔

  3. added
    enhancement
    and removed
    triage
    on Feb 24, 2021
  4. zuercher commented on Feb 24, 2021

    @zuercher
    Member

    Some mechanism for passing the required metadata would be necessary for this to work.

  5. github-actions commented on Mar 26, 2021

    @github-actions

    This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity occurs. Thank you for your contributions.

  6. added
    stale
    on Mar 26, 2021
  7. wbpcode commented on Mar 27, 2021

    @wbpcode
    MemberAuthor

    /no-stale

  8. removed
    stale
    on Mar 27, 2021
  9. wbpcode commented on Apr 6, 2021

    @wbpcode
    MemberAuthor

    For this problem, I think a small extension to RequestOption/StreamOption is sufficient. Just as below:

        StreamOptions& setmetadataMatchCriteria(const Router::MetadataMatchCriteria* m) {
          metadata_match_criteria_ = m;
          return *this;
        }
    
  10. wbpcode commented on Apr 19, 2021

    @wbpcode
    MemberAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/load balancingenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions