Skip to content

Commit

Permalink
Spare some memory for the apache process
Browse files Browse the repository at this point in the history
  • Loading branch information
EugenMayer committed Jan 8, 2025
1 parent 9d6eecf commit 06e4b47
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 14 deletions.
4 changes: 4 additions & 0 deletions charts/vulnz-nvd-mirror/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.4

- Leave some memory for apache

## 0.4.3

- Fix resource limits being to restrictive by default, crashing the app
Expand Down
2 changes: 1 addition & 1 deletion charts/vulnz-nvd-mirror/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kubeVersion: ">=1.24.0-0"
apiVersion: v2
name: vulnz-nvd-mirror
version: 0.4.3
version: 0.4.4
appVersion: 7.1.0
description: NVD api mirror and cache
home: https://github.com/EugenMayer/helm-charts/tree/main/charts/vulnz-nvd-mirror
Expand Down
27 changes: 14 additions & 13 deletions charts/vulnz-nvd-mirror/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,19 +55,20 @@ workload:
# needed since vulnz is rather memory hungry and will crash with less
memory: 3Gi
env:
# wee need to override the default, see https://github.com/jeremylong/Open-Vulnerability-Project/issues/245
JAVA_OPT: -XX:InitialRAMPercentage=70.0 -XX:MaxRAMPercentage=100.0
# # set this to preseed your API key. the expected structure is
# NVD_API_KEY:
# secretKeyRef:
# name: nvd-api-key
# key: password
# # amount of retries
# MAX_RETRY: 10
# # fetch max record pre page - cannot be higher then 2000 by API limits
# MAX_RECORDS_PER_PAGE: 2000
# # show debug logs
# DEBUG: true
# we need to override the default, see https://github.com/jeremylong/Open-Vulnerability-Project/issues/245
# leave some for the apache process
JAVA_OPT: -XX:InitialRAMPercentage=70.0 -XX:MaxRAMPercentage=95.0
# # set this to preseed your API key. the expected structure is
# NVD_API_KEY:
# secretKeyRef:
# name: nvd-api-key
# key: password
# # amount of retries
# MAX_RETRY: 10
# # fetch max record pre page - cannot be higher then 2000 by API limits
# MAX_RECORDS_PER_PAGE: 2000
# # show debug logs
# DEBUG: true

ingress:
main:
Expand Down

0 comments on commit 06e4b47

Please sign in to comment.