Loading...
Loading...
Compare original and translation side by side
| Priority | Rule | Impact | Tools |
|---|---|---|---|
| 1 | Find and delete unused PVCs | CRITICAL | |
| 2 | Right-size overprovisioned pods | HIGH | |
| 3 | Identify idle LoadBalancers | HIGH | |
| 4 | Scale down non-prod off-hours | MEDIUM | |
| 5 | Consolidate small namespaces | LOW | Analysis |
| 优先级 | 规则 | 影响程度 | 工具 |
|---|---|---|---|
| 1 | 查找并删除未使用的PVC | 关键 | |
| 2 | 合理配置过度配置的Pod | 高 | |
| 3 | 识别闲置的LoadBalancers | 高 | |
| 4 | 非生产环境非工作时间缩容 | 中 | |
| 5 | 合并小型命名空间 | 低 | 分析 |
| Task | Tool | Example |
|---|---|---|
| Namespace cost | | |
| Cluster cost | | |
| Unused PVCs | | |
| Right-sizing | | |
| 任务 | 工具 | 示例 |
|---|---|---|
| 命名空间成本 | | |
| 集群成本 | | |
| 未使用的PVC | | |
| 资源合理配置 | | |
get_namespace_cost(namespace)
get_cluster_cost()get_namespace_cost(namespace)
get_cluster_cost()find_unused_resources(namespace)
find_orphaned_pvcs(namespace)find_unused_resources(namespace)
find_orphaned_pvcs(namespace)get_resource_recommendations(namespace)
get_pod_metrics(name, namespace)get_resource_recommendations(namespace)
get_pod_metrics(name, namespace)get_resource_recommendations(namespace="production")
get_pod_metrics(name, namespace)
get_resource_usage(namespace)get_resource_recommendations(namespace="production")
get_pod_metrics(name, namespace)
get_resource_usage(namespace)find_orphaned_pvcs(namespace)
find_unused_resources(namespace)find_orphaned_pvcs(namespace)
find_unused_resources(namespace)get_nodes()
get_node_metrics()get_nodes()
get_node_metrics()| Current State | Recommendation |
|---|---|
| CPU usage < 10% of request | Reduce request by 50% |
| CPU usage > 80% of request | Increase request by 25% |
| Memory < 50% of request | Reduce request |
| Memory near limit | Increase limit, monitor OOM |
| 当前状态 | 建议 |
|---|---|
| CPU使用率 < 请求值的10% | 将请求值降低50% |
| CPU使用率 > 请求值的80% | 将请求值提高25% |
| 内存使用率 < 请求值的50% | 降低请求值 |
| 内存使用率接近限制值 | 提高限制值,监控OOM情况 |
get_resource_usage(namespace)
get_pod_metrics(name, namespace)get_resource_usage(namespace)
get_pod_metrics(name, namespace)get_pvc(namespace)
find_orphaned_pvcs(namespace)get_pvc(namespace)
find_orphaned_pvcs(namespace)get_services(namespace)get_services(namespace)get_cluster_cost(context="production")
get_cluster_cost(context="staging")
get_cluster_cost(context="development")get_cluster_cost(context="production")
get_cluster_cost(context="staging")
get_cluster_cost(context="development")find_orphaned_pvcs()get_resource_recommendations()find_orphaned_pvcs()get_resource_recommendations()keda_scaledobjects_list_tool(namespace)
keda_scaledobject_get_tool(name, namespace)keda_scaledobjects_list_tool(namespace)
keda_scaledobject_get_tool(name, namespace)