feat(standalone): support revision in API-driven standalone mode like etcd#12214
Merged
Conversation
AlinsRan
marked this pull request as ready for review
May 15, 2025 01:01
AlinsRan
marked this pull request as draft
May 15, 2025 08:01
AlinsRan
force-pushed
the
feat/incr-sync-config
branch
from
May 15, 2025 23:45
1c4a014 to
17927e2
Compare
AlinsRan
marked this pull request as ready for review
May 16, 2025 01:05
nic-6443
reviewed
May 16, 2025
nic-6443
reviewed
May 16, 2025
nic-6443
reviewed
May 16, 2025
Member
|
The title of this PR is not quite appropriate, it can be changed to: |
bzp2010
reviewed
May 16, 2025
nic-6443
previously approved these changes
May 16, 2025
membphis
previously approved these changes
May 16, 2025
bzp2010
reviewed
May 19, 2025
bzp2010
reviewed
May 19, 2025
Member
|
Hi, please also check the checklist items to make the pr clear |
kayx23
reviewed
May 20, 2025
Co-authored-by: Traky Deng <[email protected]>
bzp2010
previously approved these changes
May 20, 2025
bzp2010
left a comment
Contributor
There was a problem hiding this comment.
Agree in principle with the PR and we can merge when you resolve all the issues on the documentation.
Co-authored-by: Zeping Bai <[email protected]>
nic-6443
approved these changes
May 20, 2025
bzp2010
approved these changes
May 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
In standalone mode, APISIX’s Admin API currently requires clients to retrieve the entire configuration on every sync. As configurations grow in size or change more often, this full-sync approach can lead to unnecessary network traffic and increased latency in applying updates. Moreover, frequent resource changes force a full rebuild of the internal radixtree, which significantly degrades lookup performance under heavy churn.
In the scenario of service discovery, the upstream will always update frequently, and we hope to only update the upstream without affecting the usage of other resources.
Control the changes of each resource by adding
<resource-type>_conf_version:{ "consumer_groups_conf_version": 1000, "consumers_conf_version": 1000, "global_rules_conf_version": 1000, "plugin_configs_conf_version": 1000, "plugin_metadata_conf_version": 1000, "protos_conf_version": 1000, "routes_conf_version": 1000, "secrets_conf_version": 1000, "services_conf_version": 1000, "ssls_conf_version": 1000, "upstreams_conf_version": 1000 "routes": [ { "id": "r1", "uri": "/hello", "upstream_id": "u1" } ], "upstreams": [ { "id": "u1", "nodes": { "127.0.0.1:1980": 1, "127.0.0.1:1980": 1 }, "type": "roundrobin" } ] "services":[] }Checklist