-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graceful restart for l3afd #432
Conversation
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.
Some minor changes and questions
// @Param cfgs body []models.L3afBPFPrograms true "BPF programs" | ||
// @Success 200 | ||
// @Router /l3af/configs/v1/restart [put] | ||
func HandleRestart(bpfcfg *bpfprogs.NFConfigs) http.HandlerFunc { |
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.
Should this endpoint be authenticated or anything? Is that handled elsewhere?
e5e71e5
to
4645f1e
Compare
78ab85d
to
7b73b40
Compare
cb54123
to
0ca2c36
Compare
971031e
to
4e2e20c
Compare
656c654
to
5b07cb2
Compare
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
4927af2
to
56197ca
Compare
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
56197ca
to
2aaf805
Compare
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.
Looks pretty good to me, just a few inline questions. And make sure to modify that line that was pointed out by @sanfern
Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
2ec2817
to
ed652c1
Compare
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.
LGTM
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.
LGTM, thanks for this amazing work!
Although, next time let's try to make multiple smaller PRs, 40 files is a lot to review. ;)
In this PR I have implemented graceful restart of l3afd means upgrading/restarting the l3afd without affecting ebpf programs state and having same level of control on eBPF programs as we were having on old instance.
This PR is dependent on
l3af-project/eBPF-Package-Repository#92
l3af-project/l3af-arch#124