-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
help request: Apisix3 decoupled mode does not automatically refresh CP data without DP #9582
Comments
I want to ask, is this definitely a bug? If it's a bug, why hasn't anyone else encountered it,Or is there a problem with my configuration? |
@XW512 please provide the whole config.yaml file with proper formatting thanks so that I can try to reproduce it, thanks. |
OK,thank you this is data_plane config: apisix: this is control_plane config: deployment: producer mtls from https://apisix.apache.org/zh/docs/apisix/tutorials/client-to-apisix-mtls/ |
@XW512, please paste your config.yaml file with proper formatting here. 🤦🏼♂️ 🤦🏼♂️ |
OK apisix: this is control_plane config.yaml deployment: producer mtls from https://apisix.apache.org/zh/docs/apisix/tutorials/client-to-apisix-mtls/ |
The conf server is removed, so the etcd communication rolls back to what 2.x versions behave like, i.e. no matter CP or DP, connects to etcd directly. Closed by #10012 |
thank you,I would like to ask how to configure the Decoupled mode for DP and CP isolation in version 3.5.0. I see that the configuration method after conf server is removed is not described in the document 3.5.0 |
No, we have changed the doc: apisix/docs/en/latest/deployment-modes.md Line 68 in c757baf
As well as the conf: apisix/conf/config-default.yaml Lines 616 to 625 in c757baf
The configuration of etcd, no matter which deployment mode, is configured just like 2.x version, except the role field. |
thank you, I tried using the method you mentioned above and found that DP can get up, while CP cannot. The error is as follows: The configuration information of my CP is as follows: deployment: I added information and found that it is necessary to configure the path related to the certificate, otherwise an error will be reported deployment: |
Is this modification not in version 3.5.0, but in the master branch?When is the next release expected to be released |
Yes, it's only on the master branch. It'll be available in 3.6 or backport to 3.5 if necessary. |
I would like to try this new mode now. Could you please create a release version first? Thank you very much |
You could try it from source code, but yes, it's a bit tough job. |
Thank you very much. I will give it a try |
Description
I have set up the decoupled mode of Apisix3, but found that the DP node will not automatically refresh the modified data of the CP node. If I restart the DP node and the data can be synchronized to the DP node, is there a problem with my configuration
the DP config
apisix:
ssl:
ssl_trusted_certificate: /app/apisix-3.3.0/conf/cert/mtls_ca.crt
deployment:
role: data_plane
role_data_plane:
config_provider: control_plane
control_plane:
host:
- "https://gw-cp.intsit.local:9280"
timeout: 5
prefix: "/apisix"
admin:
admin_key:
- name: admin
key: 7b0d04aef23327824710da9ce10c55f0 # using fixed API token has security risk, please update it when you deploy to production environment
role: admin
this CP config
deployment:
role: control_plane
role_control_plane:
config_provider: etcd
conf_server:
listen: 0.0.0.0:9280
cert: /app/apisix-3.3.0/conf/cert/mtls_server.crt
cert_key: /app/apisix-3.3.0/conf/cert/mtls_server.key
admin:
admin_key:
- name: admin
key: 7b0d04aef23327824710da9ce10c55f0 # using fixed API token has security risk, please update it when you deploy to production environment
role: admin
Environment
apisix version
): 3.3.0uname -a
): centos8openresty -V
ornginx -V
): 1.19.9.1curl http://127.0.0.1:9090/v1/server_info
): 3.5.9luarocks --version
): 3.8.0The text was updated successfully, but these errors were encountered: