Skip to content
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

reduce the usage of k8s client api #625

Merged
merged 1 commit into from Dec 16, 2022
Merged

reduce the usage of k8s client api #625

merged 1 commit into from Dec 16, 2022

Conversation

Ankurk99
Copy link
Contributor

@Ankurk99 Ankurk99 commented Dec 6, 2022

  • add pprof support
  • avoid the k8s client usage to once per function call instead of on per log basis
  • Add optimization flags to go build (-O flag enables compiler's optimization, -gcflags="-m" enables the inlining of functions which can improve the performance of generated code)
  • refractor some code

src/plugin/kubearmor.go Outdated Show resolved Hide resolved
src/libs/common.go Outdated Show resolved Hide resolved
@Ankurk99
Copy link
Contributor Author

Ankurk99 commented Dec 9, 2022

The most recent change increased the timeout limit to 90 seconds, this will allow us to do profiling of upto 90 seconds.

src/plugin/kubearmor.go Outdated Show resolved Hide resolved
@Ankurk99 Ankurk99 marked this pull request as draft December 12, 2022 19:43
src/libs/common.go Outdated Show resolved Hide resolved
src/libs/common.go Outdated Show resolved Hide resolved
src/observability/summarizer.go Outdated Show resolved Hide resolved
src/plugin/kubearmor.go Show resolved Hide resolved
src/plugin/kubearmor.go Outdated Show resolved Hide resolved
src/plugin/kubearmor.go Outdated Show resolved Hide resolved
src/plugin/kubearmor.go Outdated Show resolved Hide resolved
src/observability/summarizer.go Outdated Show resolved Hide resolved
src/observability/summarizer.go Outdated Show resolved Hide resolved
src/observability/summarizer.go Outdated Show resolved Hide resolved
Signed-off-by: Ankur Kothiwal <ankur.kothiwal@accuknox.com>
@nyrahul nyrahul merged commit bdf322d into accuknox:dev Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants