Resource allocation method and device, computer device, storage medium and product
Patent Information
- Application Number
- CN202311029049.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-15
- Publication Date
- 2026-10-13
- Estimated Expiration
- 2043-08-15
AI Technical Summary
[0004]然而,相关技术中,在新一代云网运营业务系统处理业务时,存在资源分配不合理的问题
[0040]本申请实施例提供的资源分配方法、装置、计算机设备、存储介质及产品,包括:根据原子能力平台中的目标业务场景,获取目标业务场景下的多个原子能力和各原子能力对应的原子能力接口,根据各原子能力和各原子能力对应的原子能力接口,确定各原子能力的资源配比和容灾因子,并根据各原子能力的资源配比和容灾因子,对各原子能力进行资源分配,其中,原子能力表示执行目标业务场景中最小粒度业务的功能单元;上述方法可以细粒度化目标业务场景,得到目标业务场景中最小粒度业务的功能单元(即原子能力),进一步从执行目标业务场景中最小粒度业务的功能单元(即原子能力)层来实现资源分配,避免了从执行目标业务场景的业务能力层,即粗粒度业务场景层来实现资源分配的问题,使得各原子能力分配的资源能够根据不同原子能力的功能灵活调整,这样不仅可以避免业务处理过程中的资源浪费,还可以提高资源分配的准确性以及资源分配的合理性;同时,上述方法不需要人工参与,不仅能够提高资源分配的速度,还能够减少人为参与产生的分配误差,在极大程度上能够提高资源分配的准确性以及资源分配的合理性。
Smart Images

Figure CN116996457B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a resource allocation method, apparatus, computer equipment, storage medium, and product. Background Technology
[0002] With the rapid development of the Internet, a new generation of cloud network operation business systems has gradually emerged.
[0003] The core capabilities of the new generation cloud network operation business system encompass marketing, operations, billing, management support, and basic capability domains, including multiple business capability centers. In related technologies, the atomic capability platform within the new generation cloud network operation business system primarily calls the corresponding business capability centers through capability center interfaces and allocates resources to each business capability center to process business requests.
[0004] However, in the relevant technologies, there is a problem of unreasonable resource allocation when the new generation of cloud network operation business system processes business. Summary of the Invention
[0005] Therefore, it is necessary to provide a resource allocation method, apparatus, computer equipment, storage medium, and product to address the aforementioned technical problems.
[0006] In a first aspect, embodiments of this application provide a resource allocation method, the method comprising:
[0007] Based on the target business scenario in the atomic capability platform, obtain multiple atomic capabilities under the target business scenario and the atomic capability interfaces corresponding to each atomic capability; an atomic capability represents the functional unit that executes the smallest granularity business in the target business scenario.
[0008] Based on each atomic capability and its corresponding atomic capability interface, determine the resource allocation and disaster recovery factor for each atomic capability.
[0009] Based on the resource allocation ratio and disaster recovery factor of each atomic capability, resources are allocated to each atomic capability.
[0010] In one embodiment, based on the target business scenario in the atomic capability platform, multiple atomic capabilities under the target business scenario and the atomic capability interfaces corresponding to each atomic capability are obtained, including:
[0011] Divide the target business scenario into the smallest business scenario, determine at least one smallest business scenario, and obtain the corresponding business capabilities that need to be called to execute each smallest business scenario;
[0012] For any business capability, the business capability is divided into functional units of the smallest granularity business, and at least one atomic capability corresponding to the business capability is determined.
[0013] The corresponding interfaces for each atomic capability are determined based on each atomic capability.
[0014] In one embodiment, the resource allocation and disaster recovery factor of each atomic capability are determined based on each atomic capability and its corresponding atomic capability interface, including:
[0015] Based on each atomic capability and its corresponding atomic capability interface, obtain the dependency graph between different atomic capability interfaces and different atomic capabilities.
[0016] Based on the dependency graph, determine the resource allocation and disaster recovery factor for each atomic capability.
[0017] In one embodiment, based on each atomic capability and its corresponding atomic capability interface, a dependency graph between different atomic capability interfaces and different atomic capabilities is obtained, including:
[0018] Obtain the correspondence between each atomic capability and its corresponding atomic capability interface;
[0019] Based on the correspondence between each atomic capability and its corresponding atomic capability interface, a dependency graph is constructed.
[0020] In one embodiment, the resource allocation and disaster recovery factor of each atomic capability are determined based on the dependency graph, including:
[0021] Based on the dependency graph, the atomic capability interfaces are clustered to obtain the clustering results;
[0022] Based on the clustering results and the preset disaster recovery factor allocation rules, the disaster recovery factor of each atomic capability relative to different atomic capability interfaces is determined.
[0023] Based on the clustering results and each disaster recovery factor, the resource allocation ratio of each atomic capability is determined.
[0024] In one embodiment, the resource allocation of each atomic capability is determined based on the clustering results and various disaster recovery factors, including:
[0025] Based on the clustering results, obtain the number of atomic capability interface categories corresponding to each atomic capability interface and the number of atomic capability interfaces in each category, and determine the sum of disaster recovery factors for each atomic capability based on each disaster recovery factor;
[0026] Obtain the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability;
[0027] The resource allocation of each atomic capability is determined based on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability.
[0028] In one embodiment, the resource allocation of each atomic capability is determined based on the number of atomic capability interfaces in each type of atomic capability interface, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, including:
[0029] Based on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, construct a resource consumption optimization function for the target business scenario.
[0030] With the goal of minimizing resource consumption, we solve for the resource consumption optimization function to determine the resource allocation ratio of each atomic capability.
[0031] In one embodiment, the resource consumption optimization function is solved with the goal of minimizing resource consumption, including:
[0032] With the goal of minimizing resource consumption, the resource consumption optimization function is solved based on the constraints of the resource allocation ratio. The constraints include that the resource allocation ratios of different atomic capabilities are all greater than a preset threshold.
[0033] Secondly, embodiments of this application provide a resource allocation apparatus, the apparatus comprising:
[0034] The acquisition module is used to acquire multiple atomic capabilities and their corresponding atomic capability interfaces based on the target business scenario in the atomic capability platform; an atomic capability represents a functional unit that executes the smallest granularity business in the target business scenario.
[0035] The determination module is used to determine the resource allocation and disaster recovery factor of each atomic capability based on each atomic capability and its corresponding atomic capability interface.
[0036] The resource allocation module is used to allocate resources to each atomic capability based on the resource ratio and disaster recovery factor of each atomic capability.
[0037] Thirdly, embodiments of this application also provide a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of the method in any of the embodiments of the first aspect.
[0038] Fourthly, embodiments of this application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method in any embodiment of the first aspect.
[0039] Fifthly, embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the method in any of the embodiments of the first aspect.
[0040] The resource allocation method, apparatus, computer equipment, storage medium, and product provided in this application include: obtaining multiple atomic capabilities and their corresponding atomic capability interfaces under a target business scenario in an atomic capability platform; determining the resource allocation ratio and disaster recovery factor of each atomic capability based on each atomic capability and its corresponding atomic capability interface; and allocating resources to each atomic capability based on the resource allocation ratio and disaster recovery factor. Here, an atomic capability represents a functional unit that executes the smallest granularity business in the target business scenario. The above method can refine the target business scenario to obtain the functional unit (i.e., atomic capability) of the smallest granularity business in the target business scenario. This method further allocates resources from the functional unit (i.e., atomic capability) layer, which is the smallest granularity of the business scenario, avoiding the problem of allocating resources from the business capability layer, i.e., the coarse-grained business scenario layer. This allows the resources allocated to each atomic capability to be flexibly adjusted according to the function of different atomic capabilities. This not only avoids resource waste in the business processing process, but also improves the accuracy and rationality of resource allocation. At the same time, the above method does not require human intervention, which not only improves the speed of resource allocation, but also reduces the allocation error caused by human intervention, thus greatly improving the accuracy and rationality of resource allocation. Attached Figure Description
[0041] Figure 1 This is a diagram illustrating the application environment of a resource allocation method in one embodiment.
[0042] Figure 2 This is a flowchart illustrating a resource allocation method in one embodiment;
[0043] Figure 3 This is an overall architecture diagram of a next-generation cloud network operation business system in one embodiment;
[0044] Figure 4 This is a flowchart illustrating the resource allocation method in another embodiment;
[0045] Figure 5 This is a flowchart illustrating the resource allocation method in another embodiment;
[0046] Figure 6 This is a flowchart illustrating the resource allocation method in another embodiment;
[0047] Figure 7 This is a diagram illustrating a dependency graph in one embodiment;
[0048] Figure 8 This is a flowchart illustrating the resource allocation method in another embodiment;
[0049] Figure 9 for Figure 7 A diagram illustrating the clustering results corresponding to the example;
[0050] Figure 10 This is a flowchart illustrating the resource allocation method in another embodiment;
[0051] Figure 11 This is a flowchart illustrating the resource allocation method in another embodiment;
[0052] Figure 12 This is a flowchart illustrating the resource allocation method in another embodiment;
[0053] Figure 13 This is a structural block diagram of a resource allocation device in one embodiment;
[0054] Figure 14 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0056] In the field of business processing, the next-generation cloud network operation business system (NG-CNOS) has gradually developed. Within this system, the atomic capability platform primarily calls corresponding business capability centers through business capability center interfaces and allocates resources to each center to handle business scenarios. However, in related technologies, when the NG-CNOS processes business, the allocation of resources to each business capability center results in different atomic capabilities within a single center receiving the same amount of resources, leading to unreasonable resource allocation. Therefore, this application provides a resource allocation method that improves the rationality of resource allocation during business processing.
[0057] The resource allocation method provided in this application embodiment can be applied to a resource allocation system. The resource allocation system may include a computer device on which a new-generation cloud network operation business system is deployed, and this computer device can directly execute the resource allocation method. Furthermore, the aforementioned resource allocation system may include both the new-generation cloud network operation business system and the computer device executing the resource allocation method. In practical applications, the new-generation cloud network operation business system can be deployed on the computer device. Figure 1This example uses a resource allocation system, which includes computer device 1 and computer device 2. The next-generation cloud network operation business system is deployed on computer device 2. It should be noted that the computer device executing the resource allocation method and the computer device deploying the next-generation cloud network operation business system communicate with each other. This communication method can be Bluetooth, Wi-Fi, mobile network connection, etc., and this embodiment does not limit the specific form of the computer device. The aforementioned computer device can be, but is not limited to, various personal computers, laptops, smartphones, and tablets; this embodiment does not limit the specific form of the computer device. The following embodiments will describe the specific process of the resource allocation method. For ease of description, in this embodiment, the computer device deploying the next-generation cloud network operation business system is directly described as the next-generation cloud network operation business system to illustrate the resource allocation method. The following describes the specific process of the resource allocation method using the computer device as the executing entity.
[0058] like Figure 2 The diagram shown is a flowchart illustrating a resource allocation method provided in an embodiment of this application. This method may include the following steps:
[0059] S100. Based on the target business scenario in the atomic capability platform, obtain multiple atomic capabilities under the target business scenario and the corresponding atomic capability interfaces for each atomic capability. Here, an atomic capability represents a functional unit that executes the smallest granularity of business operations within the target business scenario.
[0060] The atomic capability platform can serve as the business processing platform within the next-generation cloud network operation business system. This next-generation cloud network operation business system can encompass multiple business scenarios that the atomic capability platform can handle, as well as marketing, operations, billing, management support, and basic capability domains, including multiple business capability centers, i.e., business capabilities.
[0061] Optionally, the target business scenario can be any type of business scenario. For example, the business scenario can be an online sales scenario, a service collaboration scenario, an intelligent customer service scenario, an intelligent operations workbench scenario, a cloud-network intelligent driving scenario, a smart network security scenario, a refined cost control scenario, a cloud office scenario and a cloud audit scenario, a public business acceptance scenario, a customer service guarantee scenario, a government and enterprise business acceptance scenario, a mobile payment scenario, a recharge and reactivation scenario, a cost calculation and real-time credit control scenario, a user cost billing scenario, a query, adjustment, and invoice printing scenario, a service collaboration scenario, etc.
[0062] It's worth noting that when handling different target business scenarios, the atomic capability platform can also call upon corresponding databases, caches, messages, and other information from the technical foundation layer to achieve the desired business scenario processing. For example... Figure 3 The diagram shown is the overall architecture block diagram of the new generation cloud network operation business system. Figure 3The document only shows n business scenarios and 24 callable business capabilities that the atomic capability platform in the new generation cloud network operation business system can handle. These business scenarios can include online sales, marketing collaboration, intelligent customer service, intelligent operation workbench, cloud network intelligent driving, smart network optimization, refined cost control, cloud office, and cloud auditing. The marketing domain includes business capabilities such as product service design center, sales center, order center, rights center, channel management center, customer center, or partner center. The operation domain includes business capabilities such as service orchestration center, customer service center, operation support center, operation scheduling center, resource (cloud network resources / marketing resources) center, or procurement control center. The billing domain includes business capabilities such as billing center, finance center, settlement center, or payment center. The management support domain includes business capabilities such as construction center, procurement center, human resources center, or finance center. The basic capability domain includes business capabilities such as authentication center, master data management center, or autonomous center.
[0063] It should be noted that each business capability can include multiple atomic capabilities. Optionally, when the atomic capability platform executes a target business scenario, it can call the corresponding atomic capabilities through the atomic capability interface to achieve the processing of the target business scenario through the called atomic capabilities. Here, an atomic capability represents the functional unit that executes the smallest granularity of business in the target business scenario.
[0064] In practical applications, computer devices can acquire the target business scenario to be processed by the atomic capability platform, then analyze and process the target business scenario to obtain multiple atomic capabilities under the target business scenario and the atomic capability interfaces corresponding to each atomic capability. Optionally, each atomic capability can correspond to the same atomic capability interface, or multiple atomic capabilities can correspond to the same atomic capability interface.
[0065] In addition, the computer equipment can also obtain the target business scenario to be processed by the atomic capability platform, then look up the identifier of the target business scenario in the mapping relationship table, and obtain the identifier of the atomic capability corresponding to the identifier of the target business scenario and the identifier of the atomic capability interface corresponding to each atomic capability from the mapping relationship table. Then, based on the found identifier of the corresponding atomic capability and the identifier of the atomic capability interface corresponding to each atomic capability, the atomic capability corresponding to the target business scenario and the atomic capability interface corresponding to each atomic capability are determined.
[0066] Optionally, the mapping table above may include the correspondence between identifiers of different business scenarios, identifiers of different atomic capabilities, and identifiers of different atomic capability interfaces. Optionally, the identifier may represent the corresponding name or number, etc.
[0067] S200. Based on each atomic capability and its corresponding atomic capability interface, determine the resource allocation and disaster recovery factor for each atomic capability.
[0068] In practical applications, computer equipment can pre-train a resource allocation network model, and then input each atomic capability corresponding to the target business scenario and the atomic capability interface corresponding to each atomic capability into the resource allocation network model. The resource allocation network model outputs the resource allocation ratio and disaster recovery factor of each atomic capability.
[0069] Optionally, the above-mentioned resource allocation network model may be composed of at least one of the following: convolutional neural network model, fully connected neural network model, recurrent recurrent neural network model, deep belief network model, graph convolutional neural network model, deep autoencoder and generative adversarial network model. This application embodiment does not limit this.
[0070] Simultaneously, the computer equipment can also allocate resources to each atomic capability according to a preset resource allocation strategy, based on the atomic capabilities corresponding to the target business scenario and the atomic capability interfaces corresponding to each atomic capability, thereby obtaining the resource allocation ratio and disaster recovery factor corresponding to each atomic capability. Optionally, the preset resource allocation strategy may be, but is not limited to, an allocation strategy determined by allocating resources in proportion to the functions of different atomic capabilities.
[0071] S300: Allocate resources to each atomic capability based on the resource ratio and disaster recovery factor of each atomic capability.
[0072] Based on the resource allocation and disaster recovery factor of each atomic capability in the target business scenario obtained in the previous steps, the atomic capability platform can allocate resources for the atomic capabilities to be called through the atomic capability interfaces corresponding to each atomic capability.
[0073] Alternatively, resource allocation can be understood as the standardized distribution ratio of information such as central processing units, memory, disks, and access restrictions.
[0074] The technical solution in this application embodiment obtains multiple atomic capabilities and their corresponding atomic capability interfaces under the target business scenario in the atomic capability platform. Based on each atomic capability and its corresponding atomic capability interface, the resource allocation and disaster recovery factor of each atomic capability are determined. Then, resources are allocated to each atomic capability based on its resource allocation and disaster recovery factor. Here, an atomic capability represents a functional unit that executes the smallest granularity of business in the target business scenario. The above method can refine the target business scenario to obtain the functional unit (i.e., atomic capability) of the smallest granularity of business in the target business scenario, further refining the execution of the target business... Resource allocation is implemented at the functional unit (i.e., atomic capability) level of the smallest granularity business scenario, avoiding the problem of resource allocation from the business capability level of the target business scenario, i.e., the coarse-grained business scenario level. This allows the resources allocated to each atomic capability to be flexibly adjusted according to the function of different atomic capabilities. This not only avoids resource waste in the business processing process, but also improves the accuracy and rationality of resource allocation. At the same time, the above method does not require human intervention, which not only improves the speed of resource allocation, but also reduces the allocation error caused by human intervention, and greatly improves the accuracy and rationality of resource allocation.
[0075] The following describes the process of obtaining multiple atomic capabilities and their corresponding atomic capability interfaces based on the target business scenario in the atomic capability platform. In one embodiment, as follows... Figure 4 As shown, the steps in S100 above can be implemented in the following ways:
[0076] S110. Divide the target business scenario into minimum business scenarios, determine at least one minimum business scenario, and obtain the corresponding business capabilities that need to be called to execute each minimum business scenario.
[0077] The above-mentioned minimum business scenario division can be understood as the process of refining the target business scenario into minimum business scenarios.
[0078] For example, if the target business scenario is a public service acceptance scenario, the minimum business scenarios in the public service acceptance scenario may include scenarios such as querying order status, applying for mobile phone packages, applying for whole-house Wi-Fi, applying for handset purchase, applying for number portability, applying for cross-provincial integration, and applying for remote handset disconnection. Furthermore, the corresponding business capabilities required to execute these minimum business scenarios in the public service acceptance scenario can be obtained. These business capabilities may include the ability to query customer information, the ability to query sales items, the ability to pay for orders, and the ability to print invoices, etc., which are not limited in this embodiment.
[0079] Taking the target business scenario as the mobile phone plan subscription scenario as an example, the minimum business scenarios in the mobile phone plan subscription scenario can include the mobile phone bill subscription scenario and the mobile data subscription scenario. Furthermore, the corresponding business capabilities required to execute the mobile phone bill subscription scenario and the mobile data subscription scenario can be obtained. These business capabilities can include the ability to query customer information, query sales products, pay for orders, and print invoices, etc., which are not limited in this embodiment.
[0080] Taking the target business scenario as the broadband package subscription scenario as an example, the minimum business scenario in the broadband package subscription scenario can include the single broadband package subscription scenario and the internet TV package subscription scenario. Furthermore, the corresponding business capabilities required to execute the single broadband package subscription scenario and the internet TV package subscription scenario can be obtained. These business capabilities can include the ability to add customer information, query sales products, pay for orders, and print invoices, etc., which are not limited in this embodiment.
[0081] It's important to note that when the target business scenario is a minimum business scenario, dividing the target business scenario into minimum business scenarios yields a minimum business scenario, i.e., the target business scenario. Furthermore, each minimum business scenario can correspond to at least one business capability.
[0082] S120. For any business capability, divide the business capability into functional units with the smallest granularity and determine at least one atomic capability corresponding to the business capability.
[0083] Taking the ability to query customer information as an example, the ability to query customer information is divided into functional units of the smallest granularity business to obtain the atomic capabilities corresponding to the ability to query customer information. These atomic capabilities may include the ability to query customers, the ability to authenticate real names, the ability to query accounts, and the ability to query permissions, etc. This application embodiment does not limit these capabilities.
[0084] Taking the ability to query sales products as an example, the ability to query sales products is divided into functional units of the smallest granularity business to obtain the atomic capabilities corresponding to the ability to query sales products. These atomic capabilities may include the ability to query the provision (i.e., offer) list, etc., which are not limited in this embodiment of the application.
[0085] Taking payment order capability as an example, the payment order capability is divided into functional units of the smallest granularity business to obtain the atomic capability corresponding to the payment order capability. The atomic capability may include the bill query capability and the payment order capability, etc., which are not limited in this embodiment of the application.
[0086] Taking the business capability of printing invoices as an example, the business function of printing invoices is divided into the smallest granularity business functional units to obtain the atomic capabilities corresponding to the printing invoices capability. These atomic capabilities may include account query capability, bill query capability, and invoice issuance capability, etc., which are not limited in this embodiment of the application.
[0087] S130. Determine the corresponding interfaces for each atomic capability based on each atomic capability.
[0088] Based on the atomic capabilities corresponding to the target business scenario determined in the previous steps, the atomic capability interfaces corresponding to each atomic capability can be obtained.
[0089] For example, taking the business capability of querying customer information as an example, if the atomic capability corresponding to the ability to query customer information is the ability to query customers, then the atomic capability interface corresponding to the ability to query customers can be the Customer interface; if the atomic capability corresponding to the ability to query customer information is the ability to verify real-name authentication, then the atomic capability interface corresponding to the ability to verify real-name authentication can be the PartyCheck interface; if the atomic capability corresponding to the ability to query customer information is the ability to query accounts, then the atomic capability interface corresponding to the ability to query accounts can be the Account interface; if the atomic capability corresponding to the ability to query customer information is the ability to query permissions, then the atomic capability interface corresponding to the ability to query permissions can be the Privilege interface.
[0090] Taking the business capability of querying sales products as an example, the atomic capability corresponding to the ability to query sales products is the ability to query the offer list. Therefore, the atomic capability interface corresponding to the ability to query the offer list can be the offer interface.
[0091] Taking the payment order capability as an example, if the atomic capability corresponding to the payment order capability is the query bill capability, then the atomic capability interface corresponding to the query bill capability can be the AcctItem interface; if the atomic capability corresponding to the payment order capability is the payment order capability, then the atomic capability interface corresponding to the payment order capability can be the PayOrder interface.
[0092] Taking the business capability of printing invoices as an example, if the atomic capability corresponding to the printing invoice capability is the account query capability, then the atomic capability interface corresponding to the account query capability can be the Account interface; if the atomic capability corresponding to the printing invoice capability is the bill query capability, then the atomic capability interface corresponding to the bill query capability can be the AcctItem interface; if the atomic capability corresponding to the printing invoice capability is the invoice issuance capability, then the atomic capability interface corresponding to the invoice issuance capability can be the IssueInvoice interface.
[0093] In practical applications, the atomic capabilities corresponding to different business capabilities can be the same or different. Naturally, the atomic capability interfaces of the atomic capabilities corresponding to different business capabilities can be the same or different. Optionally, the total number of all atomic capabilities corresponding to the target business scenario can be equal to or less than the total number of all atomic capability interfaces.
[0094] The technical solution in this application embodiment divides the target business scenario into minimum business scenarios, determines at least one minimum business scenario, and obtains the corresponding business capabilities that need to be called to execute each minimum business scenario. For any business capability, the business capability is divided into functional units of the minimum granularity business, and at least one atomic capability corresponding to the business capability is determined. The corresponding atomic capability interface is determined according to each atomic capability. This method can divide the maximum business scenario (i.e., the target business scenario) layer by layer according to the scope of the business scenario to obtain the corresponding atomic capabilities of the minimum granularity business functional units and the atomic capability interfaces corresponding to each atomic capability. On this basis, resource allocation of the minimum granularity business functional units can be further realized to improve the accuracy and rationality of resource allocation.
[0095] The process of determining the resource allocation and disaster recovery factor of each atomic capability based on each atomic capability and its corresponding atomic capability interface is described below. In one embodiment, as... Figure 5 As shown, the steps in S200 above can be implemented in the following ways:
[0096] S210. Based on each atomic capability and its corresponding atomic capability interface, obtain the dependency graph between different atomic capability interfaces and different atomic capabilities.
[0097] Specifically, computer devices can use a dependency construction method to construct dependencies based on each atomic capability and its corresponding atomic capability interface, thereby obtaining a dependency graph between different atomic capability interfaces and different atomic capabilities.
[0098] Optionally, the dependency relationship construction method can be a dependency relationship tree construction method, a construction method based on deep learning networks, etc., and this application embodiment does not limit this. It should be noted that the dependency relationship graph can determine the dependency relationship, i.e., the correspondence relationship, between different atomic capability interfaces and different atomic capabilities.
[0099] The process of constructing a dependency graph is described below. In one embodiment, as follows: Figure 6 As shown, the process in S210 above, which obtains the dependency graph between different atomic capability interfaces and different atomic capabilities based on each atomic capability and its corresponding atomic capability interface, may include:
[0100] S211. Obtain the correspondence between each atomic capability and its corresponding atomic capability interface.
[0101] In this embodiment of the application, if the atomic capabilities corresponding to different business capabilities are the same, the same atomic capabilities can be merged, and only the atomic capability interface corresponding to the same atomic capability needs to be obtained. That is, the final determined multiple atomic capability interfaces are not the same.
[0102] In addition, if different business capabilities correspond to different atomic capabilities, but the same atomic capability interface can provide multiple services, then multiple atomic capabilities can correspond to the same atomic capability interface.
[0103] For example, if multiple atomic capabilities are respectively the capabilities of querying customers, adding customers, deleting customers, and modifying customers, but the Customer interface can provide services such as querying customers, adding customers, deleting customers, and modifying customers, then the capabilities of querying customers, adding customers, deleting customers, and modifying customers can correspond to the same atomic capability interface, namely the Customer interface.
[0104] In addition, if multiple atomic capabilities are respectively the capabilities of querying customers, adding customers, deleting customers, and modifying customers, but atomic capability interface 1 can provide services such as querying customers and atomic capability interface 2 can provide services such as adding customers, deleting customers, and modifying customers, then the capabilities of querying customers, adding customers, deleting customers, and modifying customers can correspond to two atomic capability interfaces, namely atomic capability interface 1 and atomic capability interface 2.
[0105] Specifically, based on the acquired atomic capabilities and their interfaces, the correspondence between each atomic capability and its corresponding interface can be obtained.
[0106] S212. Construct a dependency graph based on the correspondence between each atomic capability and its corresponding atomic capability interface.
[0107] Specifically, computer devices can connect each atomic capability with its corresponding atomic capability interface based on the correspondence between each atomic capability and its corresponding atomic capability interface to obtain a dependency graph.
[0108] For example, consider six atomic capabilities: adding a customer, querying customers, querying sales items, adding a sales item, paying bills, and printing invoices. The corresponding atomic capability interfaces are: Customer, PartyCheck, Account, Privilege, offer, ActItem, PayOrder, and IssueInvoice. Figure 7 The diagram shows the dependency relationship between each atomic capability and its corresponding atomic capability interface.
[0109] S220. Based on the dependency graph, determine the resource allocation and disaster recovery factor for each atomic capability.
[0110] The computer equipment can pre-train an algorithm model, input the dependency graph into the algorithm model, and the algorithm model outputs the resource allocation and disaster recovery factor of each atomic capability.
[0111] In addition, computer equipment can determine the resource allocation ratio and disaster recovery factor of each atomic capability according to the dependency graph and the preset resource allocation strategy.
[0112] The technical solution in this application embodiment can obtain the dependency graph between different atomic capability interfaces and different atomic capabilities, and then determine the resource allocation and disaster recovery factor of each atomic capability based on the dependency graph, so as to provide basic information for the resource allocation of each atomic capability in the target business scenario; at the same time, the method can intuitively and quickly determine the disaster recovery factor of each atomic capability through the dependency graph, which can reduce the operation cost required for the smallest granularity business resource allocation.
[0113] The process of determining the resource allocation and disaster recovery factor of each atomic capability based on the dependency graph is described below. In one embodiment, as... Figure 8 As shown, the steps in S220 above can be implemented in the following ways:
[0114] S221. Based on the dependency graph, cluster each atomic capability interface to obtain the clustering results.
[0115] Among them, computer equipment can use graph neural network clustering algorithms to cluster each atomic capability interface according to the dependency graph to obtain the clustering results.
[0116] In this embodiment of the application, the computer device can obtain the total number of corresponding atomic capabilities connected to each atomic capability interface according to the dependency graph, and then divide the atomic capability interfaces with the same total number into the same category to obtain the clustering result.
[0117] For example, such as Figure 9 As shown Figure 7 The clustering results of the dependency graph shown are illustrated in the diagram.
[0118] S222. Based on the clustering results and the preset disaster recovery factor allocation rules, determine the disaster recovery factor of each atomic capability relative to different atomic capability interfaces.
[0119] Optionally, the preset disaster recovery factor allocation rule may include the sum of the disaster recovery factors of all atomic capability interfaces corresponding to the same atomic capability being equal to 1. In practical applications, the preset disaster recovery factor allocation rule may include the sum of all disaster recovery factors corresponding to different atomic capability interfaces of the same type being equal, and each disaster recovery factor being greater than 0 and less than 1.
[0120] It should be noted that in the dependency graph, each atomic capability is connected to one or more atomic capability interfaces. The fault tolerance factor of each atomic capability relative to different atomic capability interfaces can also be understood as configuring a corresponding weight coefficient for each connection.
[0121] Specifically, computer equipment can configure the disaster recovery factors of each atomic capability relative to different atomic capability interfaces based on the clustering results and the preset disaster recovery factor allocation rules, thereby obtaining the disaster recovery factors of each atomic capability relative to different atomic capability interfaces.
[0122] S223. Based on the clustering results and each disaster recovery factor, determine the resource allocation ratio of each atomic capability.
[0123] In practical applications, computer equipment can pre-train a resource allocation network model, and then input the clustering results and each disaster recovery factor into the resource allocation network model. The resource allocation network model outputs the resource allocation ratio of each atomic capability.
[0124] The technical solution in this application embodiment can cluster each atomic capability interface according to the dependency graph to obtain the clustering result. Based on the clustering result and the preset disaster recovery factor allocation rule, the disaster recovery factor of each atomic capability relative to different atomic capability interfaces is determined. Based on the clustering result and each disaster recovery factor, the resource allocation ratio of each atomic capability is determined. This method can realize resource allocation from the functional unit (i.e., atomic capability) layer of the smallest granularity business in the target business scenario, avoiding resource allocation from the business capability layer of the target business scenario. This not only avoids resource waste in the business processing process, but also improves the accuracy and rationality of resource allocation. In addition, the above method can take into account the disaster recovery factor of each atomic capability corresponding to the target business scenario to realize resource allocation, which can make the applicability of resource allocation wider.
[0125] The process of determining the resource allocation of each atomic capability based on the clustering results and various disaster recovery factors is described below. In one embodiment, as... Figure 10 As shown, the steps in S223 above can be implemented in the following ways:
[0126] S2231. Based on the clustering results, obtain the number of atomic capability interface categories corresponding to each atomic capability interface and the number of atomic capability interfaces in each category, and determine the sum of disaster recovery factors for each atomic capability based on each disaster recovery factor.
[0127] Specifically, the computer device can obtain the number of atomic capability interface categories corresponding to each atomic capability interface from the clustering results, as well as the number of atomic capability interfaces in each category. At the same time, it can sum the disaster recovery factors corresponding to each atomic capability based on the disaster recovery factors of each atomic capability relative to different atomic capability interfaces, and obtain the sum of the disaster recovery factors of each atomic capability.
[0128] S2232. Obtain the initial resource allocation of the atomic capability interface corresponding to each atomic capability.
[0129] In practical applications, computer equipment can randomly configure resource allocation ratios for the atomic capability interfaces corresponding to each atomic capability, thereby obtaining the initial resource allocation ratios for the atomic capability interfaces corresponding to each atomic capability.
[0130] In addition, computer equipment can configure resource allocation for the atomic capability interfaces corresponding to each atomic capability according to a preset resource allocation strategy, thereby obtaining the initial resource allocation for the atomic capability interfaces corresponding to each atomic capability.
[0131] S2233. Determine the resource allocation of each atomic capability based on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability.
[0132] The computer equipment can perform arithmetic operations on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, to obtain the resource allocation of each atomic capability.
[0133] Optionally, the above arithmetic operations can be at least one of addition, subtraction, multiplication, division, logarithmic operations, exponential operations, etc.
[0134] The technical solution in this application embodiment obtains the number of atomic capability interface categories and the number of atomic capability interfaces in each category based on the clustering results, and determines the sum of disaster recovery factors for each atomic capability based on each disaster recovery factor to obtain the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability. Then, based on the number of atomic capability interfaces in each category, the number of atomic capability interface categories, the sum of disaster recovery factors for each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, the resource allocation of each atomic capability is determined. This method can determine the resource allocation of each atomic capability based on the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, resulting in higher accuracy of the final determined resource allocation.
[0135] The following describes the process of determining the resource allocation of each atomic capability based on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability. In one embodiment, as... Figure 11 As shown, the steps in S2233 above can be implemented in the following ways:
[0136] S2233a. Based on the number of atomic capabilities, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, construct the resource consumption optimization function corresponding to the target business scenario.
[0137] In practical applications, computer equipment can perform addition and multiplication operations on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, to construct a resource consumption optimization function corresponding to the target business scenario. Among them, the resource consumption optimization function f corresponding to the target business scenario can be constructed by the following formula (1).
[0138]
[0139] Where C represents the number of atomic capability interface categories, and N i l represents the number of atomic capability interfaces in the i-th type of atomic capability interface. j R represents the fault tolerance factor of the j-th atomic capability interface in the i-th type of atomic capability interface. j It is a vector that includes the initial resource allocation of j atomic capability interfaces among various atomic capability interfaces.
[0140] S2233b. With the goal of minimizing resource consumption, solve the resource consumption optimization function to determine the resource allocation ratio of each atomic capability.
[0141] Furthermore, with the goal of minimizing resource consumption, an optimization algorithm can be used to solve the resource consumption optimization function, i.e., to find min f, so that the optimal resource allocation for each atom's capabilities is obtained when f reaches its minimum value. Optionally, the above optimization algorithm can be gradient descent, Newton's method, genetic algorithm, ant colony algorithm, particle swarm optimization, etc., and this application embodiment does not limit the specific algorithm used.
[0142] In one embodiment, the step of solving the resource consumption optimization function with the goal of minimizing resource consumption in S2233b above may include: solving the resource consumption optimization function with the goal of minimizing resource consumption, based on the constraints of the resource allocation ratio. The constraints include that the resource allocation ratios for different atomic capabilities are all greater than a preset threshold.
[0143] In this embodiment of the application, the constraint condition for the resource allocation ratio may include that the initial resource allocation ratio of each atomic capability interface in various atomic capability interfaces is greater than a preset threshold, so as to ensure that each atomic capability's corresponding atomic capability interface can be allocated resources.
[0144] Optionally, the preset threshold can be greater than 0, but in this embodiment, the preset threshold can be equal to 1.
[0145] The technical solution in this application embodiment can construct a resource consumption optimization function corresponding to the target business scenario, and solve the resource consumption optimization function with the minimum resource consumption as the objective, thereby determining the optimal resource allocation ratio of each atomic capability, which can improve the accuracy and rationality of resource allocation; at the same time, the method can obtain the optimal resource allocation ratio, and on this basis, can provide an effective resource allocation basis for further resource allocation, making the actual application more scientific and rational.
[0146] In one embodiment, this application also provides a resource allocation method, such as... Figure 12 As shown, the method includes the following procedures:
[0147] S10. Divide the target business scenario into minimum business scenarios, determine at least one minimum business scenario, and obtain the corresponding business capabilities that need to be called to execute each minimum business scenario.
[0148] S11. For any business capability, divide the business capability into functional units of the smallest granularity business and determine at least one atomic capability corresponding to the business capability; an atomic capability represents the functional unit of the smallest granularity business in the target business scenario.
[0149] S12. Determine the corresponding interfaces for each atomic capability based on each atomic capability.
[0150] S13. Obtain the correspondence between each atomic capability and its corresponding atomic capability interface.
[0151] S14. Construct a dependency graph based on the correspondence between each atomic capability and its corresponding atomic capability interface.
[0152] S15. Based on the dependency graph, cluster the atomic capability interfaces to obtain the clustering results.
[0153] S16. Based on the clustering results and the preset disaster recovery factor allocation rules, determine the disaster recovery factor of each atomic capability relative to different atomic capability interfaces.
[0154] S17. Based on the clustering results, obtain the number of atomic capability interface categories corresponding to each atomic capability interface and the number of atomic capability interfaces in each category, and determine the sum of disaster recovery factors for each atomic capability based on each disaster recovery factor.
[0155] S18. Obtain the initial resource allocation of the atomic capability interface corresponding to each atomic capability.
[0156] S19. Based on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, construct the resource consumption optimization function corresponding to the target business scenario.
[0157] S20. With the goal of minimizing resource consumption, solve the resource consumption optimization function based on the constraints of the resource allocation ratio; the constraints include that the resource allocation ratios of different atomic capabilities are all greater than a preset threshold.
[0158] S21. Allocate resources to each atomic capability based on the resource ratio and disaster recovery factor of each atomic capability.
[0159] The specific execution process of S10 to S21 can be found in the description of the above embodiments. The implementation principle and technical effect are similar, and will not be repeated here.
[0160] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0161] Based on the same inventive concept, this application also provides a resource allocation apparatus for implementing the resource allocation method described above. The solution provided by this apparatus is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more resource allocation apparatus embodiments provided below can be found in the limitations of the resource allocation method described above, and will not be repeated here.
[0162] In one embodiment, Figure 13 This is a schematic diagram of the structure of a resource allocation device in one embodiment of this application. The resource allocation device provided in this embodiment can be applied to computer equipment. Figure 13 As shown, the resource allocation device in this application embodiment may include: an acquisition module 11, a determination module 12, and a resource allocation module 13, wherein:
[0163] The acquisition module 11 is used to acquire multiple atomic capabilities and the atomic capability interfaces corresponding to each atomic capability in the target business scenario based on the target business scenario in the atomic capability platform; atomic capability represents the functional unit that executes the smallest granularity business in the target business scenario.
[0164] Module 12 is used to determine the resource allocation and disaster recovery factor of each atomic capability based on each atomic capability and the atomic capability interface corresponding to each atomic capability.
[0165] Resource allocation module 13 is used to allocate resources to each atomic capability based on the resource ratio and disaster recovery factor of each atomic capability.
[0166] The resource allocation device provided in this application embodiment can be used to execute the technical solutions in the above-described resource allocation method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0167] In one embodiment, the acquisition module 11 includes: a first partitioning unit, a second partitioning unit, and a first determining unit, wherein:
[0168] The first partitioning unit is used to divide the target business scenario into minimum business scenarios, determine at least one minimum business scenario, and obtain the corresponding business capabilities that need to be called to execute each minimum business scenario.
[0169] The second partitioning unit is used to partition any business capability into the smallest granularity business functional units and determine at least one atomic capability corresponding to the business capability.
[0170] The first determining unit is used to determine the corresponding atomic capability interface based on each atomic capability.
[0171] The resource allocation device provided in this application embodiment can be used to execute the technical solutions in the above-described resource allocation method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0172] In one embodiment, the determining module 12 includes: an acquisition unit and a second determining unit, wherein:
[0173] The acquisition unit is used to obtain the dependency graph between different atomic capability interfaces and different atomic capabilities based on each atomic capability and the atomic capability interface corresponding to each atomic capability;
[0174] The second determining unit is used to determine the resource allocation and disaster recovery factor of each atomic capability based on the dependency graph.
[0175] The resource allocation device provided in this application embodiment can be used to execute the technical solutions in the above-described resource allocation method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0176] In one embodiment, the acquisition unit includes: a correspondence acquisition subunit and a construction subunit, wherein:
[0177] The correspondence acquisition subunit is used to obtain the correspondence between each atomic capability and its corresponding atomic capability interface;
[0178] Construct sub-units to build dependency graphs based on the correspondence between each atomic capability and its corresponding atomic capability interface.
[0179] The resource allocation device provided in this application embodiment can be used to execute the technical solutions in the above-described resource allocation method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0180] In one embodiment, the second determining unit includes: a clustering subunit, a first determining subunit, and a second determining subunit, wherein:
[0181] The clustering subunit is used to cluster the atomic capability interfaces according to the dependency graph to obtain the clustering results;
[0182] The first determining subunit is used to determine the disaster recovery factor of each atomic capability relative to different atomic capability interfaces based on the clustering results and the preset disaster recovery factor allocation rules.
[0183] The second determining subunit is used to determine the resource allocation of each atomic capability based on the clustering results and each disaster recovery factor.
[0184] The resource allocation device provided in this application embodiment can be used to execute the technical solutions in the above-described resource allocation method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0185] In one embodiment, the second determining subunit includes: an information acquisition subunit, an initial proportion acquisition subunit, and a proportion determining subunit, wherein:
[0186] The information acquisition subunit is used to obtain the number of atomic capability interface categories corresponding to each atomic capability interface and the number of atomic capability interfaces in each category based on the clustering results, as well as to determine the sum of the disaster recovery factors of each atomic capability based on each disaster recovery factor.
[0187] The initial allocation acquisition subunit is used to obtain the initial resource allocation of the atomic capability interface corresponding to each atomic capability;
[0188] The allocation determination subunit is used to determine the resource allocation of each atomic capability based on the number of atomic capability interfaces in various atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability.
[0189] The resource allocation device provided in this application embodiment can be used to execute the technical solutions in the above-described resource allocation method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0190] In one embodiment, the proportioning determination subunit is specifically used for:
[0191] Based on the number of atomic capability interfaces, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, construct a resource consumption optimization function for the target business scenario.
[0192] With the goal of minimizing resource consumption, we solve for the resource consumption optimization function to determine the resource allocation ratio of each atomic capability.
[0193] The process of finding the resource consumption optimization function with the goal of minimizing resource consumption includes: finding the resource consumption optimization function with the goal of minimizing resource consumption and based on the constraints of the resource allocation ratio; the constraints include that the resource allocation ratio of different atomic capabilities is greater than a preset threshold.
[0194] The resource allocation device provided in this application embodiment can be used to execute the technical solutions in the above-described resource allocation method embodiments of this application. Its implementation principle and technical effects are similar, and will not be repeated here.
[0195] Specific limitations regarding the resource allocation device can be found in the limitations of the resource allocation method above, and will not be repeated here. Each module in the aforementioned resource allocation device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0196] In one embodiment, a computer device is provided, the internal structure of which can be as follows: Figure 14 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides processing power. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores different business scenarios within the atomic capability platform. The network interface communicates with external endpoints via a network connection. When the computer program is executed by the processor, it implements a resource allocation method.
[0197] Those skilled in the art will understand that Figure 14 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0198] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:
[0199] Based on the target business scenario in the atomic capability platform, obtain multiple atomic capabilities under the target business scenario and the atomic capability interfaces corresponding to each atomic capability; an atomic capability represents the functional unit that executes the smallest granularity business in the target business scenario.
[0200] Based on each atomic capability and its corresponding atomic capability interface, determine the resource allocation and disaster recovery factor for each atomic capability.
[0201] Based on the resource allocation ratio and disaster recovery factor of each atomic capability, resources are allocated to each atomic capability.
[0202] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, the computer program performing the following steps when executed by a processor:
[0203] Based on the target business scenario in the atomic capability platform, obtain multiple atomic capabilities under the target business scenario and the atomic capability interfaces corresponding to each atomic capability; an atomic capability represents the functional unit that executes the smallest granularity business in the target business scenario.
[0204] Based on each atomic capability and its corresponding atomic capability interface, determine the resource allocation and disaster recovery factor for each atomic capability.
[0205] Based on the resource allocation ratio and disaster recovery factor of each atomic capability, resources are allocated to each atomic capability.
[0206] In one embodiment, a computer program product is also provided, including a computer program that, when executed by a processor, performs the following steps:
[0207] Based on the target business scenario in the atomic capability platform, obtain multiple atomic capabilities under the target business scenario and the atomic capability interfaces corresponding to each atomic capability; an atomic capability represents the functional unit that executes the smallest granularity business in the target business scenario.
[0208] Based on each atomic capability and its corresponding atomic capability interface, determine the resource allocation and disaster recovery factor for each atomic capability.
[0209] Based on the resource allocation ratio and disaster recovery factor of each atomic capability, resources are allocated to each atomic capability.
[0210] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0211] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0212] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.
Claims
1. A resource allocation method, characterized in that, The method includes: Based on the target business scenario in the atomic capability platform, obtain multiple atomic capabilities under the target business scenario and the atomic capability interface corresponding to each atomic capability; the atomic capability represents the functional unit that executes the smallest granularity business in the target business scenario. Based on each atomic capability and its corresponding atomic capability interface, determine the resource allocation and disaster recovery factor for each atomic capability; Based on the resource allocation ratio and disaster recovery factor of each atomic capability, resources are allocated to each atomic capability; The step of determining the resource allocation and disaster recovery factor of each atomic capability based on each atomic capability and its corresponding atomic capability interface includes: Based on each atomic capability and the atomic capability interface corresponding to each atomic capability, obtain the dependency graph between different atomic capability interfaces and different atomic capabilities; Based on the dependency graph, the atomic capability interfaces are clustered to obtain the clustering results; Based on the clustering results and the preset disaster recovery factor allocation rules, the disaster recovery factor of each atomic capability relative to different atomic capability interfaces is determined. Based on the clustering results, obtain the number of atomic capability interface categories corresponding to each atomic capability interface and the number of atomic capability interfaces in each category, and determine the sum of the disaster recovery factors of each atomic capability based on each disaster recovery factor; Obtain the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability; The resource allocation of each atomic capability is determined based on the number of atomic capability interfaces in each type of atomic capability interface, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interface corresponding to each atomic capability.
2. The method according to claim 1, characterized in that, The step of obtaining multiple atomic capabilities and their corresponding atomic capability interfaces based on the target business scenario in the atomic capability platform includes: The target business scenario is divided into minimum business scenarios to determine at least one minimum business scenario, and the corresponding business capabilities that need to be called to execute each minimum business scenario are obtained. For any business capability, the business capability is divided into functional units of the smallest granularity business, and at least one atomic capability corresponding to the business capability is determined. The corresponding interfaces for each atomic capability are determined based on each atomic capability.
3. The method according to claim 1, characterized in that, The step of obtaining a dependency graph between different atomic capability interfaces and different atomic capabilities based on each atomic capability and its corresponding atomic capability interface includes: Obtain the correspondence between each atomic capability and its corresponding atomic capability interface; The dependency graph is constructed based on the correspondence between each atomic capability and its corresponding atomic capability interface.
4. The method according to claim 1, characterized in that, The step of determining the resource allocation ratio of each atomic capability based on the number of atomic capability interfaces in each type of atomic capability interface, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation ratio of the atomic capability interfaces corresponding to each atomic capability includes: Based on the number of atomic capability interfaces in each type of atomic capability interface, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability, a resource consumption optimization function corresponding to the target business scenario is constructed. With the goal of minimizing resource consumption, the resource consumption optimization function is solved to determine the resource allocation ratio of each atomic capability.
5. The method according to claim 4, characterized in that, The step of solving the resource consumption optimization function with the objective of minimizing resource consumption includes: Taking the minimum resource consumption as the objective, and based on the constraints of the resource allocation ratio, the resource consumption optimization function is solved; the constraints include that the resource allocation ratios of different atomic capabilities are all greater than a preset threshold.
6. The method according to claim 4, characterized in that, The step of solving the resource consumption optimization function with the objective of minimizing resource consumption includes: With the minimum resource consumption as the objective, an optimization algorithm is used to solve the resource consumption optimization function. The optimization algorithm includes gradient descent, Newton's method, genetic algorithm, ant colony algorithm, and particle swarm optimization.
7. A resource allocation device, characterized in that, The device includes: The acquisition module is used to acquire multiple atomic capabilities under the target business scenario and the atomic capability interface corresponding to each atomic capability according to the target business scenario in the atomic capability platform; the atomic capability represents the functional unit that executes the smallest granularity business in the target business scenario; The determination module is used to determine the resource allocation and disaster recovery factor of each atomic capability based on each atomic capability and the atomic capability interface corresponding to each atomic capability; The resource allocation module is used to allocate resources to each of the atomic capabilities according to the resource ratio and disaster recovery factor of each atomic capability; The determining module includes an acquisition unit and a second determining unit; The acquisition unit is used to acquire a dependency graph between different atomic capability interfaces and different atomic capabilities based on each atomic capability and the atomic capability interface corresponding to each atomic capability. The second determining unit is configured to: cluster each atomic capability interface according to the dependency graph to obtain a clustering result; determine the disaster recovery factor of each atomic capability relative to different atomic capability interfaces according to the clustering result and a preset disaster recovery factor allocation rule; obtain the number of atomic capability interface categories corresponding to each atomic capability interface and the number of atomic capability interfaces in each category according to the clustering result, and determine the sum of the disaster recovery factors of each atomic capability according to the disaster recovery factors; obtain the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability; and determine the resource allocation of each atomic capability according to the number of atomic capability interfaces in each category, the number of atomic capability interface categories, the sum of the disaster recovery factors of each atomic capability, and the initial resource allocation of the atomic capability interfaces corresponding to each atomic capability.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1-6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-6.
Citation Information
Patent Citations
Service orchestration method and device, electronic equipment and storage medium
CN115379421A
Disaster recovery drilling method and platform, electronic equipment and readable storage medium
CN116166374A