Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-12-12 Thread Han Zhou
Hi Yun, Sorry for late reply. Thanks for trying the patch. In fact, OVSDB will trigger compaction by itself, depending on DB size and time, and the snap is just in the same data file. It is just in the file header (usually the second line). So based on what you said, it seems the patch solved your

Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-12-09 Thread taoyunupt
Hi, Han, I do not encounter that problem these days after using this patch. I think there is no COMPACT in my environment. Actaully , I don't see any snap file in /var/lib/openvswitch. Thanks, Yun At 2019-12-04 10:01:16, "Han Zhou" wrote: Hi, Could you see if this p

Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-12-03 Thread Han Zhou
Hi, Could you see if this patch fixes your problem? https://patchwork.ozlabs.org/patch/1203951/ Thanks, Han On Mon, Dec 2, 2019 at 12:28 AM Han Zhou wrote: > Sorry for the late reply. It was holiday here. > I didn't see such problem when there is no compaction. Did you see this > problem when

Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-12-02 Thread Han Zhou
Sorry for the late reply. It was holiday here. I didn't see such problem when there is no compaction. Did you see this problem when DB compaction didn't happen? The difference is that after compaction the RAFT log doesn't have any entries and all the data is in the snapshot. On Fri, Nov 29, 2019 a

Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-11-29 Thread taoyunupt
Hi,Han Hope to receive your reply. Thanks, Yun 在 2019-11-28 16:17:07,"taoyunupt" 写道: Hi,Han Another question. NO COMPACT. If restart a follower , leader sender some entries during the break time, when it has started, if it also happend to this problem? What is the diff

Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-11-28 Thread taoyunupt
Hi,Han Another question. NO COMPACT. If restart a follower , leader sender some entries during the break time, when it has started, if it also happend to this problem? What is the difference between simply restart and COMPACT with restart ? Thanks, Yun 在 2019-11-28 13:58:36,

Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-11-27 Thread taoyunupt
Hi,Han Thanks for your reply. I think maybe we can disconnect the failed follower from the Haproxy then synchronize the date, after all completed, reconnect it to Haproxy again. But I do not know how to synchronize actually. It is just my naive idea. Do you have some suggesti

[ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-11-27 Thread taoyunupt
Hi, My OVN cluster has 3 OVN-northd nodes, They are proxied by Haproxy with a VIP. Recently, I restart OVN cluster frequently. One of the members report the logs below. After read the code and paper of RAFT, it seems normal process ,If the follower does not find an entry in its log with

Re: [ovs-discuss] [ovs-dev] [OVN][RAFT] Follower refusing new entries from leader

2019-11-27 Thread Han Zhou
On Wed, Nov 27, 2019 at 7:22 PM taoyunupt wrote: > > Hi, > My OVN cluster has 3 OVN-northd nodes, They are proxied by Haproxy with a VIP. Recently, I restart OVN cluster frequently. One of the members report the logs below. > After read the code and paper of RAFT, it seems normal process