CPC G06F 9/5055 (2013.01) [G06F 9/45558 (2013.01); G06F 9/4881 (2013.01); G06F 9/5072 (2013.01); G06F 2009/4557 (2013.01); G06F 2009/45595 (2013.01); G06F 2209/5011 (2013.01)] | 19 Claims |
1. A resource scheduling method, comprising:
receiving, by a management node, a Pod creation request from a user, wherein the Pod creation request comprises: requirements of each container for each type of shareable resources; and
selecting, by the management node, a node for a Pod object to be created, and allocating each type of shareable resources of each container to the Pod object according to shareable resource information of a shareable device in the selected node, wherein the shareable resource information comprises: an identifier (ID) of the shareable device, resource property information of the shareable device and a maximum shareable number of the shareable device;
wherein in a case where a unit is not specified for the number of each type of shareable resources requested in the Pod creation request, the unit of the shareable resource requested is device by default and the device is processed according to an exclusive mode, and the unit of the number of each type of shareable resources requested is converted into slice;
in a case where a unit is specified for the number of each type of shareable resources requested in the Pod creation request, the device is processed according to a sharing mode, and the number of each type of shareable resources requested is required to be less than or equal to the maximum shareable number of the shareable device.
|