Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the target resource determination methods of the present disclosure may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as a plurality of software or software modules, or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, for example, determining a plurality of candidate physical resources among inventory resources based on physical resource requirements of cloud products to be delivered, determining delivery information of the candidate physical resources based on differences between the candidate physical resources and the physical resource requirements, and determining target resources for delivering the cloud products among the plurality of candidate physical resources according to the delivery information.
It should be noted that, the server 105 may be hardware, or may be software. When the server 105 is hardware, it may be implemented as a distributed server cluster formed by a plurality of servers, or as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., to provide a targeted resource determination service), or as a single software or software module. The present invention is not particularly limited herein.
It should be noted that the target resource determining method provided by the embodiment of the present disclosure may be performed by the server 105, may be performed by the terminal devices 101, 102, 103, or may be performed by the server 105 and the terminal devices 101, 102, 103 in cooperation with each other. Accordingly, each part (for example, each unit, sub-unit, module, sub-module) included in the target resource determining apparatus may be provided in the server 105, may be provided in the terminal devices 101, 102, 103, or may be provided in the server 105 and the terminal devices 101, 102, 103, respectively.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Fig. 2 illustrates a flow 200 of an embodiment of a target resource determination method. The target resource determining method specifically comprises the following steps:
In step 201, a plurality of candidate physical resources are determined from the inventory resources based on the physical resource requirements of the cloud product to be delivered.
In this embodiment, the execution body (for example, the server 105 or the terminal devices 101, 102, 103 in fig. 1) may determine the physical resource requirement of the cloud product to be delivered according to the cloud product to be delivered and the corresponding relationship between the virtual resource required by the preset cloud product and the physical resource requirement.
The cloud product is a product based on a cloud computing technology, and a user can acquire required computing resources and services at any time through the Internet, and generally can comprise a cloud terminal service product, a computing cloud platform, an industry cloud platform, a social cloud platform, a storage cloud platform, a transaction cloud platform, a test cloud platform and the like.
Further, the execution body may directly determine all physical resources in the inventory resources as candidate physical resources, or may determine a plurality of candidate physical resources in the inventory resources according to the matching degree between the physical resource requirement and each physical resource in the inventory resources, which is not limited in the present application.
Here, the physical resource requirements may include a required location of the physical resource, a required configuration, a required lifetime, and the like.
The stock resources may be physical resources in a preset stock system, or may be physical resources maintained by a user, which is not limited in the present application.
Here, the types of physical resources may include, but are not limited to, servers and switches. The physical resources can comprise resource positions, resource configurations, resource availability periods and the like, the resource positions can be determined according to the positions of the machine rooms, the stock states and the like, the resource configurations can comprise configuration parameters of a CPU (Central processing Unit), a memory, a storage, a network card bandwidth and the like, and the resource availability periods are used for indicating time periods for which resources can be called.
Step 202, determining delivery information of the candidate physical resource based on the difference between the candidate physical resource and the physical resource demand.
In this embodiment, the execution body may determine the delivery information of the candidate physical resource according to the difference between the candidate physical resource and the physical resource requirement.
The delivery information may include a reconfiguration complexity that may be used to indicate a difficulty in adjusting the candidate physical resources to meet the physical resource requirements.
Here, the adaptation complexity may be determined based on whether the candidate physical resource needs to be adjusted to meet the physical resource requirement (i.e., add-on or subtract-on components), the number of components to be increased or decreased, the difficulty coefficient of the components to be increased or decreased, etc., and a preset evaluation rule.
The difficulty coefficient of increasing or decreasing the component may be determined based on the success rate, the consumed time, the cost (such as purchasing cost, labor cost, material cost, etc.) of the historical increasing or decreasing component, and the higher the success rate, the shorter the consumed time, the lower the consumed cost, the smaller the difficulty coefficient, the lower the success rate, the longer the consumed time, and the higher the consumed cost, the greater the difficulty coefficient.
Here, the adaptation complexity may be characterized by an adaptation complexity parameter, which may be positively correlated with the adaptation complexity, i.e. the higher the adaptation complexity, the larger the adaptation complexity parameter, the lower the adaptation complexity, and the smaller the adaptation complexity parameter.
The preset evaluation rule can be set according to experience and actual requirements.
Specifically, the execution body may set a preset evaluation rule that the modification complexity parameter of the enhancement component is greater than the modification complexity parameter of the subtraction component, and the modification complexity parameter of the subtraction component is greater than the modification complexity parameter without modification.
For the candidate physical resources which are the same as the matched components, the more the number of the matched components is, the larger the matched complexity parameter is, and for the candidate physical resources which are the same in number of the matched components, the higher the difficulty coefficient of the matched components is, the larger the matched complexity parameter is.
For the candidate physical resources which are the same as the reducing components, the more the number of the reducing components is, the larger the modifying complexity parameter is, and for the candidate physical resources which are the same in number of the reducing components, the higher the difficulty coefficient of the reducing components is, the larger the modifying complexity parameter is.
For example, for the candidate physical resource A and the candidate physical resource B, if the candidate physical resource A is adjusted to be matched with the component required by the physical resource, the number of the matched components is 2, the candidate physical resource B is adjusted to be matched with the component required by the physical resource, the number of the matched components is 4, the preset evaluation rule is that the number of the matched components is greater than 3, the matched complexity parameter is 3, the number of the matched components is less than or equal to 3, the matched complexity parameter is 1, the matched complexity parameter of the candidate physical resource A is 1, and the matched complexity parameter of the candidate physical resource B is 3.
And 203, determining a target resource from the plurality of candidate physical resources according to the delivery information.
In this embodiment, the execution body may sort the plurality of candidate physical resources in order from small to large according to the complexity of the allocation of the candidate physical resources, determine one or more candidate physical resources with the top order as the target resource, and recommend the target resource to the user.
According to the target resource determining method, the plurality of candidate physical resources are determined in the inventory resources based on the physical resource requirements of the cloud product to be delivered, the delivery information of the candidate physical resources is determined based on the difference between the candidate physical resources and the physical resource requirements, and the target resources for delivering the cloud product are determined in the plurality of candidate physical resources according to the delivery information, so that the problems that the inventory resources are distributed in various ways and the inventory is dispersed, and the delivery scheme of the cloud product cannot be determined quickly in the prior art are solved, reasonable and efficient matching of the resource requirements of the cloud product and the physical resources is achieved, and timeliness and effectiveness of cloud product demand resource delivery are improved.
In some alternative approaches, determining delivery information for the candidate physical resource based on the difference in demand for the candidate physical resource includes determining a change complexity, a delivery duration, and a delivery cost based on the difference in demand for the candidate physical resource and the physical resource.
In this implementation, the execution body may determine the delivery cost, the delivery duration, and the reconfiguration complexity of the candidate physical resource according to the difference between the candidate physical resource and the physical resource requirement.
The delivery cost is used for indicating the total cost required for adjusting the candidate physical resources to meet the physical resource requirements, and the delivery duration is used for indicating the total duration required for adjusting the candidate physical resources to meet the physical resource requirements.
Here, the physical resource requirement may include one or more of a requirement location and a requirement configuration, and the execution body may determine the delivery cost and the delivery duration according to one or more of a difference between the resource location of the candidate physical resource and the requirement location, and a difference between the resource configuration of the candidate physical resource and the requirement configuration.
According to the implementation method, the change complexity, the delivery time length and the delivery cost are determined based on the difference between the candidate physical resources and the physical resource requirements, and the target resources for delivering the cloud product are determined from the plurality of candidate physical resources according to the change complexity, the delivery time length and the delivery cost, so that the influence of the delivery time length and the delivery cost on the determination target resources is fully considered, and the accuracy and the reliability of the determined target resources are improved.
In some alternative modes, determining the target resource for delivering the cloud product in the plurality of candidate physical resources according to the delivery information comprises determining a delivery difficulty parameter of the candidate physical resources according to the delivery information of the candidate physical resources, and determining the target resource for delivering the cloud product in the plurality of candidate physical resources according to the delivery difficulty parameter.
In this implementation manner, the delivery information may include a modification complexity, a delivery duration, and a delivery cost, and the execution body may directly determine a delivery difficulty parameter of the candidate physical resource according to the modification complexity, the delivery duration, the delivery cost, and a preset evaluation rule, or may determine a delivery difficulty parameter of the candidate physical resource according to a first sub-delivery difficulty parameter corresponding to the modification complexity, a second sub-delivery difficulty parameter corresponding to the delivery duration, and a third sub-delivery difficulty parameter corresponding to the delivery cost.
The delivery difficulty parameter can be used for representing the delivery difficulty, and the delivery difficulty parameter is positively related to the delivery difficulty, namely, the larger the delivery difficulty parameter is, the larger the delivery difficulty is.
The execution body may determine the delivery difficulty parameter according to the first sub-delivery difficulty parameter, the second sub-delivery difficulty parameter, and the third sub-delivery difficulty parameter, or may determine the delivery difficulty parameter according to the first sub-delivery difficulty parameter, the first weight of the first sub-delivery difficulty parameter, the second weight of the second sub-delivery difficulty parameter, the third sub-delivery difficulty parameter, and the third weight of the third sub-delivery difficulty parameter.
Wherein the first sub-delivery difficulty parameter may be positively correlated with the reconfiguration complexity, the second sub-delivery difficulty parameter may be positively correlated with the delivery duration, and the third sub-delivery difficulty parameter may be positively correlated with the delivery cost.
Here, the first weight, the second weight, and the third weight may be determined based on a preset delivery policy, which may include cost priority, duration priority, reconfiguration complexity priority, and the like.
The presentation form of the delivery difficulty parameter may include various types, such as numerical scoring, grading, descriptive evaluation, comprehensive scoring, etc., which is not limited in the present application.
Further, the execution body may sort the plurality of candidate physical resources according to the delivery difficulty parameter, and determine the candidate physical resource with the smallest delivery difficulty parameter as the target resource for delivering the cloud product.
According to the method, the delivery difficulty parameters of the candidate physical resources are determined according to the delivery information of the candidate physical resources, and the target resources for delivering the cloud product are determined from the plurality of candidate physical resources according to the delivery difficulty parameters, so that the target resources are determined based on the delivery difficulty parameters, and the reliability of the determined target resources is improved.
In some alternative modes, determining the target resource for delivering the cloud product from the plurality of candidate physical resources according to the delivery difficulty parameter comprises the steps of sequencing the plurality of candidate physical resources according to the order of the delivery difficulty parameter from small to large, determining the candidate physical resource with the minimum delivery difficulty parameter as the target physical resource, updating the delivery difficulty parameter of the at least two target physical resources according to at least one of the inventory state, the delivery time and the delivery cost of the candidate physical resources in response to determining the number of the target physical resources as at least two, and determining the target resource for delivering the cloud product from the at least two target physical resources based on the updated delivery difficulty parameter.
In this implementation manner, the execution body may sort the plurality of candidate physical resources according to the order of the delivery difficulty parameters from small to large, determine the candidate physical resource with the smallest delivery difficulty parameter as the target physical resource, and if the number of the target physical resources is at least two, for example, 3, 4, or the like, that is, the delivery difficulty parameters of at least two target physical resources are the same, the execution body may update the delivery difficulty parameters of at least two target physical resources according to at least one information of the candidate physical resources, including an inventory state, a delivery duration, and a delivery cost.
Specifically, if the target physical resource is the candidate physical resource a and the candidate physical resource B, for example, the delivery difficulty parameter is 3 points, the execution body may further compare the inventory states of the candidate physical resource a and the candidate physical resource B, if the inventory state of the candidate physical resource a is the online inventory, the inventory state of the candidate physical resource B is the purchasing in-transit, and since the priority of the online inventory is higher than that of the purchasing in-transit, the execution body may update the delivery difficulty parameter of the candidate physical resource a to 2 points, update the delivery difficulty parameter of the candidate physical resource B to 4 points, and the updated delivery difficulty parameter of the candidate physical resource a is smaller than the delivery difficulty parameter of the candidate physical resource B according to the inventory state.
Further, the execution body may sort at least two target physical resources according to the updated delivery difficulty parameter, and determine the target physical resource with the smallest delivery difficulty parameter as the target resource for delivering the cloud product.
The implementation method comprises the steps of sequencing a plurality of candidate physical resources according to the order of delivery difficulty parameters from small to large, determining the candidate physical resource with the minimum delivery difficulty parameter as a target physical resource, updating the delivery difficulty parameters of the at least two target physical resources according to at least one of the inventory state, the delivery time and the delivery cost of the candidate physical resources in response to determining that the number of the target physical resources is at least two, and determining the target resource for delivering the cloud product from the at least two target physical resources based on the updated delivery difficulty parameters, so that the target resource is determined when the candidate physical resources with the same delivery difficulty parameters exist.
In some alternative modes, updating the delivery difficulty parameters of the at least two target physical resources according to at least one of the inventory status, the delivery time length and the delivery cost of the candidate physical resources comprises the steps of judging whether the inventory status of the at least two target physical resources is the same or not in response to the fact that the delivery time length of the at least two target physical resources is the same, judging whether the delivery cost of the at least two target physical resources is the same in response to the fact that the inventory status of the at least two target physical resources is the same, and updating the delivery difficulty parameters of the at least two target physical resources based on the delivery cost in response to the fact that the delivery cost of the at least two target physical resources is different.
In this implementation manner, the execution body may sort the plurality of candidate physical resources according to the delivery difficulty parameter, determine the candidate physical resource with the smallest delivery difficulty parameter as the target physical resource, if the number of the target physical resources is at least two, for example, 3, 4, or the like, that is, the delivery difficulty parameter of at least two target physical resources is the same, first determine whether the delivery duration of the at least two target physical resources is the same, if yes, further determine whether the inventory status of the at least two target physical resources is the same, if yes, further determine whether the delivery cost of the at least two target physical resources is the same, and if no, update the delivery difficulty parameter of the at least two target physical resources according to the delivery cost.
The execution body may also determine whether product lines corresponding to the at least two target physical resources are the same as product lines corresponding to the physical resource requirements before determining whether the delivery durations of the at least two target physical resources are the same, if not, update the delivery difficulty parameters of the at least two target physical resources directly according to the product lines corresponding to the target physical resources (preferably, use the same target physical resources as the product lines corresponding to the physical resource requirements), and if yes, further determine whether the delivery durations of the at least two target physical resources are the same.
In addition, before judging whether the delivery costs of at least two target physical resources are the same, the execution body may also first judge whether the product packages corresponding to the at least two target physical resources are the same as the product packages corresponding to the physical resource requirements, if not, directly update the delivery difficulty parameters of the at least two target physical resources according to the product packages corresponding to the target physical resources (preferably, use the same target physical resources as the product packages corresponding to the physical resource requirements), and if so, further judge whether the delivery costs of the at least two target physical resources are the same.
The implementation method comprises the steps of judging whether inventory states of at least two target physical resources are the same or not in response to determining that delivery time lengths of the at least two target physical resources are the same, judging whether delivery costs of the at least two target physical resources are the same in response to determining that the inventory states of the at least two target physical resources are the same, updating delivery difficulty parameters of the at least two target physical resources based on the delivery costs in response to determining that the delivery costs of the at least two target physical resources are different, determining the target resources based on the updated delivery difficulty parameters, and improving effectiveness of the determined target resources.
In some alternative modes, the method comprises the steps of updating the delivery difficulty parameters of at least two target physical resources according to at least one of inventory states, delivery time lengths and delivery costs of candidate physical resources, and further comprises the steps of updating the delivery difficulty parameters of at least two target physical resources based on the delivery time lengths in response to determining that the delivery time lengths of the at least two target physical resources are different, and updating the delivery difficulty parameters of the at least two target physical resources based on the inventory states in response to determining that the inventory states of the at least two target physical resources are different.
In this implementation manner, the execution body may sort the plurality of candidate physical resources according to the delivery difficulty parameter, determine the candidate physical resource with the smallest delivery difficulty parameter as the target physical resource, if the number of the target physical resources is at least two, for example, 3, 4, or the like, that is, the delivery difficulty parameter of at least two target physical resources is the same, determine whether the delivery durations of the at least two target physical resources are the same, and if not, update the delivery difficulty parameter of the at least two target physical resources according to the delivery durations of the candidate physical resources.
If yes, the executing body can judge whether the stock states of the at least two target physical resources are the same, and if not, the delivering difficulty parameters of the at least two target physical resources can be updated according to the stock states of the candidate physical resources.
The implementation method updates the delivery difficulty parameters of at least two target physical resources based on the delivery time length in response to determining that the delivery time lengths of the at least two target physical resources are different, updates the delivery difficulty parameters of the at least two target physical resources based on the inventory status in response to determining that the inventory status of the at least two target physical resources is different, and determines the target resources based on the updated delivery difficulty parameters, thereby improving the effectiveness of the determined target resources.
In some alternative modes, determining a plurality of candidate physical resources in the inventory resources based on physical resource requirements of cloud products to be delivered comprises determining a plurality of initial physical resources in the inventory resources based on matching degree of each physical resource in the inventory resources and the physical resource requirements, and screening out the specified physical resources in the plurality of initial physical resources to obtain the plurality of candidate physical resources in response to determining that the specified physical resources exist in the initial physical resources.
In this implementation, the execution body may calculate a matching degree between each physical resource in the inventory resources and the physical resource requirement, and determine the physical resource whose matching degree meets a preset condition (for example, the matching degree is greater than or equal to a preset matching degree threshold value) as the initial physical resource.
Specifically, the physical resource requirement includes a requirement location a, the requirement is configured to 256G memory and 5t storage, the execution body may calculate a matching degree between the physical resource requirement and the physical resource in the inventory resource according to one or more of the resource location or the resource configuration, and determine a plurality of initial physical resources according to a matching result.
Further, the execution body may determine whether the specified physical resource exists in the initial physical resources, and if so, may screen out the specified physical resource from the plurality of initial physical resources to obtain a plurality of candidate physical resources.
Wherein, the specified physical resource includes a physical resource that has a difference from the physical resource requirement and cannot realize the reconfiguration, for example, the difference from the physical resource requirement includes a CPU difference, a GPU for the configuration is reduced, etc., the model reconfiguration evaluation is failed (i.e., the reconfiguration is prohibited), etc.
According to the implementation method, the plurality of initial physical resources are determined in the inventory resources based on the matching degree of each physical resource in the inventory resources and the physical resource requirements, and the designated physical resources are screened out from the plurality of initial physical resources in response to the fact that the designated physical resources exist in the initial physical resources, so that the plurality of candidate physical resources are obtained, and the reliability of the determined candidate physical resources is improved.
In some alternatives, the method further includes determining physical resource requirements of the cloud product to be delivered based on the delivery request information.
In the implementation mode, the execution body can acquire the delivery request information submitted by the user in a wired or wireless mode, and the delivery request information can comprise one of cloud product selling specifications, cloud product deployment labels, server labels and physical machine configuration.
The cloud product vending specification is used for determining cloud product deployment tags, the cloud product deployment tags are used for determining server tags, the server tags are used for determining physical machine configuration, and the physical machine configuration is used for determining physical resource requirements of cloud products to be delivered.
Here, the cloud product vending specification is used for indicating specification information of vending of the cloud product, the cloud product deployment tag is used for indicating different products deployed to different product lines, the server tag is used for indicating a service configuration set of a specified type, and the physical machine configuration is used for indicating physical resource requirements.
Specifically, if the delivery request information submitted by the user includes a cloud product vending specification, the execution body may determine a cloud product deployment tag according to the cloud product vending specification, determine a server tag according to the cloud product deployment tag, determine a physical machine configuration according to the server tag, and determine a physical resource requirement of the cloud product to be delivered according to the physical machine configuration.
If the delivery information submitted by the user comprises a cloud product deployment tag, the execution body can determine a server tag according to the cloud product deployment tag, determine physical machine configuration according to the server tag, and determine physical resource requirements of the cloud product to be delivered according to the physical machine configuration.
If the delivery information submitted by the user includes a server tag, the execution body may determine a physical machine configuration according to the server tag, and determine a physical resource requirement of the cloud product to be delivered according to the physical machine configuration.
The implementation may adapt to multiple types of delivery request information by determining physical resource requirements of the cloud product to be delivered based on the delivery request information.
With further reference to FIG. 3a, a flow 300 of yet another embodiment of the target resource determination method shown in FIG. 2 is shown. In this embodiment, the process 300 of the target resource determination method may include the following steps:
Step 301, determining a plurality of candidate physical resources in the inventory resources based on the physical resource requirements of the cloud product to be delivered.
In this embodiment, the implementation details and technical effects of step 301 may refer to the description of step 201, which is not described herein.
Step 302, determining a delivery cost and a delivery duration based on the difference between the resource location and the demand location, and the difference between the resource configuration and the demand configuration of the candidate physical resource.
In this embodiment, the physical resource requirement may include a requirement location and a requirement configuration, and for each candidate physical resource in the plurality of candidate physical resources, the execution body may determine, according to a difference between the resource configuration and the requirement configuration of the candidate physical resource, a path (i.e., a step or a link) required to adjust the candidate physical resource to meet the requirement configuration, and a cost and a duration required for each path, and determine, according to the cost and the duration required for each path, a first delivery cost and a first delivery duration.
Here, the execution body may determine the sum of the costs required for each path in the configuration adjustment process as the first delivery cost, and the sum of the time periods required for each path as the first delivery time period.
The difference between the resource configuration and the demand configuration, i.e. the configuration difference, may include a component difference, an account difference, a capacity expansion difference, and the like. The component differences may in turn include add-on components, subtract-on components, component parameter differences, memory differences, etc.
For each candidate physical resource in the plurality of candidate physical resources, the execution body may determine a path (i.e., step or link) required to adjust the candidate physical resource to meet the demand location according to a difference between a resource location and the demand location of the candidate physical resource, and a cost and a duration required for each path, and determine a second delivery cost and a second delivery duration according to the cost and the duration required for each path.
Here, the execution body may determine the sum of the costs required for each path in the position adjustment process as the second delivery cost, and the sum of the time periods required for each path as the second delivery time period.
Further, the execution body may determine the delivery cost from the first delivery cost and the second delivery cost, and determine the delivery duration from the first delivery duration and the second delivery duration.
The demand location may include a target machine room location, and the resource location may be determined according to a current machine room location or an inventory status of the candidate physical resource.
Specifically, if the target machine room position is not matched with the current machine room position of the candidate physical resource, the path of the candidate physical resource adjusted to the position meeting the requirement is moved, and the time length and cost required by the path can be further determined according to whether the current machine room position and the target machine room position are in the same city, in the same region, across the country or the like. For example, if the current machine room position and the target machine room position are in the same city, the cost is 400 yuan and the time period is 1 day, if the current machine room position and the target machine room position are in the same region and different cities, the cost is 400 yuan and the time period is 4 days, if the current machine room position and the target machine room position are in the cross region, the cost is 400 yuan and the time period is 10 days, and if the current machine room position and the target machine room position are in the cross country, the cost is 1500 yuan and the time period is 21 days.
Here, the execution body may further determine a difference between the resource location and the demand location of the candidate physical resource according to the stock state of the candidate physical resource.
The inventory status may include, among other things, a variety of online inventory, procurement on-the-way, VMI (Vendor Managed Inventory ), and the like.
Specifically, as shown in fig. 3b, if the stock state is online stock, that is, the current machine room position of the candidate physical resource matches the target machine room position, but is in an occupied state (unused or low-usage), the path for adjusting the candidate physical resource to the position meeting the demand is offline, that is, the candidate physical resource is released from the occupied state to meet the physical resource demand, and the time and cost required for the path can be determined empirically, for example, the time is 1 day, and the cost is 0.
If the stock state is the purchasing in-transit and the target machine room position is matched with the target machine room position, the candidate physical resource is adjusted to a path meeting the position requirement as the purchasing in-transit, the time required by the path can be a target difference value, namely, the difference value between the expected delivery time and the time for acquiring the physical resource requirement (namely, the time for searching the target resource is started, namely, the matched running time), and the cost can be 0.
If the stock state is the purchasing in-transit, the destination machine room position is not matched with the target machine room position, and the target difference is greater than or equal to the preset duration, for example, 14 days, then the path for adjusting the candidate physical resource to meet the position requirement is determined to be the purchasing in-transit machine room, the destination machine room position is modified to be the target machine room position, wherein the duration and the cost required by the path for purchasing the in-transit machine room can be determined empirically.
If the stock state is in the purchasing process, the position of the target machine room is not matched with the position of the target machine room, the target difference is smaller than a preset time length, for example, 14 days, and the machine room is VMI, it can be determined that the path for adjusting the candidate physical resource to meet the position requirement is in the purchasing process and the VMI is to pick up goods, wherein for the path VMI to pick up goods, the time length and the cost required by the path can be determined empirically.
If the stock state is purchasing in the way, the position of the target machine room is not matched with the position of the target machine room, the target difference is smaller than the preset time length, for example, 14 days, and the machine room is not VMI, the path for adjusting the candidate physical resource to meet the position requirement can be determined to be purchasing in the way and moving.
If the stock state is VMI, the path for adjusting the candidate physical resource to meet the position requirement is VMI pickup, the time length and cost corresponding to the VMI pickup can be determined according to the current machine room position and the target machine room position, and if the two positions are different, the path relocation can be further increased.
Step 303, determining the reconfiguration complexity based on the difference between the resource configuration and the demand configuration of the candidate physical resources.
In this embodiment, the execution body may determine, according to the difference between the resource configuration and the demand configuration, a configuration complexity of adjusting the candidate physical resource to meet the demand configuration.
The difference between the resource configuration and the demand configuration, i.e. the configuration difference, may include a component difference.
Specifically, the execution body may determine whether the component difference is a no-change or pure-change component (i.e., only includes a no-change component), if so, may determine that the change complexity is the first complexity, if not, may further determine whether the component difference exists and the model change evaluation result is that no accessory is required (i.e., although the resource configuration of the candidate physical resource and the demand configuration are different, the demand configuration can be satisfied without changing the component through evaluation, i.e., the demand configuration can be satisfied without changing the hardware), if so, may determine that the change complexity is the second complexity, and if not, may determine that the change complexity is the third complexity.
Wherein the complexity of the first, second and third complexity indications increases in sequence.
And 304, determining target resources for delivering the cloud product from the plurality of candidate physical resources according to the delivery information.
In this embodiment, the implementation details and technical effects of step 304 may refer to the description of step 203, which is not described herein.
According to the embodiment of the cloud product delivery method, the target resource for delivering the cloud product is determined in the plurality of candidate physical resources according to the delivery information, the fact that the delivery information is determined by utilizing the difference between the resource position and the demand position of the candidate physical resources and the difference between the resource configuration and the demand configuration of the candidate physical resources is achieved, and the timeliness and effectiveness of cloud product demand resource delivery are further improved.
In some alternatives, the difference in resource configuration and demand configuration of the candidate physical resource includes at least one of a component difference, an account difference, a capacity expansion difference, and a pricing difference.
In this implementation, the execution body may determine, according to the difference between the resource configuration and the demand configuration of the candidate physical resources, a path (i.e., a step or a link) required to adjust the selected physical resources to meet the demand configuration, and a cost and a duration required for each path, and determine, according to the cost and the duration required for each path, a first delivery cost and a first delivery duration.
The difference between the resource configuration and the demand configuration of the candidate physical resource, namely, the configuration difference, can comprise at least one of a component difference, an account difference, a capacity expansion difference and a pricing difference.
Here, the part difference may include various scenes, for example, an allocation scene of the add-on part, a purchase scene of the add-on part, a memory scene of the add-on part, and the like.
Specifically, as shown in fig. 3c, if the configuration difference includes a component difference, for a deployment scenario of the add-on component, it may first determine whether the inventory total of the current machine room where the candidate physical resource is located is sufficient, if not, further determine whether the inventory total of other machine rooms and the current machine room is sufficient, if yes, determine that a path for adjusting the candidate physical resource to meet the requirement configuration is component deployment, where the duration and cost required for the path may be determined according to the distance between the current machine room and other machine rooms and the average value of the historical durations and the average value of the costs of the same distance, for example, the duration is 1 day, the cost is 20 yuan, and so on. If not, the candidate physical resources are adjusted to the paths meeting the requirement configuration to be purchased for the components, and the time length and the cost required by the paths can be determined according to the time length average value and the cost average value of the historical same-component purchase, for example, the time length is 3 days, and the cost is 200 yuan.
For the purchase scene of the add-on components, whether the model evaluation (namely, model reconfiguration evaluation) has a multiplexing scheme (namely, the candidate physical resource has a history add-on component scheme) can be judged first, if yes, whether the component is added on is judged directly, and if yes, a path for adjusting the candidate physical resource to meet the requirement configuration can be determined to be the component purchase.
For the memory scene of the add-on component, whether the add-on component comprises a memory can be firstly judged, if so, a path for adjusting the candidate physical resources to meet the demand configuration can be determined as the change, and the change duration and cost can be determined according to the history including the change time length average value and the cost average value of the memory. If the memory is not included, a path for adjusting the candidate physical resources to meet the requirement configuration can be determined to be changed, and the change duration and cost can be determined according to a history including a time-length average value and a cost average value of the memory.
If the configuration difference includes account difference, for example, the resource account where the candidate physical resource is located is different from the resource account where the node and the physical resource demand are different from the node, it may be determined that the path for adjusting the candidate physical resource to meet the demand configuration is the purchasing or transferring authority, and the duration and the cost may be determined according to the duration average and the cost average of the historical purchasing or transferring authority.
If the configuration differences include pricing differences, e.g., physical resource requirements correspond to a specified package and candidate physical resources do not, physical resource requirements correspond to EPC (Engineering, procurement, and Construction, total project contractual mode) pricing, and candidate physical resources do not wait, then it may be determined that candidate physical resources are adjusted to meet the demand configuration path for EPC pricing, and the length and cost may be determined based on the length average and cost average of historical EPC pricing.
If the configuration difference includes a capacity expansion difference, if the physical resource requirement includes a capacity expansion requirement, and the candidate physical resource does not have a capacity expansion function, it may be determined that a path for adjusting the candidate physical resource to meet the requirement configuration is capacity expansion, and a capacity expansion duration may be determined according to whether a history capacity expansion matching tag can be obtained, where the capacity expansion duration of the history capacity expansion matching tag is generally smaller than the capacity expansion duration of a history capacity expansion matching tag that cannot be obtained.
In addition, the configuration difference may further include a model change evaluation difference, that is, there is a part difference, and there is no history record for the solution of changing the part, so that the path model evaluation needs to be added when the candidate physical resource is adjusted to meet the requirement configuration, and the duration and cost of model evaluation may be determined based on the average value of the duration and cost required by the history and change of the solution.
The difference between the resource configuration and the demand configuration of the candidate physical resource comprises a component difference, an account difference, an expansion difference, a pricing difference and a model change evaluation difference, wherein the execution main body can calculate the sum of the time lengths of paths corresponding to the differences to obtain a first delivery time length, and calculate the sum of the costs of paths corresponding to the differences to obtain a first delivery cost.
The implementation method improves the accuracy and reliability of the determined delivery information by setting the difference between the resource configuration and the demand configuration of the candidate physical resource, wherein the difference comprises at least one of a component difference, an account difference, a capacity expansion difference and a pricing difference.
With continued reference to fig. 4, fig. 4 is a schematic diagram of an application scenario of the target resource determination method according to the present embodiment.
In response to obtaining the delivery request information submitted by the user, for example, the cloud product vending specification, the execution body 401 may determine, according to the cloud product vending specification, a physical resource requirement 402 of the cloud product to be delivered, and determine, according to the physical resource requirement, a plurality of candidate physical resources 404, for example, 2 candidate physical resources, which are candidate physical resource a and candidate physical resource B, respectively, in the inventory resources 403. The physical resource requirement may include a requirement position and a requirement configuration, and the execution body may determine a delivery cost and a delivery duration according to a difference between a resource position and the requirement position of the candidate physical resource and a difference between a resource configuration and the requirement configuration of the candidate physical resource, and determine a complexity of the modification according to the difference between the resource configuration and the requirement configuration of the candidate physical resource (for example, the delivery duration of the candidate physical resource a is 5 days, the delivery cost is 0, the complexity of the modification is a first complexity, the delivery duration of the candidate physical resource a is 8 days, the delivery cost is 600, and the complexity of the modification is a second complexity).
Further, the delivery difficulty parameter 406 is determined according to the delivery information 405, that is, the delivery cost, the delivery duration, the reconfiguration complexity, and the preset evaluation rule, where the delivery difficulty parameter may be represented by a numerical score, and the smaller the delivery difficulty parameter, the higher the score.
The preset evaluation rule can be set according to actual demands, for example, a duration rule, a delivery time length is less than or equal to 7 days, a delivery difficulty parameter is 3 minutes, a delivery time length is more than 7 days and less than or equal to 14 days, a delivery difficulty parameter is 2 minutes, a delivery time length is more than 14 days, a delivery difficulty parameter is 1 minute, a cost rule, a delivery cost is 0, a delivery difficulty parameter is 3 minutes, a delivery cost is more than 0 and less than or equal to 500, a delivery difficulty parameter is 2 minutes, a delivery cost is more than 500, a delivery difficulty parameter is 1 minute, a configuration complexity rule, a first complexity, a delivery difficulty parameter is 3 minutes, a second complexity, a delivery difficulty parameter is 2 minutes, a third complexity, and a delivery difficulty parameter is 1 minute.
Further, the execution body may sort the candidate physical resource a (9 points) and the candidate physical resource B (6 points) according to the sum of the delivery difficulty parameters corresponding to the delivery duration, the delivery cost and the reconfiguration complexity, and determine the candidate physical resource with the highest score, that is, the candidate physical resource a, as the target resource 407 for delivering the cloud product.
With further reference to fig. 5, as an implementation of the method illustrated in the above figures, the present disclosure provides an embodiment of a target resource determination device, which corresponds to the method embodiment illustrated in fig. 2.
As shown in fig. 5, the target resource determining apparatus 500 of the present embodiment includes a first determining module 501, a second determining module 502, and a resource delivering module 503.
Wherein the first determining module 501 may be configured to determine a plurality of candidate physical resources among the inventory resources based on physical resource requirements of the cloud product to be delivered.
The second determination module 502 may be configured to determine delivery information for the candidate physical resource based on a difference in the candidate physical resource and the physical resource demand.
The resource delivery module 503 may be configured to determine a target resource for delivering the cloud product from among a plurality of candidate physical resources according to the delivery information.
In some alternatives of this embodiment, the second determination module is further configured to determine the complexity of the reconfiguration, the length of delivery, and the cost of delivery of the candidate physical resource based on the difference in the candidate physical resource and the physical resource demand.
In some alternative forms of this embodiment, the second determination module further includes a location determination unit configured to determine the delivery cost and the delivery duration based on a difference between the resource location of the candidate physical resource and the demand location, and a difference between the resource configuration of the candidate physical resource and the demand configuration, and a configuration determination unit configured to determine the reconfiguration complexity based on the difference between the resource configuration of the candidate physical resource and the demand configuration.
In some alternatives of this embodiment, the difference in resource configuration and demand configuration of the candidate physical resource includes at least one of a component difference, an account difference, a capacity expansion difference, and a pricing difference.
In some optional modes of the embodiment, the resource delivery module further comprises a difficulty determining unit configured to determine a delivery difficulty parameter of the candidate physical resource according to delivery information of the candidate physical resource, and a resource delivery unit configured to determine a target resource for delivering the cloud product from the plurality of candidate physical resources according to the delivery difficulty parameter.
In some alternatives of this embodiment, the resource delivery unit is further configured to:
The method comprises the steps of sorting a plurality of candidate physical resources according to the order of small delivery difficulty parameters, determining the candidate physical resource with the smallest delivery difficulty parameter as a target physical resource, updating the delivery difficulty parameters of the at least two target physical resources according to at least one of the inventory state, the delivery duration and the delivery cost of the candidate physical resources in response to determining that the number of the target physical resources is at least two, and determining the target resource for delivering the cloud product in the at least two target physical resources based on the updated delivery difficulty parameters.
In some alternative manners of this embodiment, the resource delivery unit is further configured to determine whether inventory states of the at least two target physical resources are the same in response to determining that delivery durations of the at least two target physical resources are the same, determine whether delivery costs of the at least two target physical resources are the same in response to determining that inventory states of the at least two target physical resources are the same, and update delivery difficulty parameters of the at least two target physical resources based on the delivery costs in response to determining that the delivery costs of the at least two target physical resources are different.
In some alternative implementations of this embodiment, the resource delivery unit is further configured to update the delivery difficulty parameter of the at least two target physical resources based on the delivery time duration in response to determining that the delivery time durations of the at least two target physical resources are different, and update the delivery difficulty parameter of the at least two target physical resources based on the inventory status in response to determining that the inventory status of the at least two target physical resources are different.
In some optional manners of this embodiment, the first determining module further includes a resource matching unit configured to determine a plurality of initial physical resources in the inventory resources based on a matching degree of each physical resource in the inventory resources with the physical resource requirement, and a resource screening unit configured to screen the specified physical resources out of the plurality of initial physical resources to obtain a plurality of candidate physical resources in response to determining that the specified physical resources exist in the initial physical resources.
In some optional ways of this embodiment, the apparatus further comprises a third determining module configured to determine physical resource requirements of the cloud product to be delivered based on the delivery request information.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the related user personal information all conform to the regulations of related laws and regulations, and the public sequence is not violated.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.
Fig. 6 illustrates a schematic block diagram of an example electronic device 600 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 6, the apparatus 600 includes a computing unit 601 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM) 602 or a computer program loaded from a storage unit 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the device 600 may also be stored. The computing unit 601, ROM 602, and RAM 603 are connected to each other by a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Various components in the device 600 are connected to the I/O interface 605, including an input unit 606, e.g., keyboard, mouse, etc., an output unit 607, e.g., various types of displays, speakers, etc., a storage unit 608, e.g., magnetic disk, optical disk, etc., and a communication unit 609, e.g., network card, modem, wireless communication transceiver, etc. The communication unit 609 allows the device 600 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The computing unit 601 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 601 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 601 performs the various methods and processes described above, such as methods for target resource determination. For example, in some embodiments, the method for target resource determination may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as storage unit 608. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 600 via the ROM 602 and/or the communication unit 609. When the computer program is loaded into RAM 603 and executed by the computing unit 601, one or more steps of the method for target resource determination described above may be performed. Alternatively, in other embodiments, the computing unit 601 may be configured to perform the method for target resource determination by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be a special or general purpose programmable processor, operable to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback), and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a Local Area Network (LAN), a Wide Area Network (WAN), and the Internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of large management difficulty and weak service expansibility in the traditional physical host and Virtual Private Server (VPS) PRIVATE SERVER service. Servers may also be divided into servers of a distributed system or servers that incorporate blockchains.
According to the technical scheme of the embodiment of the disclosure, reasonable and efficient matching of the resource demand of the cloud product and the physical resource is realized, and timeliness and effectiveness of cloud product demand resource delivery are improved.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions provided by the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.