You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a three node consul cluster, A, B, C, A is leader
I use the consul cluster as a service discovery for the docker container, There is a consul agent member in each docker container
When consul agent member start join CONSUL_IP, register information with Consul, and I will use api interface "consul_host:8500/health/service/web?passing&node-meta=" to query data, to determine whether member is alived。
Oddly enough, when my container start join with leader(A), and I can query the data immediately by api. but when my container start join with not leader node(B or C), I can't query the data immediately by api, “consul members” command is normal, but query the members data by api interface old data, It'll be normal in about three minutes, I can query the data normally。
Why this is the case, the data synchronization between consul nodes is delayed, or my method is wrong? And how can I query the data immediately by api.
please enlighten, thanks!
Hi @lf1029698952 sorry for the late response on this one - did you figure this out? It might help to see some log output from the servers at debug level when this is happening.
I have a three node consul cluster, A, B, C, A is leader
I use the consul cluster as a service discovery for the docker container, There is a consul agent member in each docker container
When consul agent member start join CONSUL_IP, register information with Consul, and I will use api interface "consul_host:8500/health/service/web?passing&node-meta=" to query data, to determine whether member is alived。
Oddly enough, when my container start join with leader(A), and I can query the data immediately by api. but when my container start join with not leader node(B or C), I can't query the data immediately by api, “consul members” command is normal, but query the members data by api interface old data, It'll be normal in about three minutes, I can query the data normally。
Why this is the case, the data synchronization between consul nodes is delayed, or my method is wrong? And how can I query the data immediately by api.
please enlighten, thanks!
consul version
Client:
[0.7.5]
Server:
[0.7.5]
consul info
Server:
Operating system and Environment details
Linux 3.10.0-514.el7.x86_64 #1 SMP Tue Nov 22 16:42:41 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: