Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for different resource request / limit for arbiters #1416

Closed
radsto opened this issue Oct 25, 2023 · 1 comment
Closed

Support for different resource request / limit for arbiters #1416

radsto opened this issue Oct 25, 2023 · 1 comment
Assignees
Labels

Comments

@radsto
Copy link

radsto commented Oct 25, 2023

What did you expect?
In the statefulset configuration, we can set CPU & RAM requests and limits per container which are then merged into the created pods.

I was expecting in the case of using Guaranteed QoS (requests = limits) :

  • to be able to set specific (lower resources) for arbiters which are supposed to be very lightweight

I looked in the source but can't find wether it is supported or not.

Could you please help me ?

What happened instead?
Same limits / requests are applied to all pods no matter if they are arbiters or replica / secondary nodes.

Screenshots
Real usage :
image

Pod Specs :

"mongo-prod-hds-0"
"mongod"
"mongodb-agent"
{
  "limits": {
    "cpu": "2",
    "memory": "2Gi"
  },
  "requests": {
    "cpu": "500m",
    "memory": "2Gi"
  }
}
{
  "limits": {
    "cpu": "1",
    "memory": "384Mi"
  },
  "requests": {
    "cpu": "250m",
    "memory": "384Mi"
  }
}
"mongo-prod-hds-arb-0"
"mongod"
"mongodb-agent"
{
  "limits": {
    "cpu": "2",
    "memory": "2Gi"
  },
  "requests": {
    "cpu": "500m",
    "memory": "2Gi"
  }
}
{
  "limits": {
    "cpu": "1",
    "memory": "384Mi"
  },
  "requests": {
    "cpu": "250m",
    "memory": "384Mi"
  }
}
"mongo-prod-hds-1"
"mongod"
"mongodb-agent"
{
  "limits": {
    "cpu": "2",
    "memory": "2Gi"
  },
  "requests": {
    "cpu": "500m",
    "memory": "2Gi"
  }
}
{
  "limits": {
    "cpu": "1",
    "memory": "384Mi"
  },
  "requests": {
    "cpu": "250m",
    "memory": "384Mi"
  }
}
@irajdeep irajdeep self-assigned this Nov 27, 2023
@irajdeep
Copy link
Contributor

Hi @radsto - this is a known issue #962 - currently we don't have any plans to address this. However we welcome contribution from community to add this feature.

I am going to close this as duplicate of #962

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants