yunify / hostnic-cni

hostnic-cni is a Container Network Interface plugin.
Apache License 2.0
30 stars 12 forks source link

Daemon process #18

Closed martinyunify closed 7 years ago

martinyunify commented 7 years ago

daemon process #9 -- fill nic pool with nic id. -- maintain nic info table -- delete cached nic when exit. -- manage and allocate gateway nic -- add version number generator script -- validate vxnet before launch server #16 -- update README -- refactor nic pool -- add prometheus monitoring -- add clean cache command

martinyunify commented 7 years ago

为了避免死锁网卡信息和网卡缓冲池是分开维护的。这里可能有不同步所以加了validationfunc确保拿到的网卡在线。加waitgroup是因为需要在关闭的时候删除返还的网卡。只有在关闭的时候才会调用wait。