Jan Chaloupka
c239e1199f
LNU: improve nodeUsage logging
...
To avoid:
```
I0210 11:56:04.137956 3309277 lownodeutilization.go:389] "Updated node usage" updatedUsage={node:0xc000460000 usage:map[cpu:0xc00042b480 memory:0xc00042b4c0 pods:0xc00042b500] allPods:[0xc0004a0000 0xc0004a03e8 0xc0004a07d0 0xc0004a0bb8 0xc0004a0fa0 0xc0004a1388 0xc0004a1770 0xc0004a1b58] lowResourceThreshold:map[cpu:0xc00042b540 memory:0xc00042b580 pods:0xc00042b5c0] highResourceThreshold:map[cpu:0xc00042b600 memory:0xc00042b640 pods:0xc00042b680]}
I0210 11:56:04.138829 3309277 lownodeutilization.go:389] "Updated node usage" updatedUsage={node:0xc000460000 usage:map[cpu:0xc00042b480 memory:0xc00042b4c0 pods:0xc00042b500] allPods:[0xc0004a0000 0xc0004a03e8 0xc0004a07d0 0xc0004a0bb8 0xc0004a0fa0 0xc0004a1388 0xc0004a1770 0xc0004a1b58] lowResourceThreshold:map[cpu:0xc00042b540 memory:0xc00042b580 pods:0xc00042b5c0] highResourceThreshold:map[cpu:0xc00042b600 memory:0xc00042b640 pods:0xc00042b680]}
I0210 11:56:04.139044 3309277 lownodeutilization.go:389] "Updated node usage" updatedUsage={node:0xc000460000 usage:map[cpu:0xc00042b480 memory:0xc00042b4c0 pods:0xc00042b500] allPods:[0xc0004a0000 0xc0004a03e8 0xc0004a07d0 0xc0004a0bb8 0xc0004a0fa0 0xc0004a1388 0xc0004a1770 0xc0004a1b58] lowResourceThreshold:map[cpu:0xc00042b540 memory:0xc00042b580 pods:0xc00042b5c0] highResourceThreshold:map[cpu:0xc00042b600 memory:0xc00042b640 pods:0xc00042b680]}
```
2021-04-06 09:43:23 +02:00
ZongqiangZhang
81b816d4a4
support extended resources in lownodeutilization
2021-04-02 21:37:51 +08:00
Sean Malloy
af01b675b0
Update Generated Code
...
Ran "make gen" using Go 1.16.1. Some changes were merged, but "make gen"
was not run. This fixes the problem.
See below PR for reference:
https://github.com/kubernetes-sigs/descheduler/pull/523
2021-04-01 00:28:20 -05:00
RyanDevlin
b5d7219391
Completed evictSystemCriticalPods feature
2021-03-29 23:13:05 -04:00
Sean Malloy
92740a25d4
Add Initial Unit Tests For StatefulSets
2021-03-23 09:24:08 -05:00
Mike Dame
af26b57e5e
(TopologySpread) Evict pods with selectors that match multiple nodes
2021-03-12 13:41:17 -05:00
Kubernetes Prow Robot
6b8d4cd5a7
Merge pull request #517 from lixiang233/fix_topology_log
...
Correct log in topology spread strategy
2021-03-07 11:31:42 -08:00
Kubernetes Prow Robot
24a06511a2
Merge pull request #505 from ingvagabund/collect-metrics
...
Collect metrics
2021-03-06 21:41:42 -08:00
lixiang
09c7d1be0a
Correct log in topology spread strategy
2021-03-06 16:21:46 +08:00
lixiang
03518badb8
Strategies: Add labelSelector to all strategies except LowNodeUtilization, RemoveDuplicates and RemovePodsViolatingTopologySpreadConstraint.
2021-03-04 21:30:50 +08:00
Jan Chaloupka
24458fb0ca
Increase pods_evicted metric
2021-03-03 16:15:21 +01:00
Jan Chaloupka
1c5b32763b
Register metrics
...
New metrics:
- build_info: Build info about descheduler, including Go version, Descheduler version, Git SHA, Git branch
- pods_evicted: Number of successfully evicted pods, by the result, by the strategy, by the namespace
2021-03-03 16:15:09 +01:00
Jan Chaloupka
3bd031bbb3
Move build's versioning bits under pkg/version
2021-03-03 15:56:53 +01:00
lixiang
854afa7c73
PodsListing: Add WithLabelSelector option.
2021-03-01 11:13:44 +08:00
lixiang
2517268b1f
API: Add a new parameter labelSelector to StrategyParameters.
2021-02-26 15:49:00 +08:00
lixiang
e014fda58e
Log and README optimization for LowNodeUtilization
2021-02-24 09:17:07 +08:00
Mike Dame
01a87b6143
Move 'total pods evicted' log message to main loop
2021-02-19 10:37:43 -05:00
Jan Chaloupka
500aaea4dd
LowNodeUtilization: unit test resourceUsagePercentages to validate percentages are computed correctly
2021-02-11 16:04:37 +01:00
范成城
16fa21a4a6
change resourceUsagePercentage func
2021-01-31 20:46:46 +08:00
Kubernetes Prow Robot
241f1325c9
Merge pull request #481 from damemi/ignore-pvc-pods
...
Add option to ignore pods with PVCs from eviction
2021-01-26 22:41:40 -08:00
Mike Dame
c1a63a557a
Add option to ignore pods with PVCs from eviction
2021-01-26 08:47:54 -05:00
lixiang
8ba9cb1df7
Add a parameter to include soft topology spread constraints
2021-01-21 11:33:16 +08:00
Mike Dame
241f47d947
Fix TopologySpread bug that evicts non-evictable pods
2021-01-12 15:25:55 -05:00
Mike Dame
635a40f305
Add Logging field to v1alpha1 componentconfig
2021-01-11 11:21:32 -05:00
wu.chaozong
c481877c03
refactor: update node_test file
2020-12-15 21:15:33 +08:00
wu.chaozong
674f14da78
refactor: remove unused code
2020-12-13 00:09:07 +08:00
Kubernetes Prow Robot
c86d1c7eb2
Merge pull request #463 from ingvagabund/duplicates-uniformly
...
RemoveDuplicatePods: evict uniformly
2020-12-10 07:14:13 -08:00
Jan Chaloupka
f67c265533
RemoveDuplicatePods: evict uniformly
2020-12-10 15:33:04 +01:00
Mike Dame
0273fd7597
Skip topology calculations if domains are already balanced
2020-12-09 11:29:59 -05:00
Mike Dame
499beb2fd7
Fix broken namespace logic in TopologySpreadConstraint
2020-12-04 10:49:58 -05:00
Mike Dame
2b5ec01381
Add more topology spread logs
2020-12-01 17:02:46 -05:00
Jan Chaloupka
cd6f2cd4cb
LowNodeUtilization: express usagePercentage multiplied by 100
...
Entry params are in interval <0; 100>. Have logs respect that as well.
2020-11-24 14:48:48 +01:00
Jan Chaloupka
652ee87bf5
LowNodeUtilization: show node usage in percentage as well
2020-11-18 14:50:53 +01:00
Kubernetes Prow Robot
4839d5f369
Merge pull request #413 from damemi/podtopologyspread
...
Add PodTopologySpread strategy
2020-11-13 10:41:05 -08:00
Kubernetes Prow Robot
b30bd40860
Merge pull request #428 from damemi/component-helper-nodeselector
...
Start using helpers from k8s.io/component-helpers
2020-11-02 04:52:54 -08:00
Mayank Kumar
4108362158
Add RemovePodsViolatingTopologySpreadConstraint strategy
...
This adds a strategy to balance pod topology domains based on the scheduler's
PodTopologySpread constraints. It attempts to find the minimum number of pods
that should be sent for eviction by comparing the largest domains in a topology
with the smallest domains in that topology.
2020-10-30 16:36:33 -04:00
Mike Dame
3c54378749
Use NodeSelectorRequirementsAsSelector from k8s.io/component-helpers
2020-10-30 09:41:49 -04:00
Mateusz Gozdek
cc6bb633ba
pkg/descheduler/pod: fix typo
...
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-10-22 09:25:55 +02:00
Mateusz Gozdek
31cf70c34c
pkg/descheduler/strategies: fix typo
...
Signed-off-by: Mateusz Gozdek <mgozdekof@gmail.com >
2020-10-22 09:25:24 +02:00
Kubernetes Prow Robot
b33928ac91
Merge pull request #412 from farah/logging-format
...
Add logging-format flag
2020-10-12 10:58:48 -07:00
Ali Farah
3ac0c408de
Add --logging-format flag
...
Add k8s.io/component-base/config package
2020-10-12 22:27:39 +11:00
Sean Malloy
4bb0ceeed5
Update Event Logging to Use Structured Logging
2020-10-01 00:50:37 -05:00
Sean Malloy
6237ba5a43
Convert Last Log Message To Structured Logging
...
The k8s.io/klog/v2 package does not currently support structured logging
for warning level log messages. Therefore update the one call in the
code base using klog.Warningf to instead use klog.InfoS.
2020-09-25 22:58:28 -05:00
Kubernetes Prow Robot
5d65a9ad68
Merge pull request #409 from ingvagabund/flip-some-klog-info-to-error
...
Change klog info messages after a strategy is exited into error messages
2020-09-25 20:34:47 -07:00
Kubernetes Prow Robot
28f3f867c3
Merge pull request #407 from ingvagabund/structured-klog
...
Flip Info/Infof/Error to InfoS/ErrorS
2020-09-24 04:22:05 -07:00
Jan Chaloupka
7afa54519f
Change klog info messages after a strategy is exited into error messages
2020-09-24 11:07:20 +02:00
Jan Chaloupka
4798559545
Flip Info/Infof/Error to InfoS/ErrorS
2020-09-21 09:08:11 +02:00
Mike Dame
8b34d6eb94
Add Namespace filtering to RemoveDuplicates strategy
2020-09-18 12:17:47 -04:00
Kubernetes Prow Robot
c9cfeb35c2
Merge pull request #384 from ingvagabund/refactor-low-node-utilization
...
Refactor low node utilization
2020-09-13 19:04:58 -07:00
Kubernetes Prow Robot
fda63a816f
Merge pull request #397 from farah/farah/add-structured-logging
...
Convert logs to use structured logs
2020-09-13 18:46:57 -07:00