libnetwork icon indicating copy to clipboard operation
libnetwork copied to clipboard

Broadcast UPDATE event instead of CREATE if entry existed already

Open IMMORTALxJO opened this issue 4 years ago • 1 comments

relates to https://github.com/moby/moby/issues/41896

These changes fixed the issue in my case. I added the code that forces networkdb to broadcast UPDATE event instead of CREATE if entry in database exists already. So, if TableEvent with new LTime comes from Bulk Sync, event processes as UPDATE. That helps to avoid wrong LB endpoint weight in case of a race between TCP bulk sync and UDP synchronization.

IMMORTALxJO avatar Jan 24 '21 20:01 IMMORTALxJO

Note we have migrated this codebase over to github.com/moby/moby/libnetwork. We are not accepting PR's on this repo anymore except for backports to be included in moby 20.10

cpuguy83 avatar Jun 18 '21 22:06 cpuguy83