Skip to content

Commit

Permalink
Update HugePages library (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
dariofaccin authored Oct 25, 2023
1 parent b661a95 commit cab1cf3
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def _hugepages_volumes_func_from_config(self) -> list[HugePagesVolume]:

# Increment this PATCH version before using `charmcraft publish-lib` or reset
# to 0 if you are raising the major API version
LIBPATCH = 1
LIBPATCH = 2

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -564,10 +564,8 @@ def _generate_resource_requirements_from_requested_hugepage(self) -> ResourceReq
for hugepage in self.hugepages_volumes_func():
limits.update({f"hugepages-{hugepage.size}": hugepage.limit})
limits.update({"cpu": "2"})
limits.update({"memory": "512Mi"})
requests.update({f"hugepages-{hugepage.size}": hugepage.limit})
requests.update({"cpu": "2"})
requests.update({"memory": "512Mi"})
return ResourceRequirements(
limits=limits,
requests=requests,
Expand Down

0 comments on commit cab1cf3

Please sign in to comment.