Skip to content

reduce allocations when adding files - #110

Merged
dwertent merged 7 commits into
mainfrom
zero
Aug 4, 2023
Merged

dwertent merged 7 commits into
mainfrom
zero

Conversation

@matthyx

@matthyx matthyx commented Jul 31, 2023

Copy link
Copy Markdown
Contributor

Overview

This is with full_path enabled for trace_open and trace_openat:
image

GOMEMLIMIT=250MiB
resources:
  limits:
    cpu: 1500m
    memory: 600Mi
  requests:
    cpu: 500m
    memory: 600Mi                                                                                                                                                                

@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

2 similar comments
@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

2 similar comments
@github-actions

github-actions Bot commented Aug 1, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

github-actions Bot commented Aug 1, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

matthyx added 3 commits August 1, 2023 08:25
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@github-actions

github-actions Bot commented Aug 1, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

1 similar comment
@github-actions

github-actions Bot commented Aug 1, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
matthyx force-pushed the zero branch 2 times, most recently from 7225a0c to 472450d Compare August 1, 2023 08:39
@github-actions

github-actions Bot commented Aug 1, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

github-actions Bot commented Aug 1, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
matthyx force-pushed the zero branch 8 times, most recently from b905565 to 90bd9c8 Compare August 1, 2023 13:29
@github-actions

github-actions Bot commented Aug 1, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
matthyx force-pushed the zero branch 2 times, most recently from ab6fe2a to 82e7396 Compare August 2, 2023 13:11
@github-actions

github-actions Bot commented Aug 2, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
matthyx force-pushed the zero branch 3 times, most recently from 3c8847f to 400f302 Compare August 3, 2023 12:52
@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

matthyx added 2 commits August 3, 2023 15:10
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@matthyx
matthyx marked this pull request as ready for review August 3, 2023 14:25
@matthyx
matthyx requested a review from dwertent August 3, 2023 14:25
@github-actions

github-actions Bot commented Aug 3, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

1 similar comment
@github-actions

github-actions Bot commented Aug 4, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

Signed-off-by: Matthias Bertschy <matthias.bertschy@gmail.com>
@github-actions

github-actions Bot commented Aug 4, 2023

Copy link
Copy Markdown

Summary:

  • License scan: success
  • Credentials scan: success
  • Vulnerabilities scan: success
  • Unit test: success
  • Go linting: success

@dwertent dwertent added the release Create release label Aug 4, 2023
@dwertent

dwertent commented Aug 4, 2023

Copy link
Copy Markdown

/improve

@dwertent dwertent left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done!
Please see my comments :)

Comment thread pkg/config/config.go
EnableRelevancy bool `mapstructure:"relevantCVEServiceEnabled"`
InitialDelay time.Duration `mapstructure:"initialDelay"`
MaxSniffingTime time.Duration `mapstructure:"maxSniffingTimePerContainer"`
UpdateDataPeriod time.Duration `mapstructure:"updateDataPeriod"`

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add this to the helm chart as well

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, we should have default values (if missing from config)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what we should modify in the helm chart is the updateDataPeriod as well as the resources...

})
}

func (b BoltFileHandler) AddFiles(bucket string, files map[string]bool) error {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should consider removing the boltdb support so we wont need to maintain it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Create release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants