-
Notifications
You must be signed in to change notification settings - Fork 54
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
it happens time out per 1minute when use etcd v3 watch method #56
Comments
@nic-chen do you have time to confirm this problem? |
I do not know how to fix it now. we mainly use etcd v2 now. |
I has used etcd v2 don't has this problem, I think the reason is etcd v3 should be http response with no buffering( cause by the timing of buffer flush ) , you can see etcd office api guide such as
so how to set |
Hi @bingchengxiaobing117 are you still facing the same problem. It seems I could not reproduce it. Test code: local etcd, err = require("resty.etcd").new({protocol = "v3"})
check_res(etcd, err)
local res, err = etcd:set("/test", "abc")
check_res(res, err)
ngx.timer.at(200, function ()
etcd:set("/test", "bcd3")
end)
local cur_time = ngx.now()
local body_chunk_fun, err = etcd:watch("/test", {timeout = 300})
if not body_chunk_fun then
ngx.say("failed to watch: ", err)
end Log:
|
when I use etcd v3 watch method(default params),The following questions occurs:
etcd endpoints has three ip list such as (1.1.1.1:2379;1.1.1.2:2379;1.1.1.3:2379;)
@YuanSheng Wang Have you met this problem? How to solve
The text was updated successfully, but these errors were encountered: