Skip to content

Commit f462591

Browse files
author
sai chaithanya
authored
feat(resource limits): add resource limits and request on NFS Provisioner (#89)
This PR adds resources requests and limits values after monitoring nfs-provisioner behavior during the idle and busy time. Steps performed to monitor: Noted the values of CPU & memory usage after applying nfs-provisioner YAML. Provisioned 50 NFS-PVCs, 100 NFS-PVCs at a time and collected the memory & CPU usage of the nfs-provisioner periodically. Signed-off-by: mittachaitu <[email protected]>
1 parent d995814 commit f462591

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

deploy/helm/charts/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Helm chart for OpenEBS Dynamic NFS PV. For instructions to install
44
type: application
55
# This is the chart version. This version number should be incremented each time you make changes
66
# to the chart and its templates, including the app version.
7-
version: 0.5.1
7+
version: 0.5.2
88
# This is the version number of the application being deployed. This version number should be
99
# incremented each time you make changes to the application.
1010
appVersion: 0.5.0

deploy/helm/charts/values.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,16 @@ nfsProvisioner:
5252
# choice for the user. This also increases chances charts run on environments with little
5353
# resources, such as Minikube. If you do want to specify resources, uncomment the following
5454
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
55+
# ## Normal cases CPU and memory usage are around ~10 millicores and
56+
# ## memory usage is around ~16Mb(after provisioing 70 volumes)
5557
# requests:
56-
# cpu: 100m
57-
# memory: 128Mi
58+
# cpu: 50m
59+
# memory: 50M
60+
# ## During provisioning(large no.of pvcs at a time) time CPU and memory usage
61+
# ## are around ~67 millicores(6.7% of cpu) and memory usage is around ~34Mb
5862
# limits:
59-
# cpu: 100m
60-
# memory: 128Mi
63+
# cpu: 200m
64+
# memory: 200Mi
6165
# If set to false, containers created by the nfs provisioner will run without extra privileges.
6266
privileged: true
6367
nodeSelector: {}

deploy/kubectl/openebs-nfs-provisioner.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,21 @@ spec:
160160
- test `pgrep "^provisioner-nfs.*"` = 1
161161
initialDelaySeconds: 30
162162
periodSeconds: 60
163+
resources:
164+
# We usually recommend not to specify default resources and to leave this as a conscious
165+
# choice for the user. This also increases chances charts run on environments with little
166+
# resources, such as Minikube. If you do want to specify resources, uncomment the following
167+
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
168+
# ## Normal cases CPU and memory usage are around ~10 millicores and
169+
# ## memory usage is around ~16Mb(after provisioing 70 volumes)
170+
requests:
171+
cpu: 50m
172+
memory: 50M
173+
## During provisioning(large no.of pvcs at a time) time CPU and memory usage
174+
## are around ~67 millicores(6.7% of cpu) and memory usage is around ~34Mb
175+
limits:
176+
cpu: 200m
177+
memory: 200M
163178
---
164179
#Sample storage classes for OpenEBS Local PV
165180
apiVersion: storage.k8s.io/v1

0 commit comments

Comments
 (0)