kelseyhightower / confd

Manage local application configuration files using templates and data from etcd or consul
MIT License
8.35k stars 1.41k forks source link

Combining --watch and --interval with etcd backend causes confd to miss updates #821

Open jhsware opened 4 years ago

jhsware commented 4 years ago

It appears that if you pass both --watch and --interval options when connected to a etcd backend, confd has issues where it can miss the second change if two updates are done rapidly. Both are running on Centos 7 servers in a distributed cluster.

Removing the --interval option fixes this, so perhaps on should just ditch the --interval option when --watch is passed. Or fail with a warning.

wuceyang commented 1 year ago

.i watch etcdv3 without this option, and nginx config file not update in a few minutes after run command "./confd -watch -basic-auth -username xxx -password yyy -log-level debug -interval 1 -node http://zzz, but at first the nginx config file update normally.