Skip to content

feat: consul deduplicate and ip port sort#10941

Merged
juststillthinking merged 17 commits into
apache:masterfrom
theweakgod:feat/add_consul_deduplicate_and_ip_port_sort
Feb 27, 2024
Merged

feat: consul deduplicate and ip port sort#10941
juststillthinking merged 17 commits into
apache:masterfrom
theweakgod:feat/add_consul_deduplicate_and_ip_port_sort

Conversation

@theweakgod

@theweakgod theweakgod commented Feb 18, 2024

Copy link
Copy Markdown
Contributor

Description

Fixes #10882

Remove duplicate services caused by each node in the Consul cluster, and add sorting by host_sort, port_sort, combine_sort.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@juststillthinking

Copy link
Copy Markdown
Contributor

please make the ci pass

@juststillthinking

Copy link
Copy Markdown
Contributor

Can we add test cases to cover this?

@theweakgod

Copy link
Copy Markdown
Contributor Author

Can we add test cases to cover this?

yeah, I add it, But I forgot it😂.

@theweakgod

Copy link
Copy Markdown
Contributor Author

@monkeyDluffy6017 It's already been added.

Comment thread t/discovery/consul.t Outdated
qr//
]
--- ignore_error_log

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This file is too long, you should create a new test file

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: As a user, I want the consul plug-in to call the serviceID of the health api for deduplication.

4 participants