Skip to content

Commit 11fa7e9

Browse files
Change the resource requirement base calculation from 6 to 3 OSDs
In 4.16 when we implemented this change we had assumed the base to be 6 OSDs, but since than we have added a lot more pods to the ODF deployment. The ODF docs also mention the resource requirement to be based on 3 OSDs Signed-off-by: Malay Kumar Parida <[email protected]>
1 parent 0db138b commit 11fa7e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/odf/utils/ocs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,14 @@ export const isFlexibleScaling = (
114114

115115
/**
116116
* Returns the minimum required resources taking into account the OSD pods.
117-
* Default requirements assume 6 OSDs deployed.
117+
* Default requirements assume 3 OSDs deployed.
118118
*/
119119
export const getResourceProfileRequirements = (
120120
profile: ResourceProfile,
121121
osdAmount: number
122122
): { minCpu: number; minMem: number } => {
123123
const { minCpu, minMem, osd } = RESOURCE_PROFILE_REQUIREMENTS_MAP[profile];
124-
const extraOsds = osdAmount - 6;
124+
const extraOsds = osdAmount - 3;
125125
let cpu = minCpu;
126126
let mem = minMem;
127127
if (extraOsds > 0) {

0 commit comments

Comments
 (0)