Repository navigation
Open
Description
Describe the bug
simple-limit and simple showed different CPU Requests
./krr simple -p https://vmselect.corp/select/0/prometheus --prometheus-label cluster -l prod -n istio-ingress --allow-hpa
_____ _ _ _ _______ _____
| __ \ | | | | | |/ / __ \| __ \
| |__) |___ | |__ _ _ ___| |_ __ _ | ' /| |__) | |__) |
| _ // _ \| '_ \| | | / __| __/ _` | | < | _ /| _ /
| | \ \ (_) | |_) | |_| \__ \ || (_| | | . \| | \ \| | \ \
|_| \_\___/|_.__/ \__,_|___/\__\__,_| |_|\_\_| \_\_| \_\
Thanks for using Robusta KRR. If you have any questions or feedback, please feel free to reach out to us at
https://github.com/robusta-dev/krr/issues
Watch our latest video to optimize your workloads and save costs: https://www.youtube.com/watch?v=TYRA2QcDIuI
Running Robusta's KRR (Kubernetes Resource Recommender) v1.22.0
Using strategy: Simple
Using formatter: table
[20:33:37] INFO Using clusters: ['yc-core-app-prod'] runner.py:284
INFO Prometheus URL is specified, will not auto-detect a metrics service loader.py:55
INFO Trying to connect to Prometheus for yc-core-app-prod cluster prometheus_metrics_service.py:69
INFO Using Prometheus at https://vmselect.mos.corp/select/0/prometheus for cluster yc-core-app-prod prometheus_metrics_service.py:98
[20:33:38] INFO Prometheus found loader.py:74
INFO Prometheus connected successfully for yc-core-app-prod cluster loader.py:47
INFO Unable to check how much historical data is available on cluster yc-core-app-prod. Will assume it is sufficient and calculate recommendations anyway. (You can usually ignore this. Not all Prometheus runner.py:225
compatible metric stores support checking history settings.)
INFO Listing scannable objects in yc-core-app-prod __init__.py:96
[20:33:40] INFO Calculated recommendations for Deployment istio-ingress/istio-gateway/istio-proxy (using 4 metrics) runner.py:211
INFO Result collected, displaying... runner.py:347
Simple Strategy
CPU request: 95.0% percentile, limit: unset
Memory request: max + 15.0%, limit: max + 15.0%
History: 336.0 hours
Step: 1.25 minutes
All parameters can be customized. For example: `krr simple --cpu_percentile=90 --memory_buffer_percentage=15 --history_duration=24 --timeframe_duration=0.5`
Learn more: https://github.com/robusta-dev/krr#algorithm
┏━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ Number ┃ Namespace ┃ Name ┃ Pods ┃ Old Pods ┃ Type ┃ Container ┃ CPU Diff ┃ CPU Requests ┃ CPU Limits ┃ Memory Diff ┃ Memory Requests ┃ Memory Limits ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩
│ 1. │ istio-ingress │ istio-gateway │ 15 │ 60 │ Deployment │ istio-proxy │ +4.7399999999999975 │ (+315m) 4.0 -> 4.316 │ 6.0 -> unset │ -2595Mi │ (-173Mi) 1000Mi -> 827Mi │ 1512Mi -> 827Mi │
│ │ │ │ │ │ │ │ (15 pods) │ │ │ (15 pods) │ │ │
└────────┴───────────────┴───────────────┴──────┴──────────┴────────────┴─────────────┴─────────────────────┴──────────────────────┴──────────────┴─────────────┴──────────────────────────┴─────────────────┘
0 points - F
and
./krr simple-limit -p https://vmselect.mos.corp/select/0/prometheus --prometheus-label cluster -l prod -n istio-ingress --allow-hpa
_____ _ _ _ _______ _____
| __ \ | | | | | |/ / __ \| __ \
| |__) |___ | |__ _ _ ___| |_ __ _ | ' /| |__) | |__) |
| _ // _ \| '_ \| | | / __| __/ _` | | < | _ /| _ /
| | \ \ (_) | |_) | |_| \__ \ || (_| | | . \| | \ \| | \ \
|_| \_\___/|_.__/ \__,_|___/\__\__,_| |_|\_\_| \_\_| \_\
Thanks for using Robusta KRR. If you have any questions or feedback, please feel free to reach out to us at
https://github.com/robusta-dev/krr/issues
Watch our latest video to optimize your workloads and save costs: https://www.youtube.com/watch?v=TYRA2QcDIuI
Running Robusta's KRR (Kubernetes Resource Recommender) v1.22.0
Using strategy: Simple_Limit
Using formatter: table
[20:33:46] INFO Using clusters: ['yc-core-app-prod'] runner.py:284
[20:33:47] INFO Prometheus URL is specified, will not auto-detect a metrics service loader.py:55
INFO Trying to connect to Prometheus for yc-core-app-prod cluster prometheus_metrics_service.py:69
INFO Using Prometheus at https://vmselect.mos.corp/select/0/prometheus for cluster yc-core-app-prod prometheus_metrics_service.py:98
INFO Prometheus found loader.py:74
INFO Prometheus connected successfully for yc-core-app-prod cluster loader.py:47
INFO Unable to check how much historical data is available on cluster yc-core-app-prod. Will assume it is sufficient and calculate recommendations anyway. (You can usually ignore this. Not all Prometheus runner.py:225
compatible metric stores support checking history settings.)
INFO Listing scannable objects in yc-core-app-prod __init__.py:96
[20:33:51] INFO Calculated recommendations for Deployment istio-ingress/istio-gateway/istio-proxy (using 4 metrics) runner.py:211
INFO Result collected, displaying... runner.py:347
Simple_Limit Strategy
CPU request: 66.0% percentile, limit: 96.0% percentile
Memory request: max + 15.0%, limit: max + 15.0%
History: 336.0 hours
Step: 1.25 minutes
All parameters can be customized. For example: `krr simple_limit --cpu_request=66 --cpu_limit=96 --memory_buffer_percentage=15 --history_duration=24 --timeframe_duration=0.5`
Learn more: https://github.com/robusta-dev/krr#algorithm
┏━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━┳━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━┓
┃ Number ┃ Namespace ┃ Name ┃ Pods ┃ Old Pods ┃ Type ┃ Container ┃ CPU Diff ┃ CPU Requests ┃ CPU Limits ┃ Memory Diff ┃ Memory Requests ┃ Memory Limits ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━╇━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━┩
│ 1. │ istio-ingress │ istio-gateway │ 15 │ 60 │ Deployment │ istio-proxy │ -33.165000000000006 │ (-2.2110000000000003) 4.0 -> 1.789 │ 6.0 -> 2.803 │ -2595Mi │ (-173Mi) 1000Mi -> 827Mi │ 1512Mi -> 827Mi │
│ │ │ │ │ │ │ │ (15 pods) │ │ │ (15 pods) │ │ │
└────────┴───────────────┴───────────────┴──────┴──────────┴────────────┴─────────────┴─────────────────────┴────────────────────────────────────┴──────────────┴─────────────┴──────────────────────────┴─────────────────┘
0 points - F
Metadata
Metadata
Assignees
Labels
No labels
Activity
patsevanton commentedon Mar 17, 2025
Different:
simple 4.0 -> 4.316
and
simple-limit 4.0 -> 1.789
mouad5-bot commentedon Jun 17, 2025
Hello, Any response ?
aantn commentedon Jun 18, 2025
Hi @mouad5-bot, are you encountering this too?
@patsevanton just to confirm, both scans ran at the exact same time?
patsevanton commentedon Jul 12, 2025
@aantn yes, same time
patsevanton commentedon Jul 12, 2025
it is different strategy. Need change readme
Change defaults + document simple limit - fixes #413