US Patent No. 10,142,997

METHOD AND APPARATUS FOR ADJUSTING PHYSICAL RESOURCE, AND CONTROLLER


Patent No. 10,142,997
Issue Date November 27, 2018
Title Method And Apparatus For Adjusting Physical Resource, And Controller
Inventorship Qucai Chen, Shanghai (CN)
Jianhul Yao, Shanghai (CN)
Assignee HUAWEI TECHNOLOGIES CO., LTD., Shenzhen (CN)

Claim of US Patent No. 10,142,997

1. A method for adjusting a physical resource, comprising:collecting load information of a control plane (CP) from a CP board, collecting load information of a user plane (UP) from a UP board, and obtaining a CP workload according to the load information of the CP and a UP workload according to the load information of the UP, wherein the collecting comprises:
collecting the load information of the CP in a preset time cycle from the CP board, collecting the load information of the UP in the preset time cycle from the UP board, and obtaining at least one CP load capacity according to the load information of the CP in the preset time cycle, and at least one UP load capacity according to the load information of the UP in the preset time cycle, wherein the load information of the CP and the load information of the UP comprises any one or more of the following: central processing unit (CPU) usage, a quantity of users, and throughput; and
determining a maximum value in the at least one CP load capacity or an average value of the at least one CP load capacity as the CP workload, and determining a maximum value in the at least one UP load capacity or an average value of the at least one UP load capacity as the UP workload;
calculating a quantity of to-be-adjusted physical resources when the CP workload and the UP workload meet a preset balancing adjustment condition, wherein that the CP workload and the UP workload meet the preset balancing adjustment condition comprises:
an absolute value of a difference between the CP workload and the UP workload is beyond a preset range threshold; or
a ratio of the CP workload and the UP workload is beyond the preset range threshold; and
adjusting physical resources of the CP and the UP according to the quantity of to-be-adjusted physical resources, wherein the adjusting physical resources of the CP and the UP according to the quantity of to-be-adjusted physical resources comprises:
when the CP workload is smaller than the UP workload, changing a logic type of CP boards, having a first quantity indicated by the quantity of to-be-adjusted physical resources, into a UP logic type to implement a UP function; or
when the UP workload is smaller than the CP workload, changing a logic type of UP boards, having a second quantity indicated by the quantity of to-be-adjusted physical resources, into a CP logic type to implement a CP function.