-
Notifications
You must be signed in to change notification settings - Fork 193
Conversation
There are generally three problems for service operations:
|
@feiskyer Sorry for the delay.
It is what is implemented. Won't rewrite service field in podspec until operation on VM succeed. And also ipvs rules in VM will rollback if operation failed.
Indeed, I'll enhance it later.
Currently, Each operation of service API will map to two types of operation on ipvs rules --- add and delete. Generation code is here. real/virtualServer and protocol is determined by API arguments. Proxy algorithm is hard coded as NAT(masquerading), scheduling algorithm as RR and weight of real server as 1.
I think part of them can support configuration if we need to. While I not sure about proxy algorithm, DR seems not meet our need, for can't support port mapping. I've not really concerned with FULLNAT before, I checked that alibaba LVS project just now, seems not updated for a long time, and that part of code has not merged to upstream, I'm not sure we really need that part of feature. If we do, we may could use that version of |
UPDATE:
@feiskyer PTAL |
lgtm. cc/ @gnawux would you like to take another look? |
I will have a look soon. |
@gnawux It could, but I don't think there are such use cases. |
Yeap, will add soon. |
Signed-off-by: Gao feng <omarapazanadi@gmail.com>
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
Signed-off-by: Crazykev <crazykev@zju.edu.cn>
I merged this PR, thank you @Crazykev |
Replace service implement with IPVS.
This PR is implement through manipulating
ipvsadm
tool to admin ipvs rules. So Add/Delete/UpdateService operation will be converted to correspondingipvsadm
rules, here I call them patch.How to test this:
/cc @feiskyer @resouer