-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add reusable shared buffer for transactions #9
Add reusable shared buffer for transactions #9
Conversation
f61a69c
to
0c9acde
Compare
|
8b00533
to
83d2b7d
Compare
It's always good to provide a PR description. For the benefit of people in the future trying to figure out why stuff was done |
go.mod
Outdated
@@ -1,4 +1,4 @@ | |||
module sigs.k8s.io/knftables | |||
module github.com/aroradaman/knftables |
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.
you shouldn't need to do this... make test
should work anyway... what problem where you having?
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.
I was planning to point to my fork in k/k and then run pull-kubernetes-e2e-gci-gce-nftables
for testing
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.
will drop the dummy commit after testing.
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.
ok, you probably just need to use the replace
section of go.mod
in the k/k PR. (The existing replacements are all just for the staging repos, but you can add a line like:
sigs.k8s.io/knftables => github.com/aroradaman/knftables TAG-OR-HASH
(and then run go mod tidy
if you specified a hash, to make it convert it to a fake tag)
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.
This + ./hack/update-vendor.sh
did the trick.
k/k MR for testing the change by trigerring |
Signed-off-by: Daman Arora <aroradaman@gmail.com>
93d0c09
to
841e0a5
Compare
pull-kubernetes-e2e-gci-gce-nftables is not stable right now - kubernetes/test-infra#32485 skipping this test |
There's a kind-based nftables job too... um... it's probably There's an nftables scalability job too, and it would be cool to see if this ends up visible in the results... https://gist.github.com/aojea/276d1f8061403b6687ee12b2f2c7522e explains (part of) how to analyze the prometheus dumps... |
|
@danwinship do you want to ship this with k/k 1.31? |
yes, let's get this in |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aroradaman, danwinship The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Should I point the knftables dependency in k/k to this commit, or are we cutting a release? |
Should wait for a release. |
This PR introduces a shared reusable buffer for transactions within a
realNFTables
instance.This improves performance by reducing the memory allocations for running nft transactions.