A resource processing method and device based on edge computing
By obtaining key information and resource description information in resource processing requests in edge computing scenarios, finding the corresponding computer room from the computer room library and performing resource processing operations, the problem of resource management complexity in edge computing is solved and resource processing efficiency is improved and utilization.
Patent Information
- Application Number
- CN202410865562.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In the edge computing scenario, due to the large number of computer rooms and large scale differences, the workload of managing resource information in each computer room is very large, resulting in complex resource management and scheduling.
Provide a resource processing method and device based on edge computing. By obtaining key information and resource description information in resource processing requests, searching for corresponding computer rooms from the computer room library, and performing resource processing on the computer room based on the processing logic of the target resource processing interface. Operation, accurately find the computer room where resources need to be processed, avoid resource misoperation and waste, and improve resource processing efficiency.
By accurately finding the computer room that needs to be processed, optimizing the specific characteristics of resources and the processing methods of requirements, the efficiency of resource processing is improved, the complexity and error rate of manual operation are reduced, and the resource utilization and management efficiency are improved.
Smart Images

Figure CN118413536B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of cloud computing, and in particular to a resource processing method and device based on edge computing. Background Art
[0002] Edge computing is a new computing model that processes and analyzes data at the data generation side of the network edge. Its advantage is that it can improve the overall availability and scalability of the system by pushing data to the edge of the Internet, thereby reducing latency, saving bandwidth and related costs. Edge computing has significant advantages, especially in scenarios that require fast response, large amounts of data processing, or special requirements for privacy and security, such as industrial automation, smart driving, telemedicine, and the Internet of Things.
[0003] However, as the number of edge computing rooms increases and the size of individual rooms varies, resource management and scheduling become increasingly complex. In the current edge computing scenario, due to the large number of rooms and the large size differences of individual rooms, the workload of managing resource information such as the number of instances in each room is very large. Summary of the invention
[0004] In view of this, the embodiments of the present disclosure provide a resource processing method and device based on edge computing to solve the problem that the workload of managing resource information such as the number of instances in each computer room is very large in the current edge computing scenario.
[0005] In a first aspect, an embodiment of the present disclosure provides a resource processing method based on edge computing, the method being applied to an edge cloud computing system, the method comprising:
[0006] Obtaining a resource processing request received by a target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, and the resource processing request includes key information and resource description information;
[0007] Using the key information, searching for a corresponding computer room from a computer room database;
[0008] A resource processing operation is performed on the computer room based on the processing logic of the target resource processing interface and the resource description information.
[0009] In a second aspect, an embodiment of the present disclosure provides a resource scheduling device based on edge computing, the device comprising:
[0010] An acquisition module, used for acquiring a resource processing request received by a target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, and the resource processing request includes key information and resource description information;
[0011] A search module, used to search for a corresponding computer room from a computer room library using the key information;
[0012] An execution module is used to execute a resource processing operation on the computer room based on the processing logic of the target resource processing interface and the resource description information.
[0013] In a third aspect, an embodiment of the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.
[0014] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method of the first aspect or any corresponding implementation manner thereof.
[0015] The disclosed embodiment uses key information to search for the corresponding computer room from the computer room library. The computer room that needs to process resources can be accurately found based on the key information, avoiding misoperation and waste of resources. Then, the resource processing operation is performed on the computer room based on the processing logic of the target resource processing interface and the resource description information. In this way, the appropriate processing method is selected according to the specific characteristics and requirements of the resources, thereby improving the efficiency of resource processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the related technologies, the drawings required for use in the specific embodiments or the related technical descriptions will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0017] Figure 1 is a flowchart of a resource processing method based on edge computing according to some embodiments of the present disclosure;
[0018] Figure 2 is a flowchart of a resource processing method based on edge computing according to some embodiments of the present disclosure;
[0019] Figure 3 is a flowchart of a resource processing method based on edge computing according to some embodiments of the present disclosure;
[0020] Figure 4 is a schematic diagram of capacity expansion of an elastic scaling controller according to some embodiments of the present disclosure;
[0021] Figure 5 is a schematic diagram of disaster recovery by an elastic scaling controller according to some embodiments of the present disclosure;
[0022] Figure 6 is a structural block diagram of a resource processing device based on edge computing according to an embodiment of the present disclosure;
[0023] Figure 7 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0025] According to an embodiment of the present disclosure, a resource processing method and device based on edge computing are provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0026] In this embodiment, a resource processing method based on edge computing is provided, which can be used for the above-mentioned mobile terminals, such as mobile phones, tablet computers, etc. (the execution subject is described in combination with actual conditions). Figure 1 is a flow chart of a resource processing method based on edge computing according to an embodiment of the present disclosure, such as Figure 1 As shown, the process includes the following steps:
[0027] Step S11, obtaining a resource processing request received by a target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, and the resource processing request includes key information and resource description information.
[0028] In the disclosed embodiment, the edge cloud computing system includes multiple nodes, each of which has certain computing and storage resources. The edge cloud computing system is deployed with a scheduler, which is a component responsible for effectively allocating and scheduling these resources. Specifically, the scheduler provides the following three interfaces:
[0029] Resource planning interface: This interface uses algorithms and strategies to plan the resource usage in each computer room and provide a reasonable resource allocation plan. For example, it can formulate a reasonable resource planning plan based on factors such as the hardware equipment, network connection, and load in the computer room to ensure the performance and stability of the system.
[0030] Resource application interface: This interface allows users to submit resource application requests at the computer room level. Users can apply for a certain amount of computing and storage resources according to their needs and specify the computer room to apply for. The scheduler will allocate and schedule resources through the multi-computer room resource planning interface to meet user needs.
[0031] Resource release interface: This interface allows users to release the resources they have applied for. Users can specify the computer room to be released and the type and quantity of resources to be released. In this way, the system can recycle these resources in a timely manner so that it can better provide resource services to other users.
[0032] In the embodiment of the present disclosure, when the target resource processing interface receives a resource processing request, the type of the target resource processing interface is first determined. The resource processing interface may be a resource planning interface, a resource application interface, or a resource release interface. Thus, it is determined what type of resource processing request is executed. The resource processing request may contain two types of information: key information and resource description information, wherein the key information may be regional information or computer room information. The regional information refers to the geographical area or logical area in the edge cloud computing system, which can be used to describe the distribution of resources, network connection conditions, etc. In the scheduler, regional information can help the system determine the scope and limitations of resource allocation. For example, some areas may have more resources available for allocation, while other areas may require special consideration due to poor network connectivity or other factors. Computer room information refers to the physical or logical computer room in the edge cloud computing system, which is the basic unit of resource scheduling and management. In the scheduler, computer room information can be used to determine the actual location and distribution of resources, as well as the connection mode and bandwidth between computer rooms. Through computer room information, the system can plan, apply for, and release resources more accurately. For example, a user may want to limit resource applications to a specific computer room, or release resources in a computer room. Resource description information: Resource description information is relevant information about the resource to be processed, which may include the type, size, format, location, etc. of the resource.
[0033] Step S12, using the key information to search for the corresponding computer room from the computer room database.
[0034] In the embodiment of the present disclosure, when the target resource processing interface is a resource planning interface, the key information carried by the resource processing request received by the interface is the area information. When the target resource processing interface is a resource application interface, the key information carried by the resource processing request received by the interface is the computer room information. When the target resource processing interface is a resource release interface, the key information carried by the resource processing request received by the interface is the computer room information.
[0035] In the disclosed embodiment, the system first needs to obtain the computer room information stored in the computer room library. This information usually includes the name of the computer room, the geographical location, the region to which it belongs, the available resources (such as computing resources, storage resources, etc.), the network connection status, etc. Then, based on the key information (regional information or computer room information) provided by the user, the system needs to determine the query conditions. If the user provides regional information, the system needs to match all computer rooms in the region; if the user provides computer room information, the system needs to directly match the computer room. According to the determined query conditions, the system performs a query operation in the computer room library. If the query is based on regional information, the system traverses all computer rooms in the computer room library and filters out computer rooms whose regions match the regional information provided by the user; if the query is based on computer room information, the system directly matches the computer rooms in the computer room library whose names match the computer room information provided by the user.
[0036] Step S13: executing resource processing operations on the computer room based on the processing logic of the target resource processing interface and the resource description information.
[0037] In an embodiment of the present disclosure, a resource processing operation is performed on a computer room based on the processing logic of a target resource processing interface and resource description information, including: when the target resource processing interface is a resource planning interface, determining screening conditions and combination conditions based on the processing logic of the resource planning interface; combining computer rooms according to the combination conditions to obtain multiple computer room combinations; obtaining candidate computer room combinations that meet the screening conditions from the computer room combinations; evaluating the candidate computer room combinations according to a preset evaluation strategy in the resource description information to obtain index values corresponding to the candidate computer rooms, and taking the candidate computer room combination with the highest index value as the target computer room combination; obtaining a first resource situation of each target computer room in the target computer room combination; generating resource planning information based on the first resource situation, and sending the resource planning information to a requester corresponding to the resource processing request.
[0038] Specifically, when the target resource processing interface is a resource planning interface, the filtering conditions and the combination conditions are determined based on the processing logic of the resource planning interface. The filtering conditions may be the maximum number of instances of a single computer room, the minimum number of instances, and the like. The maximum number of instances of a single computer room refers to the maximum number of instances that a computer room can accommodate. It is necessary to ensure that the number of instances of each computer room in the selected computer room combination does not exceed its maximum number of instances. The minimum number of instances refers to the minimum number of instances required for a computer room, ensuring that the number of instances of each computer room in the selected computer room combination is not less than its minimum number of instances. The combination conditions are used to extract computer rooms that meet the conditions from the inventory and combine them. Factors such as the geographical location, network connection, and hardware configuration of the computer room may be included. For example, an algorithm may be defined to evaluate the availability and performance of each computer room, and the computer rooms may be filtered and combined based on these factors. According to the predefined combination conditions, computer rooms that meet the conditions are selected from the computer room inventory and combined into multiple computer room combinations.
[0039] Then, the candidate computer room combinations that meet the above screening conditions (maximum number of instances and minimum number of instances in a single computer room) are selected from the computer room combinations. The preset evaluation strategy in the resource description information is obtained, and the preset evaluation strategy includes performance indicators, reliability, cost, etc. Each candidate computer room combination is evaluated to obtain the indicator value corresponding to the candidate computer room.
[0040] For example: Evaluation of room combination X: Performance index calculation: Bandwidth weight is 0.6, delay weight is 0.4. By multiplying the bandwidth value 800Mbps by the bandwidth weight 0.6, and the delay value 5ms by the delay weight 0.4, the weighted values of each item can be obtained as 480 and 2 respectively. Then add them together and divide by the total weight (0.6+0.4=1), and the performance index calculation result is 482Mbps.
[0041] Room Y evaluation: Performance index calculation: The bandwidth weight is 0.6, and the delay weight is 0.4. By multiplying the bandwidth value 1000Mbps by the bandwidth weight 0.6, and the delay value 3ms by the delay weight 0.4, the weighted values of each item can be obtained as 600 and 1.2 respectively. Then add them together and divide by the total weight (0.6+0.4=1), and the performance index calculation result is 601.2Mbps.
[0042] Finally, according to the evaluation results, the candidate computer room combination with the highest index value is selected as the target computer room combination. The first resource status of each target computer room in the selected target computer room combination is obtained, including the number of instances, hardware configuration, network connection and other information. Based on the first resource status of each target computer room in the target computer room combination, resource planning information is generated and sent to the requester corresponding to the resource processing request to meet its resource needs.
[0043] It should be noted that the resource planning interface can intelligently plan key decisions such as which computer rooms to deploy and how many instances to deploy in each computer room based on different regions and resource description information. This greatly improves resource utilization and management efficiency, while reducing the complexity and error rate of manual operations.
[0044] The disclosed embodiment uses key information to search for the corresponding computer room from the computer room library. The computer room that needs to process resources can be accurately found based on the key information, avoiding misoperation and waste of resources. Then, the resource processing operation is performed on the computer room based on the processing logic of the target resource processing interface and the resource description information. In this way, the appropriate processing method is selected according to the specific characteristics and requirements of the resources, thereby improving the efficiency of resource processing.
[0045] Figure 2 is a flow chart of a resource processing method based on edge computing according to an embodiment of the present disclosure, such as Figure 2 As shown, the process includes the following steps:
[0046] Step S21, obtaining a resource processing request received by the target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, and the resource processing request includes key information and resource description information. For details, see step S11 in the above embodiment, which will not be described in detail here.
[0047] Step S22, using the key information to search for the corresponding computer room from the computer room database. For details, please refer to step S12 in the above embodiment, which will not be described in detail here.
[0048] Step S23: executing resource processing operations on the computer room based on the processing logic of the target resource processing interface and the resource description information.
[0049] In the embodiment of the present disclosure, the resource processing operation is performed on the computer room based on the processing logic of the target resource processing interface and the resource description information, including the following steps A1-A3:
[0050] Step A1: when the target resource processing interface is a resource application interface, determine the second resource status in the resource pool based on the processing logic of the resource application interface.
[0051] Specifically, determining the current resource situation of the resource pool is mainly achieved through resource pool analysis. Resource pool analysis refers to monitoring computing, storage, and network resources by multiple dimensions such as regions, resource pools, available partitions, and host groups, and evaluating the capacity and load of the resource pool in combination with key performance indicators. Specifically, resources need to be abstracted and defined first, including computing resources, storage resources, and network resources. Then, these resources are abstracted into an expandable and dynamic resource pool. When a resource application is made, the corresponding resources are provided from this resource pool according to demand.
[0052] Step A2, checking whether the second resource condition satisfies the resource description information, and obtaining a checking result.
[0053] Specifically, check whether the corresponding type of resources in the resource pool are sufficient to meet the resource requirements in the resource description information, including checking whether the quantity, attributes and other constraints of the resources meet the requirements.
[0054] Step A3: perform resource processing operations on the computer room according to the inspection results.
[0055] Specifically, if the resources in the resource pool are sufficient to meet the demand, the system can allocate resources and update the status and quantity of the corresponding resources in the resource pool. If the resources are insufficient or cannot meet the application requirements, the application needs to be rejected and the corresponding error message is returned. In addition, after processing the resource application, the system needs to update the status information of the resources in the resource pool in a timely manner, including the number of allocated resources, the number of available resources, etc.
[0056] Among them, performing resource processing operations on the computer room according to the inspection result includes: when the inspection result is that the second resource situation does not meet the resource description information, sending a first feedback result to the requester corresponding to the resource processing request, and the first feedback result includes the resource application failure and the reason for the failure; or, when the inspection result is that the second resource situation meets the resource description information, sending a second feedback result to the requester corresponding to the resource processing request, and the second feedback result includes the resource application success and resource allocation information.
[0057] If the check result shows that the resource situation does not meet the resource description information, the system first needs to determine the specific reason for the failure of the resource application, such as insufficient resources, mismatched resource attributes, and abnormal resource status. Then, the system generates feedback information, clearly indicating that the resource application failed and detailing the reason for the failure. This feedback information may include an error code, error description, and possible solution suggestions. Next, the system sends the generated first feedback result to the requester of the resource processing request.
[0058] If the check result shows that the resource situation meets the resource description information, a second feedback result is sent to the requester corresponding to the resource processing request, and the second feedback result includes the successful resource application and resource allocation information. The specific processing logic is as follows: Generate feedback information: The system generates feedback information, confirms the success of the resource application, and provides relevant information about resource allocation, including the type, quantity, and instructions for use of the allocated resources. Send feedback results: The generated second feedback result is sent to the requester of the resource processing request to ensure that it is informed of the successful resource application and related information in a timely manner.
[0059] The disclosed embodiment determines the second resource status in the resource pool through the processing logic based on the resource application interface, and the system can realize dynamic management of resources. This can better meet the resource requirements of different requests. At the same time, by checking whether the resource status meets the resource description information, the resources in the resource pool can be effectively utilized. The situation of idle resources or insufficient resources is avoided, thereby improving the utilization rate of resources. According to the inspection results, resource processing operations are performed on the computer room, and resources can be dynamically allocated and adjusted according to actual needs. This ensures that resources are reasonably allocated to different tasks or requests, thereby optimizing the utilization and allocation of resources.
[0060] Figure 3 is a flow chart of a resource processing method based on edge computing according to an embodiment of the present disclosure, such as Figure 3 As shown, the process includes the following steps:
[0061] Step S31, obtaining a resource processing request received by the target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, and the resource processing request includes key information and resource description information. For details, see step S11 in the above embodiment, which will not be described in detail here.
[0062] Step S32, using the key information to search for the corresponding computer room from the computer room database. For details, please refer to step S12 in the above embodiment, which will not be described in detail here.
[0063] Step S33: executing resource processing operations on the computer room based on the processing logic of the target resource processing interface and the resource description information.
[0064] In the embodiment of the present disclosure, the resource processing operation is performed on the computer room based on the processing logic of the target resource processing interface and the resource description information, including the following steps B1-B3:
[0065] Step B1: when the target resource processing interface is a resource release interface, determine the to-be-released resource corresponding to the resource description information based on the processing logic of the resource release interface.
[0066] Step B2: Check whether there are resources to be released in the computer room.
[0067] Step B3: When there are resources to be released in the computer room, a release operation is performed on the resources to be released, a resource release result is obtained, and the resource release result is sent to the requester corresponding to the resource processing request.
[0068] First, determine which resources need to be released based on the resource description information. Check the resources in the computer room to confirm whether there are resources that need to be released. If there are resources to be released in the computer room, it is necessary to perform a release operation on these resources. After performing the release operation, obtain the result of the release operation. It can be success, failure, or other relevant status information. Finally, feedback the result of the resource release to the requester of the resource processing request. This can be done through corresponding communication methods, such as network requests or message passing.
[0069] It should be noted that when users no longer need certain resources, they can release the resources back through this interface. In particular, when releasing IPs, they can also specify specific IPs, making resource management more sophisticated and accurate.
[0070] The method provided by the embodiment of the present disclosure uses processing logic based on the resource release interface, and the system can automatically determine which resources need to be released without manual intervention, thereby improving the automation and efficiency of the system. At the same time, timely releasing resources that are no longer needed can effectively reduce resource waste, especially in a cloud computing environment, avoiding long-term occupation of resources without use, and saving costs. In addition, releasing resources that are no longer needed allows other tasks or requests to obtain resources more quickly, improves resource utilization, and improves overall system performance.
[0071] In the embodiment of the present disclosure, the method further includes the following steps C1-C4:
[0072] Step C1, obtaining instance load data of each area in the edge cloud computing system.
[0073] Specifically, the elastic scaling controller first communicates with the edge cloud computing system to obtain instance load data in each area. This data may include indicators such as CPU usage, memory consumption, and network traffic, which are used to evaluate the instance load.
[0074] Step C2, determining a target instance whose load data satisfies the expansion condition, and querying the first area where the target instance corresponds to the original computer room.
[0075] Specifically, the elastic scaling controller will determine the target instance to be expanded based on the pre-set expansion conditions, such as the load of the instance in a certain area exceeding a certain threshold. Once the target instance is determined, the elastic scaling controller will query the first area where the target instance corresponds to the original computer room. This may be to ensure that the expanded instance is physically close to the original instance to reduce latency and improve performance.
[0076] Step C3: Detect whether the available resources in the first area support the capacity expansion operation.
[0077] Specifically, the elastic scaling controller will perform resource detection on the first region to confirm whether the region has sufficient available resources to perform the expansion operation. This may involve checking available computing resources (CPU, memory, etc.), network resources, and storage resources.
[0078] Step C4: when available resources support the capacity expansion operation, obtain instance planning information, and perform the capacity expansion operation on the first area according to the instance planning information.
[0079] Specifically, if the available resources in the first region meet the needs of the expansion operation, the elastic scaling controller will obtain the instance planning information. This may include the number of instances that need to be added, instance types, configuration information, etc. Finally, it will perform the expansion operation on the first region according to this planning information to ensure that the system can respond to the increase in load in a timely manner while minimizing resource waste and costs.
[0080] In an embodiment of the present disclosure, the method also includes: generating alarm information when the available resources do not support the execution of the capacity expansion operation; obtaining resource adjustment information based on the alarm information feedback; and adjusting the available resources of the first area according to the resource adjustment information until the available resources of the first area support the execution of the capacity expansion operation.
[0081] It should be noted that if Figure 4 As shown, the elastic scaling controller periodically checks the instance load data. If the load data reaches the expansion condition, the expansion operation is triggered. Expansion conditions include CPU usage, memory usage, etc. Next, the elastic scaling controller calls the resource planning interface to plan the new instance distribution. This process takes into account the resource situation in the same area of the original computer room, such as available racks, IP addresses, network planning, etc. If the resources in this area are insufficient, an alarm will be triggered or a notification will be sent. Based on the planning results returned by the resource planning interface, the elastic scaling controller will call the instance deployment API to expand the capacity according to the planned computer room and number of instances. This process includes creating new instances, allocating IP addresses, binding networks, installing applications, and so on.
[0082] The disclosed embodiment periodically checks instance load data through an elastic scaling controller, and automatically expands or shrinks capacity according to the load conditions, which can improve the availability and performance of the system. If the load increases, it can react more quickly to avoid system overload or service interruption due to insufficient resources. By dynamically adjusting resources according to business needs and actual load conditions, computing resources can be better managed and utilized, thereby improving resource utilization efficiency and reducing resource waste. Ultimately, automatic elastic scaling of services is achieved, making infrastructure management more flexible and automated.
[0083] In the disclosed embodiment, the method further includes steps D1-D4:
[0084] Step D1, obtaining a list of abnormal instances in the edge cloud computing system, wherein the list of abnormal instances includes abnormal instances of each computer room.
[0085] Specifically, the elastic scaling controller can obtain a list of abnormal instances in the edge cloud computing system, which includes abnormal instances in each computer room, which may have problems such as failure, overload, and insufficient resources.
[0086] Step D2, obtaining the abnormal time corresponding to each abnormal instance, and taking the abnormal instance whose abnormal time exceeds the preset time as the target abnormal instance.
[0087] Specifically, the elastic scaling controller obtains the abnormal time corresponding to each abnormal instance, and takes the abnormal instance whose abnormal time exceeds the preset time as the target abnormal instance. This ensures that only the instances with long-term abnormality will be processed, reducing misjudgment and interference.
[0088] Step D3, detecting available resources of the original computer room corresponding to the target abnormal instance.
[0089] Specifically, the elastic scaling controller detects the available resources of the original computer room corresponding to the target abnormal instance to confirm whether the computer room has sufficient resources to handle the abnormal situation.
[0090] Step D4: when the available resources of the original computer room do not meet the preset conditions, a new computer room is added in the second area, wherein the second area is the area where the original computer room is located.
[0091] Specifically, if the available resources in the original data center do not meet the preset conditions, the elastic scaling controller will add a second area in the area where the original data center is located. Ensure that the newly added data center is physically close to the original data center to reduce latency and improve performance.
[0092] Step D5, performing a capacity expansion operation on the newly added computer room, and performing a capacity reduction operation on the target abnormal instance in the original computer room.
[0093] Specifically, when a new data center is available, the elastic scaling controller will perform capacity expansion operations in the second area to ensure that the system has sufficient computing resources to handle abnormal situations. At the same time, it will perform capacity reduction operations on the target abnormal instances in the original data center to avoid resource waste and cost increase. In short, in this way, the elastic scaling controller can flexibly adapt to abnormal situations in the edge cloud computing system and maximize the use of system resources.
[0094] It should be noted that if Figure 5 As shown in the figure, the elastic scaling controller periodically obtains a list of abnormal instances. If the duration of instance abnormality exceeds the threshold, the elastic scaling controller will start the disaster recovery process. First, the elastic scaling controller calls the resource planning interface to check whether the original computer room where the target abnormal instance is located has available resources. If the original computer room has available resources, the disaster recovery process will be suspended and no operation will be performed. However, if the original computer room has insufficient resources, the disaster recovery process will continue. Next, the elastic scaling controller will plan a new computer room in the same area as the original computer room and expand the capacity of the new computer room. For example, the scheduler plans to plan x instances in the same area, and the scheduler returns the planning results, including y instances in computer room b and z instances in computer room c. This step is to ensure that the new computer room is geographically close to the original computer room to reduce data transmission delay and improve service reliability. Finally, based on the planning results, the elastic scaling controller will call the instance deployment API to expand the capacity of the newly planned computer room and reduce the abnormal instances in the original computer room. This can ensure high availability of the business and effectively utilize resources.
[0095] The disclosed embodiment can reduce manual intervention, speed up fault recovery time, and improve system availability and reliability by automatically detecting abnormal instances and starting the disaster recovery process. Before triggering disaster recovery, check whether the original computer room has available resources, which can avoid unnecessary disaster recovery actions and save resources and costs. By planning a new computer room in the same area, it can ensure that the geographical distribution of resources is more reasonable, which helps to improve the access speed of services. According to the resource planning results, the new computer room is expanded and the abnormal instances of the original computer room are reduced. In this way, resource allocation can be flexibly adjusted to ensure the stability of the service.
[0096] In addition, it can better cope with sudden traffic changes and failures, improving the elasticity and adaptability of the system. In the event of a failure, it can quickly switch resources and recover from the failure to ensure business continuity and data integrity. Through integrated API calls and automated processes, the complexity of disaster recovery and resource management is simplified, making operations easier.
[0097] In this embodiment, a resource scheduling device based on edge computing is also provided, which is used to implement the above embodiments and preferred implementation modes, and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0098] This embodiment provides a resource scheduling device based on edge computing, such as Figure 6 As shown, including:
[0099] An acquisition module 61 is used to acquire a resource processing request received by a target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, and the resource processing request includes key information and resource description information;
[0100] A search module 62 is used to search for a corresponding computer room from a computer room library using key information;
[0101] The execution module 63 is used to execute resource processing operations on the computer room based on the processing logic of the target resource processing interface and the resource description information.
[0102] In the embodiment of the present disclosure, the execution module 63 is used to determine the screening conditions and the combination conditions based on the processing logic of the resource planning interface when the target resource processing interface is a resource planning interface; combine the computer rooms according to the combination conditions to obtain multiple computer room combinations; obtain the candidate computer room combination that meets the screening conditions from the computer room combination; evaluate the candidate computer room combination according to the preset evaluation strategy in the resource description information to obtain the index values corresponding to the candidate computer rooms, and use the candidate computer room combination with the highest index value as the target computer room combination; obtain the first resource status of each target computer room in the target computer room combination; generate resource planning information based on the first resource status, and send the resource planning information to the requesting party corresponding to the resource processing request.
[0103] In an embodiment of the present disclosure, an execution module 63 is used to determine the second resource situation in the resource pool based on the processing logic of the resource planning interface when the target resource processing interface is a resource application interface; check whether the second resource situation satisfies the resource description information to obtain a check result; and perform a resource processing operation on the computer room according to the check result; wherein, performing a resource processing operation on the computer room according to the check result includes: when the check result is that the second resource situation does not satisfy the resource description information, sending a first feedback result to the requester corresponding to the resource processing request, the first feedback result including a resource application failure and a reason for the failure; or, when the check result is that the second resource situation satisfies the resource description information, sending a second feedback result to the requester corresponding to the resource processing request, the second feedback result including a resource application success and resource allocation information.
[0104] In the embodiment of the present disclosure, the execution module 63 is used to determine the resources to be released corresponding to the resource description information based on the processing logic of the resource planning interface when the target resource processing interface is a resource release interface; detect whether there are resources to be released in the computer room; when there are resources to be released in the computer room, perform a release operation on the resources to be released, obtain a resource release result, and send the resource release result to the requester corresponding to the resource processing request.
[0105] In an embodiment of the present disclosure, a resource scheduling device based on edge computing includes: an expansion module, which is used to obtain instance load data of each area in an edge cloud computing system; determine the target instance whose load data meets the expansion condition, and query the first area where the target instance corresponds to the original computer room; detect whether the available resources in the first area support the execution of the expansion operation; if the available resources support the execution of the expansion operation, obtain instance planning information, and perform the expansion operation on the first area according to the instance planning information.
[0106] In an embodiment of the present disclosure, the resource scheduling device based on edge computing also includes: a generation module, which is used to generate alarm information when the available resources do not support the execution of the expansion operation; obtain resource adjustment information based on the alarm information feedback; and adjust the available resources of the first area according to the resource adjustment information until the available resources of the first area support the execution of the expansion operation.
[0107] In an embodiment of the present disclosure, the resource scheduling device based on edge computing also includes: a processing module, which is used to obtain a list of abnormal instances in the edge cloud computing system, wherein the list of abnormal instances includes abnormal instances of each computer room; obtain the abnormal time corresponding to each abnormal instance, and take the abnormal instance whose abnormal time exceeds a preset time as the target abnormal instance; detect the available resources of the original computer room corresponding to the target abnormal instance; when the available resources of the original computer room do not meet the preset conditions, add a new computer room in the second area, wherein the second area is the area where the original computer room is located; perform a capacity expansion operation on the newly added computer room, and perform a capacity reduction operation on the target abnormal instance in the original computer room.
[0108] See also Figure 7 , Figure 7 is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 7 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system).
[0109] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.
[0110] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.
[0111] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the use of a computer device based on the presentation of a small program landing page, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0112] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.
[0113] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.
[0114] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0115] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A resource processing method based on edge computing, characterized in that: The method is applied to an edge cloud computing system, and the method includes: Obtain a resource processing request received by a target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, the resource processing request includes key information and resource description information, the resource processing interface includes: a resource planning interface, a resource application interface, and a resource release interface, the key information is the area information or the computer room information, the resource description information is the relevant information of the resources to be processed, the resource planning interface is used to plan the resource usage in each computer room according to the algorithm and strategy, and provide a resource allocation plan; the resource application interface is used to process the resource application request submitted by the user at the computer room granularity; the resource release interface is used to process the user releasing the resources that have been applied for; Using the key information, searching for a corresponding computer room from a computer room database; Execute resource processing operations on the computer room based on the processing logic of the target resource processing interface and the resource description information; The method further includes: obtaining a list of abnormal instances in the edge cloud computing system, wherein the list of abnormal instances includes abnormal instances of each computer room; obtaining the abnormal time corresponding to each abnormal instance, and taking the abnormal instance whose abnormal time exceeds a preset time as a target abnormal instance; detecting available resources of the original computer room corresponding to the target abnormal instance; if the available resources of the original computer room do not meet the preset conditions, adding a new computer room in a second area, wherein the second area is the area where the original computer room is located; performing a capacity expansion operation on the newly added computer room, and performing a capacity reduction operation on the target abnormal instance in the original computer room; The processing logic based on the target resource processing interface and the resource description information performs resource processing operations on the computer room, including: when the target resource processing interface is a resource planning interface, determining screening conditions and combination conditions based on the processing logic of the resource planning interface; combining the computer rooms according to the combination conditions to obtain multiple computer room combinations; obtaining candidate computer room combinations that meet the screening conditions from the computer room combinations; evaluating the candidate computer room combinations according to the preset evaluation strategy in the resource description information to obtain the index values corresponding to the candidate computer rooms, and taking the candidate computer room combination with the highest index value as the target computer room combination; obtaining the first resource situation of each target computer room in the target computer room combination; generating resource planning information based on the first resource situation, and sending the resource planning information to the requester corresponding to the resource processing request; The resource processing operation is performed on the computer room based on the processing logic of the target resource processing interface and the resource description information, including: when the target resource processing interface is a resource application interface, determining the second resource situation in the resource pool based on the processing logic of the resource application interface; checking whether the second resource situation satisfies the resource description information to obtain a check result; performing the resource processing operation on the computer room according to the check result; wherein, the resource processing operation is performed on the computer room according to the check result, including: when the check result is that the second resource situation does not satisfy the resource description information, sending a first feedback result to the requester corresponding to the resource processing request, the first feedback result including resource application failure and failure reason; or, when the check result is that the second resource situation satisfies the resource description information, sending a second feedback result to the requester corresponding to the resource processing request, the second feedback result including resource application success and resource allocation information; The resource processing operation is performed on the computer room based on the processing logic of the target resource processing interface and the resource description information, including: when the target resource processing interface is a resource release interface, determining the to-be-released resources corresponding to the resource description information based on the processing logic of the resource release interface; detecting whether the to-be-released resources exist in the computer room; when the to-be-released resources exist in the computer room, performing a release operation on the to-be-released resources to obtain a resource release result, and sending the resource release result to the requester corresponding to the resource processing request.
2. The method according to claim 1, characterized in that The method further comprises: Obtaining instance load data of each area in the edge cloud computing system; Determine a target instance whose load data meets the expansion condition, and query the first area where the target instance corresponds to the original computer room; Detecting whether available resources in the first area support the capacity expansion operation; In a case where the available resources support the capacity expansion operation, instance planning information is obtained, and the capacity expansion operation is performed on the first area according to the instance planning information.
3. The method according to claim 2, characterized in that The method further comprises: If the available resources do not support the capacity expansion operation, generating an alarm message; Acquire resource adjustment information based on the alarm information feedback; The available resources of the first area are adjusted according to the resource adjustment information until the available resources of the first area support the capacity expansion operation.
4. A resource scheduling device based on edge computing, characterized in that: The device comprises: An acquisition module is used to acquire a resource processing request received by a target resource processing interface, wherein the target resource processing interface is any one of a plurality of different types of resource processing interfaces, and the resource processing request includes key information and resource description information; the resource processing interface includes: a resource planning interface, a resource application interface, and a resource release interface, wherein the key information is the area information or the computer room information, and the resource description information is the relevant information of the resources to be processed, and the resource planning interface is used to plan the resource usage in each computer room according to the algorithm and strategy, and provide a resource allocation plan; the resource application interface is used to process the resource application request submitted by the user at the computer room granularity; the resource release interface is used to process the user releasing the resources that have been applied for; A search module, used to search for a corresponding computer room from a computer room library using the key information; An execution module, configured to execute a resource processing operation on the computer room based on the processing logic of the target resource processing interface and the resource description information; The device also includes: a processing module, which is used to obtain a list of abnormal instances in the edge cloud computing system, wherein the list of abnormal instances includes abnormal instances of each computer room; obtain the abnormal time corresponding to each abnormal instance, and use the abnormal instance whose abnormal time exceeds a preset time as a target abnormal instance; detect the available resources of the original computer room corresponding to the target abnormal instance; if the available resources of the original computer room do not meet the preset conditions, add a new computer room in the second area, wherein the second area is the area where the original computer room is located; perform a capacity expansion operation on the newly added computer room, and perform a capacity reduction operation on the target abnormal instance in the original computer room; The execution module is specifically used to determine the screening conditions and the combination conditions based on the processing logic of the resource planning interface when the target resource processing interface is a resource planning interface; combine the computer rooms according to the combination conditions to obtain multiple computer room combinations; obtain the candidate computer room combination that meets the screening conditions from the computer room combination; evaluate the candidate computer room combination according to the preset evaluation strategy in the resource description information to obtain the index value corresponding to the candidate computer room, and use the candidate computer room combination with the highest index value as the target computer room combination; obtain the first resource situation of each target computer room in the target computer room combination; generate resource planning information based on the first resource situation, and send the resource planning information to the requester corresponding to the resource processing request; The execution module is also specifically used to determine the second resource situation in the resource pool based on the processing logic of the resource planning interface when the target resource processing interface is a resource application interface; check whether the second resource situation meets the resource description information to obtain a check result; perform a resource processing operation on the computer room according to the check result; wherein, performing a resource processing operation on the computer room according to the check result includes: when the check result is that the second resource situation does not meet the resource description information, sending a first feedback result to the requester corresponding to the resource processing request, the first feedback result includes a resource application failure and a failure reason; or, when the check result is that the second resource situation meets the resource description information, sending a second feedback result to the requester corresponding to the resource processing request, the second feedback result includes a resource application success and resource allocation information; The execution module is also specifically used to determine the resources to be released corresponding to the resource description information based on the processing logic of the resource planning interface when the target resource processing interface is a resource release interface; detect whether there are resources to be released in the computer room; when there are resources to be released in the computer room, perform a release operation on the resources to be released, obtain a resource release result, and send the resource release result to the requester corresponding to the resource processing request.
5. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method according to any one of claims 1 to 3 by executing the computer instructions.
6. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 3.
