-
Notifications
You must be signed in to change notification settings - Fork 63
Add ipvsadm tool in favor of IPVS implement of service #247
Conversation
|
Can one of the admins verify this patch? |
|
is hyperstart-exec(#246) suitable for it? |
Agreed with this. it's better to reuse hyperstart-exec. |
|
@laijs @feiskyer Agreed. This part of code is written months ago, sorry for not keeping update with this project recently.
I believe it's not hard to meet with hyperstart-exec, will read through the latest code later and find out how to achieve that, thanks. |
|
@Crazykev @feiskyer @resouer Could you guys take a look at https://github.com/mqliang/libipvs, a pure go lib work with IPVS using generic netlink socket, thus removing the runtime dependency of ipvsadm tool |
|
Can one of the admins verify this patch? |
|
LGTM. @laijs Do you want to have another look? |
build/make-initrd.sh
Outdated
| cp ../src/init /tmp/hyperstart-rootfs | ||
| cp busybox /tmp/hyperstart-rootfs | ||
| cp iptables /tmp/hyperstart-rootfs | ||
| cp ipvsadm /tmp/hyperstart-rootfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please directly copy all the above binaries into /tmp/hyperstart-rootfs/sbin?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated, is this what you want?
53b255c to
b70ef61
Compare
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
|
@laijs CI green now. |
this PR is IPVS service workflow in hyperstart.
ipvsadmtool to manipulate ipvs rules,ipvsadmis static built in hyper container.2. add two method usingipvsadm -Snto get ipvs rules andipvsadm -Rto load ipvs rules.3. useipvsadm -Cto clear ipvs rules,clearis specified./cc @feiskyer @resouer