Patent ID: 11966792
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. A non-transitory computer-readable storage medium, storing a plurality of computer programs configured to implement a resource processing method of a cloud platform, the cloud platform comprising a plurality of nodes, each node comprising a first resource and a second resource different from the first resource, the computer programs, when executed by a processor of a computing device, implementing a plurality of operations including:
obtaining a current first resource allocation ratio and a current second resource allocation ratio of each of the plurality of nodes;
obtaining a first resource limit and a second resource limit that are required by a newly added host;
determining, among the plurality of nodes, a target node according to the current first resource allocation ratio and the current second resource allocation ratio of each node, the first resource limit, and the second resource limit;
deploying the newly added host in the target node;
determining a current state of each node according to the current first resource allocation ratio and the current second resource allocation ratio of the node, the current state indicating whether there is an inter-resource balance between usage of the first resource and the second resource at different nodes and the current state being one of three states: a resource balanced state, a first resource unbalanced state, or a second resource unbalanced state that is opposite to the first resource unbalanced state, wherein the first resource and the second resource are different types of resources; and
migrating a stock host from a node in the first resource unbalanced state that causes first resource allocation imbalance to a node in the second resource unbalanced state or the resource balanced state.