Takeaki Matsumoto
785fac6826
Make updateAllocatedDevices() as a public method and call it in
...
podresources api
2020-02-07 13:26:56 +09:00
Kevin Klues
bc686ea27b
Update TopologyManager.GetTopologyHints() to take pointers
...
Previously, this function was taking full Pod and Container objects
unnecessarily. This commit updates this so that they will take pointers
instead.
2020-02-03 17:13:28 +00:00
Kevin Klues
4d4d4bdd61
Ensure devicemanager TopologyHints are regenerated after kubelet restart
...
This patch also includes test to make sure the newly added logic works
as expected.
2019-11-06 15:01:34 +00:00
Kevin Klues
a338c8f7fd
Add some more comments to GetTopologyHints() in the devicemanager
2019-11-05 13:06:23 +00:00
Kevin Klues
58f3554ebe
Sync all CPU and device state before generating TopologyHints for them
...
This ensures that we have the most up-to-date state when generating
topology hints for a container. Without this, it's possible that some
resources will be seen as allocated, when they are actually free.
2019-11-05 13:00:20 +00:00
Connor Doyle
e35301c19f
Rename package socketmask to bitmask.
...
- As discussed in reviews and other public channels,
this abstraction is used to represent numa nodes, not sockets.
- There is nothing inherently related to sockets in this package anyway.
2019-09-23 17:08:45 -07:00
Kevin Klues
eb0216e54e
Update semantics to set Preferred field in TopologyHint generation
...
We now only set Preferred to true if resources can be allocated with a
size equal to the minimimum _possible_ mask when all resources are
available.
2019-08-29 14:32:10 -05:00
Kevin Klues
d3d7a8f5d4
Generate TopologyHints from the devicemanager
2019-08-29 07:45:43 -05:00
Louise Daly
9a118ceac4
Added stub support for Topology Manager to Device Manager
...
Co-authored-by: Conor Nolan <conor.nolan@intel.com>
Co-authored-by: Sreemanti Ghosh <sreemanti.ghosh@intel.com>
Co-authored-by: Kevin Klues <kklues@nvidia.com>
2019-08-29 07:45:43 -05:00