Skip to content
New issue

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

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

Already on GitHub? # to your account

How Robusta KRR calculate replicas in deployments? #385

Closed
mgfnv9 opened this issue Dec 26, 2024 · 3 comments
Closed

How Robusta KRR calculate replicas in deployments? #385

mgfnv9 opened this issue Dec 26, 2024 · 3 comments

Comments

@mgfnv9
Copy link

mgfnv9 commented Dec 26, 2024

Help me please understand, how Robusta calculate metrics and give recommendations if I have two/three pods?

Example

    "object": {
    "cluster": "test-cluster",
    "name": "some-custom-service-deployment",
    "container": "custom-service-gateway",
    "pods": [
      {
        "name": "some-custom-service-deployment-675dc7bd84-zq5dk",
        "deleted": false
      },
      {
        "name": "some-custom-service-deployment-675dc7bd84-slspv",
        "deleted": false
      }
    ],
    "hpa": null,
    "namespace": "some-custom-service",
    "kind": "Deployment",
    "allocations": {
      "requests": {
        "cpu": 0.3,
        "memory": 2147483648.0
      },
      "limits": {
        "cpu": 1.0,
        "memory": 3221225472.0
      },
      "info": {}
    },
    "warnings": []
  },
  "recommended": {
    "requests": {
      "cpu": {
        "value": 0.105,
        "severity": "OK"
      },
      "memory": {
        "value": 2939158528.0,
        "severity": "CRITICAL"
      }
    },
    "limits": {
      "cpu": {
        "value": null,
        "severity": "WARNING"
      },
      "memory": {
        "value": 2939158528.0,
        "severity": "WARNING"
      }
    },
    "info": {
      "cpu": null,
      "memory": null
    }
  },
  "severity": "CRITICAL"
}
 ],
 "score": 15,
 "resources": [
   "cpu",
   "memory"
 ],

in this output recommendations for one pod? or for two all together pods?

@aantn
Copy link
Contributor

aantn commented Jan 1, 2025

Hi @mgfnv9, in the above example, the recommendations were calculated based on 2 pods in that deployment. You would apply the recommendation to the deployment to apply it to each future pod. Does that help?

@mgfnv9
Copy link
Author

mgfnv9 commented Jan 1, 2025

Hi @mgfnv9, in the above example, the recommendations were calculated based on 2 pods in that deployment. You would apply the recommendation to the deployment to apply it to each future pod. Does that help?

Thank you @aantn for help.

@aantn
Copy link
Contributor

aantn commented Jan 1, 2025

No problem, happy to help!

@aantn aantn closed this as completed Jan 1, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants