Software product storage method and device, equipment, storage medium and program product

By obtaining the target service information in the query request, matching the storage strategy and determining the target product library, the problem that storage in the prior art does not meet user expectations is solved, and efficient distributed storage of software products in complex business scenarios is achieved.

CN119094525AActive Publication Date: 2024-12-06CHINA CONSTRUCTION BANK +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411102391.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-12-06
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

The prior art cannot meet the personalized storage needs of software products in real and complex business scenarios, and cannot perform storage allocation in a refined manner based on business information, resulting in storage not meeting user expectations.

Method used

By obtaining the target business information in the query request, matching the preset storage strategy, and determining the target product library based on the matching strategy, achieving refined storage matching at the business information level, ensuring that the products are stored in a library that meets the target business needs.

Benefits of technology

It effectively meets the distributed storage needs of software products in real and complex business scenarios, improves storage service processing efficiency, and ensures that products are stored in libraries that meet target business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119094525A_ABST
    Figure CN119094525A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a software product storage method and device, equipment, a storage medium and a program product, and relates to the field of cloud computing. The method comprises the steps of obtaining a query request; determining a target storage strategy from a plurality of preset storage strategies according to target business information of the to-be-stored product carried in the query request; wherein the target business information comprises an environment type for producing the to-be-stored product and a corresponding environment parameter value, the environment type comprises at least one of a tenant, a machine room and a physical subsystem, and the environment parameter value comprises at least one of a production place, a production organization identifier and a physical subsystem identifier; the storage strategy is used for storing a mapping relationship between the service information and the product library identifier; determining a target product library according to a product library identifier contained in the target storage strategy; and storing the to-be-stored product in the target product library. The method is used for achieving the technical effect of meeting the software product storage requirement in a real complex business scene.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of cloud computing, and in particular to a software product storage method, device, equipment, storage medium and program product. Background Art

[0002] With the development of big data, in order to improve the efficiency of data storage, data is usually stored in a distributed manner. Similarly, the storage of the artifact library corresponding to software development can also be implemented based on a distributed approach. In distributed storage, the configuration and performance of each storage node are mostly inconsistent. Users expect to be able to perform targeted storage based on the characteristics of the storage node and the characteristics of the artifact data, thereby maximizing the efficiency of data storage, and dynamically update the storage node corresponding to the artifact data when the business corresponding to the artifact changes.

[0003] In the prior art, the load data of each storage node is obtained and the final storage node is selected based on the principle of load balancing, or the product data corresponding to different businesses are stored in the storage nodes corresponding to different businesses based on business classification.

[0004] However, existing technologies cannot meet the needs of real and complex business scenarios. Summary of the invention

[0005] The present application provides a software product storage method, device, equipment, storage medium and program product to solve the technical problem that the existing technology cannot meet the needs of real and complex business scenarios.

[0006] In a first aspect, an embodiment of the present application provides a method for storing a software product, including:

[0007] Obtaining a query request, where the query request is used to determine a target product library for storing products to be stored;

[0008] According to the target business information of the product to be stored carried in the query request, a target storage strategy is determined from a plurality of pre-set storage strategies; wherein the target business information includes the environment type for producing the product to be stored and the corresponding environment parameter value, the environment type includes at least one of a tenant, a computer room, and a physical subsystem, the environment parameter value includes at least one of a production location, a production organization identifier, and a physical subsystem identifier, and the storage strategy is used to store the mapping relationship between the business information and the product library identifier;

[0009] Determine the target artifact library according to the artifact library identifier included in the target storage strategy;

[0010] Store the products to be stored in the target product library.

[0011] In a possible design, according to the target business information of the product to be stored carried in the query request, a target storage strategy is determined from a plurality of pre-set storage strategies, including:

[0012] The storage policy with the same business information as the target business information is determined as the target storage policy.

[0013] In a possible design, a storage policy that has the same business information as the target business information is determined as the target storage policy, including:

[0014] Determine the storage strategy that is the same as the target business information as the initial storage strategy;

[0015] If there are multiple initial storage policies, the initial storage policy with the highest priority is determined as the target storage policy;

[0016] If the number of initial storage policies is one, the initial storage policy is determined as the target storage policy.

[0017] In a possible design, the target artifact library is determined according to the artifact library identifier included in the target storage policy, including:

[0018] According to the product library identifier included in the target storage policy, determine the initial product library corresponding to the product library identifier;

[0019] If the number of the initial product library is one, the initial product library is determined as the target product library;

[0020] If there are multiple initial product libraries, a target product library is determined from the multiple initial product libraries according to a weight pre-assigned to each initial product library.

[0021] In a possible design, before obtaining the query request, the method further includes:

[0022] According to the preset storage requirements and the storage performance of each artifact library, in each storage policy, a weight is configured for each artifact library corresponding to the storage policy.

[0023] In a possible design, after storing the product to be stored in the target product library, the method further includes:

[0024] Reduce the weight of the target artifact repository in the target storage policy.

[0025] In a possible design, after storing the product to be stored in the target product library, the method further includes:

[0026] Update the weights of all artifact repositories in the target storage policy.

[0027] In a second aspect, an embodiment of the present application provides a software product storage device, including:

[0028] An acquisition module, used to acquire a query request, where the query request is used to determine a target product library storing the product to be stored;

[0029] The first processing module is used to determine a target storage strategy from a plurality of pre-set storage strategies according to the target business information of the product to be stored carried in the query request; wherein the target business information includes the environment type for producing the product to be stored and the corresponding environment parameter value, the environment type includes at least one of a tenant, a computer room, and a physical subsystem, the environment parameter value includes at least one of a production location, a production organization identifier, and a physical subsystem identifier, and the storage strategy is used to store the mapping relationship between the business information and the product library identifier;

[0030] The second processing module is used to determine the target product library according to the product library identifier included in the target storage policy;

[0031] The third processing module is used to store the products to be stored in the target product library.

[0032] In a possible implementation, the first processing module is used to determine the target storage policy from the storage policy based on the target business information, specifically:

[0033] The storage policy with the same business information as the target business information is determined as the target storage policy.

[0034] In a possible implementation manner, the first processing module is used to determine the target service policy by matching the target service information with the storage policy service information, specifically:

[0035] Determine the storage strategy that is the same as the target business information as the initial storage strategy;

[0036] If there are multiple initial storage policies, the initial storage policy with the highest priority is determined as the target storage policy;

[0037] If the number of initial storage policies is one, the initial storage policy is determined as the target storage policy.

[0038] In a possible implementation manner, the second processing module is further used to determine the target product library according to the product library identifier, specifically:

[0039] According to the product library identifier included in the target storage policy, determine the initial product library corresponding to the product library identifier;

[0040] If the number of initial product libraries is one, the initial product library is determined as the target product library; if the number of initial product libraries is multiple, the target product library is determined from the multiple initial product libraries according to the weights pre-assigned to each initial product library.

[0041] In a possible implementation, the acquisition module is further used to configure a weight for each product library, specifically:

[0042] According to the preset storage requirements and the storage performance of each artifact library, in each storage policy, a weight is configured for each artifact library corresponding to the storage policy.

[0043] In a possible implementation, the third processing module is further configured to reduce the weight of the target artifact library after the software artifact is stored, specifically:

[0044] Reduce the weight of the target artifact repository in the target storage policy.

[0045] In a possible implementation manner, the third processing module is further configured to:

[0046] Update the weights of all artifact repositories in the target storage policy.

[0047] In a third aspect, an embodiment of the present application provides a software product storage device, comprising: at least one processor and a memory; the memory stores computer execution instructions; at least one processor executes the computer execution instructions stored in the memory, so that at least one processor executes the software product storage method as described in the first aspect above and various possible designs of the first aspect.

[0048] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the software product storage method as described in the first aspect and various possible designs of the first aspect is implemented.

[0049] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program. When the computer program is executed by a processor, it implements the software product storage method as described in the first aspect and various possible designs of the first aspect.

[0050] The software product storage method, device, equipment, storage medium and program product provided by the embodiment of the present application, in which the query request corresponding to the product to be stored is obtained, and the target business information corresponding to the product to be stored is obtained based on the query request; the target business information is matched with the business information in the pre-set multiple storage policies, and the target storage policy that conforms to the target business information is obtained; the target product library that can be used for the product to be stored is determined based on the product library identifier contained in the target storage policy, and the product to be stored is stored based on the target product library. In this technical solution, the target product library is determined by matching the target business information with multiple storage policies, and at the same time, the storage method based on the target business information is refined at the business information level to ensure that the product can be stored in the product library that meets the target business requirements; the storage of the product is realized by the target business information hitting the storage policy, which avoids the situation where the business requirements are not considered in the balanced storage, and at the same time avoids the situation where the complex business scenarios are not considered in the classified storage, thereby achieving the effect of improving the efficiency of storage business processing, and effectively meeting the distributed storage requirements of real complex business scenarios for software storage. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0052] Figure 1 Schematic diagram of the software product storage method provided in this application Figure 1 ;

[0053] Figure 2 Schematic diagram of the software product storage method provided in this application Figure 2 ;

[0054] Figure 3 A flowchart of a software product storage strategy routing method provided by this application;

[0055] Figure 4 A flowchart of a polling method for storing software products provided by the present application;

[0056] Figure 5 A schematic diagram of the structure of the software product storage device provided by this application;

[0057] Figure 6 This is a hardware structure diagram of the software product storage device provided in this application.

[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0060] In the technical solution of this application, the collection, storage, use, processing, transmission, provision and disclosure of information such as financial data or user data involved shall comply with the provisions of relevant laws and regulations and shall not violate public order and good morals.

[0061] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.

[0062] Terminology explanation:

[0063] Software product: refers to any product or result produced through the software development process.

[0064] In the prior art, the load data of each storage node is obtained and the final storage node is selected based on the principle of load balancing, or the product data corresponding to different businesses are stored in the storage nodes corresponding to different businesses based on business classification.

[0065] However, in real and complex business scenarios, users' storage requirements for software products are not only load balancing storage or classified storage, but also some personalized requirements. For example, an organization may want to store software products in different product libraries according to different projects or teams. For example, the products of development team A are stored in library A, while the products of development team B are stored in library B. This can help teams better manage and control their own products, and also facilitate permission management and access control. For another example, for multinational companies, users may want to determine the repository for storing the software products of a branch based on the geographical location of the company's branch, so as to be closer to users or reduce data transmission delays. These personalized requirements cannot be met by existing technologies, that is, existing technologies have the problem of being unable to meet real and complex business scenarios.

[0066] In response to the above technical problems, the present application proposes the following technical concept: Taking into account the personalized needs of users for the storage of software products, the business information in complex business scenarios can be analyzed, and the business information can be used as the core to guide storage allocation to determine a storage strategy that can guide storage allocation and meet the personalized storage needs of users. In this way, when a query request is subsequently obtained, a target storage strategy that matches the business information carried in the query request can be determined, and then a target product library that meets the personalized storage needs of the user can be determined based on the target storage strategy. Through the storage strategy, storage nodes such as product libraries are combined with business information, so as to perform refined storage matching at the business information level, ensuring that products can be stored in product libraries that meet the target business needs, thereby solving the problem that product data storage in the prior art does not meet user expectations, and meeting the needs of distributed storage of software products in real and complex business scenarios.

[0067] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0068] Figure 1 Schematic diagram of the software product storage method provided in this application Figure 1 ,like Figure 1 As shown, the method includes:

[0069] S101: Get a query request.

[0070] The execution subject of the embodiment of the present application is a software product storage device, which can be a terminal device, such as a mobile phone, a notebook, a desktop computer, etc., or a server. In actual applications, the software product storage device can be specifically implemented as a terminal device or a server, which can be determined according to actual conditions, and the embodiment of the present application does not specifically limit this.

[0071] In this step, the query request is used to determine the target product library that stores the products to be stored.

[0072] In a possible implementation, the query request may be generated in response to a user's query operation. Exemplarily, a software product control and a submit control are displayed in a graphical user interface of a software product storage device. The user can click on the software product control to select the software product he wants to store, and then click on the submit control. The software product storage device determines the product to be stored in response to the user's click operation on the software product control, and then generates a query request in response to the user's click operation on the submit control. In this exemplary embodiment, the user's query operation is the click operation on the software product control and the click operation on the submit control.

[0073] In a possible implementation, the query request may be sent by a terminal device used by a user. Specifically, the terminal device used by the user generates and sends a query request to the software product storage device in response to the user's query operation. Correspondingly, the software product storage device receives the query request.

[0074] It should be understood that the software product storage device and the terminal device used by the user can communicate and interact via wired or wireless means, and this application does not limit the communication method between the software product storage device and the terminal device used by the user.

[0075] S102: Determine a target storage strategy from a plurality of pre-set storage strategies according to target business information of the product to be stored carried in the query request.

[0076] In this step, the target business information includes the environment type for producing the products to be stored and the corresponding environment parameter values. The environment type includes at least one of a tenant, a computer room, and a physical subsystem. The environment parameter value includes at least one of a production location, a production organization identifier, and a physical subsystem identifier. The storage strategy is used to store the mapping relationship between the business information and the product library identifier.

[0077] Optionally, in a possible implementation manner, a specific implementation manner of determining the target storage policy from a plurality of preset storage policies may be:

[0078] The target business information is matched with the business information in the storage policy. If the business information of any storage policy is the same as the target business information, the storage policy is considered to be matched with the target business information successfully. Further, the target storage policy is determined from the storage policies that successfully match the target business information.

[0079] Specifically, if there is only one storage policy that successfully matches the target business information, the storage policy is directly determined as the target storage policy. If there are multiple storage policies that successfully match the target business information, one of them can be randomly determined as the target storage policy, or the target storage policy can be determined according to preset conditions.

[0080] Optionally, the preset condition may be to determine the target storage policy from multiple storage policies that successfully match the target business information according to the priority of the storage policy, which is specifically implemented in the following Figure 2 Further explanation is given in the illustrated embodiment and unnecessary elaboration is omitted here.

[0081] It should be understood that the business information of the target storage policy is the same as the target business information, which means that the environment type in the target business information is the same as the environment type of the target storage policy, and the environment parameter value in the target business information is the same as the environment parameter value of the target storage policy.

[0082] It should be understood that the target business information may include one or more target sub-business information, and similarly, the business information of the storage policy may also include one or more sub-business information. In the process of matching the target business information with the storage policy, as long as the target sub-business information is the same as the sub-business information of any storage policy, it means that the target business information successfully matches the storage policy.

[0083] It should be understood that the target sub-service information or the sub-service information is a combination of an environment type and an environment parameter value.

[0084] Exemplarily, the target business information includes two pieces of target sub-business information, namely target sub-business information 1, tenant: A address, and target sub-business information 2, computer room: B organization.

[0085] Storage policies include:

[0086] First storage strategy, environment type: tenant; environment parameter value: A address; first product library information;

[0087] Second storage strategy, environment type: tenant; environment parameter value: C address; second product library information;

[0088] Third storage strategy, environment type: computer room; environment parameter value: D organization; third product library information.

[0089] According to the target business information and storage policy, the environment type in the first storage policy is the same as the tenant in the target sub-business information 1; the environment parameter value is the same as the A address, then it is determined that the storage policy that meets the target business information includes the first storage policy. The environment parameter values ​​of the second storage policy and the third storage policy do not match the target business information, so the second storage policy and the third storage policy are excluded.

[0090] In this embodiment, the pre-set multiple storage policies can be updated based on business changes, and storage policies can be added, deleted, and modified before storage begins, during storage, or after storage ends. Storage policies are diverse, and storage policy settings can be customized based on actual application scenarios.

[0091] S103. Determine the target product library according to the product library identifier included in the target storage policy.

[0092] In this step, the product library identifiers included in the target storage policy can be regarded as a set, and the set contains at least one product library identifier. When the set corresponding to the target storage policy contains one product library identifier, the product library corresponding to the product library identifier is determined as the target product library; when there are multiple product library identifiers, the product library corresponding to any product library identifier can be randomly determined as the target product library, or the target product library can be determined from the product libraries corresponding to multiple product library identifiers according to the weight of the product library. The method of determining the target product library based on the weight is described below. Figure 2 Further explanation is given in the illustrated embodiment and no unnecessary elaboration is given here.

[0093] It should be noted that the product library identifier in the present application corresponds to a product library, and after the target product library is determined, detailed information of the target product library will be obtained.

[0094] Exemplarily, the detailed information of the target product library includes, but is not limited to: the storage port of the product library, the network address of the product library, the product library identifier, the product library balance, and the product library type. This application does not limit the detailed information of the product library, which is related to the actual hardware storage used and can be limited according to actual conditions.

[0095] S104, storing the products to be stored in the target product library.

[0096] In this step, after the target product library is determined, detailed information of the target product library may be determined according to the identifier of the target product library.

[0097] Optionally, a possible implementation method of storing the product to be stored in the target product library is: based on the detailed information of the target product library, determine the storage port and network address of the target product library. Then, access the target product library based on the network address of the target product library, and connect to the target product library based on the storage port of the target product library. Finally, the product to be stored is transmitted to the target product library through the storage port, thereby realizing the storage of the product to be stored.

[0098] The software product storage method provided in the embodiment of the present application obtains the query request corresponding to the product to be stored, and obtains the target business information corresponding to the product to be stored based on the query request; matches the target business information with the business information in the pre-set multiple storage policies, and obtains the target storage policy that meets the target business information; determines the target product library that can be used for the product to be stored based on the product library identifier contained in the target storage policy, and stores the product to be stored based on the target product library. The determination of the target product library is achieved by matching the target business information with multiple storage policies, and at the same time, based on the target business information, the storage is achieved, and refined storage matching is performed at the business information level to ensure that the product can be stored in the product library that meets the target business needs. The storage of products is achieved by hitting the storage policy with the target business information, which avoids the situation where business needs are not considered in balanced storage, and at the same time avoids the situation where complex business scenarios are not considered in classified storage, effectively meeting the distributed storage needs of real and complex business scenarios for software storage.

[0099] Optionally, before executing the software product storage method shown in the above embodiment, the product library may also be configured with weights, specifically:

[0100] According to the preset storage requirements and the storage performance of each artifact library, in each storage policy, a weight is configured for each artifact library corresponding to the storage policy.

[0101] It should be noted that the configuration of the product library weight is related to the storage strategy, which can be:

[0102] Based on each storage strategy, a product library group corresponding to each storage strategy is determined; based on the storage requirements and storage performance of each product library in the product library group, the weights of the product libraries in this group are configured.

[0103] If a product library exists in multiple groups, the weights of the product library in different groups can be consistent or inconsistent. The weight of a product library is associated with the group to which it belongs, and the weights of the same product library in different groups are independent of each other.

[0104] In this embodiment, the storage requirement refers to the requirement that the product library needs to meet to implement storage.

[0105] The storage requirement may be that a specific product library type needs to be stored, or a product library of a specific capacity needs to be stored. For example, if the storage requirement indicates that data needs to be stored in a product library suitable for fast reading and writing, the corresponding weight configuration of the product library that meets this condition is higher than that of other types of product libraries.

[0106] The storage performance of the artifact library includes at least one of the following: storage margin, throughput, read and write rate, storage latency, storage bandwidth, data reliability, storage availability, storage scalability, and data consistency.

[0107] Among them, the storage margin is the remaining storage space of the artifact library; the throughput is the amount of data processed by the artifact library per unit time; the read and write rate is the number of input and output operations that the artifact library can handle per unit time; the storage delay is the time required for the artifact library to receive a storage request and respond to the artifact library; the storage bandwidth is the amount of data processed by the artifact library per unit time under the condition of network transmission conditions; data reliability is the ability of the artifact library to maintain data integrity and availability during long-term operation; storage availability is the degree of availability of the artifact library within a specific time; storage scalability is the ability of the artifact library to improve performance after adding hardware storage resources; data consistency is the ability of the artifact library to ensure data consistency between other nodes when it is in a distributed node.

[0108] Furthermore, after the product to be stored is stored in the target product library, the weight of the product library may be updated.

[0109] In a possible implementation, the weight of the target artifact library in the target storage policy may be reduced.

[0110] Specifically, the method of reducing the weight of the target product library may be to reduce the weight based on a preset value, or to reduce the weight based on a random value.

[0111] In another possible implementation, the weight of each product repository corresponding to the target storage policy may be recalculated according to preset storage requirements and the current storage performance of each product repository corresponding to the target storage policy.

[0112] The reduction of the weight of the target product library is used to balance the product libraries corresponding to the storage strategy. By reducing the weight, the probability of the target product library being selected for storage next time is reduced, thereby ensuring uniform distribution among product libraries.

[0113] Optionally, after the artifact library has been running for a period of time, the weight of the target artifact library needs to be updated regularly, specifically:

[0114] Update the weights of all artifact repositories in the target storage policy.

[0115] After the storage usage time reaches the preset time, the weight of the product library in the target storage policy needs to be updated. The load of each product library in the target storage policy can be calculated based on the performance data, and the weight can be updated and calculated based on the load.

[0116] Exemplarily, the product libraries in the target storage strategy include: the first product library and the second product library; the weight is updated according to the ratio between the balances of the product libraries. Before storage, the balance of the first product library is 5T, and the balance of the second product library is 5T; the weight ratio before storage is 1:1; after storage, the balance of the first product library is 5T, and the balance of the second product library is 4T; the weight ratio after storage can be 5:4.

[0117] Figure 2 Schematic diagram of the software product storage method provided in this application Figure 2 ,like Figure 2 As shown, in this embodiment Figure 1 Based on the illustrated embodiment, a process of determining a target storage strategy and then determining a target product library is described in detail. The process can be implemented by the following steps:

[0118] S201. Determine a storage policy having the same business information as target business information as a target storage policy.

[0119] Optionally, a specific implementation manner of determining the target storage policy may be:

[0120] The storage policy with the same business information as the target business information is determined as the initial storage policy. If there are multiple initial storage policies, the initial storage policy with the highest priority is determined as the target storage policy; if there is only one initial storage policy, the initial storage policy is determined as the target storage policy.

[0121] In this embodiment, the target business information includes at least one environment type and a corresponding environment parameter value, that is, the target business information includes at least one target sub-business information. One environment type and one environment parameter value can be regarded as a product key-value pair, that is, one target sub-business information is a product key-value pair, and the target business information includes at least one product key-value pair.

[0122] Optionally, the storage policy can be a single storage policy or a composite storage policy, and the difference between the two is whether the business information of each is a single key-value pair or multiple key-value pairs. That is, a single storage policy contains only one artifact key-value pair, and a composite storage policy contains multiple artifact key-value pairs.

[0123] Exemplarily, an embodiment of the present application provides a format of a storage policy data table, a format of a storage policy priority data table, a format of a product library data table, and a format of target business information. Among them, the storage policy data table is used to store multiple preset storage policies; the storage policy priority data table is used to store the priority corresponding to each storage policy; the product library data table is used to store detailed information of each product library. Specifically: the storage policy data table includes: a primary key identifier for identifying each storage policy, the environment type and environment parameter value contained in each storage policy, and the primary key identifier of the product library corresponding to each storage policy. The storage policy priority data table includes: a primary key identifier for identifying the priority of each storage policy, a primary key identifier for identifying each storage policy, and the priority corresponding to each storage policy. The product library data table includes: a primary key identifier for each product library, an environment type corresponding to each product library, a storage address of each product library, and a storage port of each product library. The target business information includes: an environment type and an environment parameter value.

[0124] For example, the target business information includes two target sub-business information, namely target sub-business information 1, tenant: A address, and target sub-business information 2, computer room: B organization.

[0125] The storage policy data table includes:

[0126] Strategy 1, environment type: tenant, environment parameter value: A address; product library information (1, 2, 3);

[0127] Strategy 2, environment type: tenant, environment parameter value: D address; product library (1, 2, 3);

[0128] Strategy 3, Sub-business information 31, Environment type: Tenant, Environment parameter value: B address. Sub-business information 32, Environment type: Physical subsystem, Environment parameter value: C organization. Artifact library information (2, 3, 4);

[0129] Strategy 4, Sub-business information 41, Environment type: physical subsystem, Environment parameter value: C organization. Sub-business information 42, Environment type: computer room, Environment parameter value: F address. Product library information (1, 3, 5).

[0130] Among them, the target business information can be regarded as composite business information, and strategy three and strategy four can be regarded as composite storage strategies. Composite business information means that the business information contains two or more environment types, and the environment parameter values ​​corresponding to each environment type. Composite storage strategies means that the storage strategy contains two or more environment types, and the environment parameter values ​​corresponding to each environment type.

[0131] The storage policy priority data table includes:

[0132] Priority 1, Strategy 1; Priority: 4;

[0133] Priority 2, Strategy 2; Priority: 2;

[0134] Priority 3, Strategy 3; Priority: 3;

[0135] Priority 4, Strategy 4; Priority: 1.

[0136] Based on the matching of the target business information and the storage strategy, the initial storage strategies obtained include: strategy one, strategy three, and strategy four; judging based on the priority of the storage strategy, the storage strategy with the highest priority is strategy one; taking strategy one as the target storage strategy, the product library corresponding to strategy one includes product library (1, 2, 3).

[0137] If the target business information is: computer room: F address; then the matching initial storage strategy is strategy four, and strategy four can be directly used as the target storage strategy.

[0138] S202. Determine an initial product library corresponding to the product library identifier according to the product library identifier included in the target storage policy.

[0139] In this embodiment, the target storage strategy includes at least one product library identifier. Exemplarily, the target storage strategy includes three product library identifiers, and the product libraries corresponding to the three product library identifiers are determined as the initial product libraries.

[0140] S203: If the number of the initial product library is one, the initial product library is determined as the target product library.

[0141] In this embodiment, the number of initial product libraries and the weight of the initial product libraries are related to the target product library finally selected. If there is only one initial product library, this initial product library can be determined as the target product library. If there are multiple initial product libraries, the target product library needs to be determined based on the weight of the initial product library.

[0142] S204: If there are multiple initial product libraries, determine a target product library from the multiple initial product libraries according to a weight pre-assigned to each initial product library.

[0143] In this embodiment, the weight of the initial product library represents the probability of the disposal product library being selected. For example, the initial product library includes: product library 1 with a weight of 2; product library 2 with a weight of 1; product library 3 with a weight of 1. Then the probability of product library 1 being selected is twice the probability of product library 2 being selected, and also twice the probability of product library 3 being selected.

[0144] It should be noted that the weight of the product library is used as the probability of being selected. When the amount of data of the software product exceeds the remaining storage range of the product library with the highest weight, the remaining data of the software product can also be stored in the product library with a relatively low weight. Alternatively, the data of the software product can be stored separately according to the proportion of the weights between the product libraries. Under the premise of ensuring data security and reliability, the selection of the target product library according to the weight can be diversified. The weight of the product library is related to the preset storage requirements and storage performance. It does not mean that the weight of the product library with a large storage margin is necessarily large. The weight needs to be configured in combination with the preset storage requirements.

[0145] In this embodiment, the target business information is matched with the business information in multiple storage policies, and the original storage policies are obtained. A target storage policy that meets the target business information is determined based on the number and priority of the original storage policies; at the same time, the original product library that can be used to implement the storage of software products is determined based on the target storage policy; the target product library that the software products will eventually use is determined based on the number and weight of the original product library. Through the dual selection of priority and weight, the precision of software product storage is maximized in the load business scenario, the efficiency of the product library and the applicability of data storage are guaranteed, thereby improving the efficiency of data storage business processing.

[0146] Based on the above embodiments, Figure 3 A further implementation example description of the determination of the storage strategy is provided. Figure 3 A flowchart of a software product storage strategy routing method provided by this application. Figure 3 As shown, the method includes:

[0147] a1. Obtain target business information based on the query request.

[0148] a2. Based on a database corresponding to the preset multiple storage strategies, the preset multiple storage strategies are obtained, and the preset multiple storage strategies are sorted according to priorities.

[0149] a3. Based on the target business information and the sorted multiple storage strategies, the strategies are matched in order from high to low priority.

[0150] a4. Determine whether the match is successful and obtain the target storage strategy.

[0151] If the current storage policy matches successfully, the matching process ends and the policy is determined as the target storage policy. If the current storage policy matches unsuccessfully, a3 is continued. If the current storage policy is the last storage policy in the ranking, the matching process ends regardless of whether the policy matches successfully or not.

[0152] In this embodiment, a method for obtaining a target storage policy is proposed, by sorting all preset storage policies by priority, and matching the storage policies according to the order, to ensure that the initial storage policy that successfully matches for the first time has the highest priority, thereby determining the target storage policy. This avoids the problem of large storage policy matching calculation amount caused by matching all storage policies.

[0153] Figure 4 A flowchart of a polling method for storing software products provided by the present application. Figure 4 The implementation example shown in the figure describes in detail how to implement the weight update of multiple target product libraries, such as Figure 4 As shown, the specific method may be:

[0154] b1. Obtain storage configurations corresponding to all artifact libraries used to implement software artifact storage, and initialize the weight of the artifact library in each storage policy based on multiple storage policies.

[0155] b2. Based on the target storage strategy determined in S201, determine a product library group belonging to the target storage strategy and the polling data object corresponding to the product library group.

[0156] In this step, the artifact repository group includes all artifact repositories in the target storage policy.

[0157] b3. Use the product library weight and the product library group weight as polling data, create a polling data object to store the polling data; use the product library group as the key value information corresponding to the polling data object; determine the target product library based on the product library group and the polling data object.

[0158] In this step, a possible implementation method for determining the target product library is:

[0159] The weight of each product library and the weight of the product library group are determined based on the product library grouping, wherein the weight of each product library is determined based on the preset storage requirements and the storage performance of each product library.

[0160] The probability of each artifact library in the artifact library group being selected is determined based on the polling data object, and the target artifact library for storing software artifacts is finally determined based on the probability of each artifact library being selected.

[0161] b4. Implement software artifact storage based on the target artifact library and update the weight of the target artifact library.

[0162] In this step, when the usage time of the product library group reaches the preset time, the weight of each product library in the product library group and the weight of the product library group are updated.

[0163] In this embodiment, the update of the product library weight is not limited to the product library grouping in the target storage strategy; since the storage performance of the product library at the physical level changes after the product library is assigned the data corresponding to the software product, the product library also needs to update the weight in the grouping corresponding to other storage strategies. Therefore, the update of the product library weight includes the product library grouping in each storage strategy to which the product library belongs.

[0164] It should be noted that the method of updating the weights of the product libraries in the product library grouping in this embodiment is used to balance the probability of each product library being selected, ensuring that the product libraries can be evenly distributed, so that the storage space is maximized. At the same time, when there are new product libraries in the product library grouping, the new product libraries can be dynamically added to the product library selection by weight update to ensure that the new product libraries are utilized. The weight update method of the product library mentioned in this embodiment is applicable to a variety of scenarios. For example, in distributed storage, each storage node can be regarded as a product library, and the weight of the storage node can be dynamically updated by reporting the real-time performance data of the node, thereby ensuring balanced use between each storage node.

[0165] In this embodiment, by dynamically updating the weight of the product library in the storage strategy, it is ensured that the probability of each product library being selected in the product library group corresponds to the storage performance of the product library itself, thereby ensuring that the storage of the product library is effectively utilized and ensuring load balancing among multiple product libraries.

[0166] Figure 5 A schematic diagram of the structure of the software product storage device provided in this application, such as Figure 5 As shown, the software product storage device 50 provided in this embodiment includes: an acquisition module 501, a first processing module 502, a second processing module 503 and a third processing module 504;

[0167] An acquisition module 501 is used to acquire a query request, where the query request is used to determine a target product library storing the product to be stored;

[0168] The first processing module 502 is used to determine a target storage strategy from a plurality of pre-set storage strategies according to the target business information of the product to be stored carried in the query request; wherein the target business information includes the environment type for producing the product to be stored and the corresponding environment parameter value, the environment type includes at least one of a tenant, a computer room, and a physical subsystem, the environment parameter value includes at least one of a production location, a production organization identifier, and a physical subsystem identifier, and the storage strategy is used to store the mapping relationship between the business information and the product library identifier;

[0169] The second processing module 503 is used to determine the target product library according to the product library identifier included in the target storage policy;

[0170] The third processing module 504 is used to store the products to be stored in the target product library.

[0171] In some embodiments, the first processing module 502 is used to determine a target storage policy from the storage policies based on the target business information, specifically:

[0172] The storage policy with the same business information as the target business information is determined as the target storage policy.

[0173] In some embodiments, the first processing module 502 is used to determine the target service policy by matching the target service information with the storage policy service information, specifically:

[0174] Determine the storage strategy that is the same as the target business information as the initial storage strategy;

[0175] If there are multiple initial storage policies, the initial storage policy with the highest priority is determined as the target storage policy;

[0176] If the number of initial storage policies is one, the initial storage policy is determined as the target storage policy.

[0177] In some embodiments, the second processing module 503 is further used to determine the target product library according to the product library identifier, specifically:

[0178] According to the product library identifier included in the target storage policy, determine the initial product library corresponding to the product library identifier;

[0179] If the number of initial product libraries is one, the initial product library is determined as the target product library; if the number of initial product libraries is multiple, the target product library is determined from the multiple initial product libraries according to the weights pre-assigned to each initial product library.

[0180] In some embodiments, the acquisition module 501 is further used to configure a weight for each product library, specifically:

[0181] According to the preset storage requirements and the storage performance of each artifact library, in each storage policy, a weight is configured for each artifact library corresponding to the storage policy.

[0182] In some embodiments, the third processing module 504 is further configured to reduce the weight of the target artifact library after the software artifact is stored, specifically:

[0183] Reduce the weight of the target artifact repository in the target storage policy.

[0184] In some embodiments, the third processing module 504 is further configured to:

[0185] Update the weights of all artifact repositories in the target storage policy.

[0186] The software product storage device provided in the embodiment of the present application can be used to execute the technical solution of the software product storage method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0187] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the acquisition module 501 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above acquisition module 501. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0188] Figure 6 This is a schematic diagram of the structure of the software product storage device provided in the embodiment of the present application. Figure 6 As shown, the software product storage device may include: a transceiver 601 , a processor 602 , and a memory 603 .

[0189] The processor 602 executes the computer execution instructions stored in the memory, so that the processor 602 executes the scheme in the above embodiment. The processor 602 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0190] The memory 603 is connected to the processor 602 via a system bus and completes communication between them. The memory 603 is used to store computer program instructions.

[0191] The transceiver 601 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.

[0192] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.

[0193] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the software product storage method in the above embodiment.

[0194] The embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the software product storage method of the above embodiment.

[0195] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the technical solution of the software product storage method in the above embodiment.

[0196] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0197] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0198] In addition, each functional module in each embodiment of the present application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The above-mentioned module-composed unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

[0199] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0200] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0201] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0202] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0203] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0204] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic control unit or a main control device.

[0205] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0206] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for storing software products, It is characterized in that include: Obtaining a query request, wherein the query request is used to determine a target product library storing the product to be stored; According to the target business information of the product to be stored carried in the query request, a target storage strategy is determined from a plurality of pre-set storage strategies; wherein the target business information includes the environment type for producing the product to be stored and the corresponding environment parameter value, the environment type includes at least one of a tenant, a computer room, and a physical subsystem, the environment parameter value includes at least one of a production location, a production organization identifier, and a physical subsystem identifier, and the storage strategy is used to store a mapping relationship between business information and a product library identifier; Determining the target product library according to the product library identifier included in the target storage strategy; The products to be stored are stored in the target product library.

2. The method according to claim 1, It is characterized in that The step of determining a target storage strategy from a plurality of preset storage strategies according to the target business information of the product to be stored carried in the query request includes: The storage policy whose business information is the same as the target business information is determined as the target storage policy.

3. The method according to claim 2, It is characterized in that The step of determining the storage strategy that uses the same service information as the target service information as the target storage strategy includes: Determine the storage strategy that is the same as the target business information as the initial storage strategy; If there are multiple initial storage policies, the initial storage policy with the highest priority is determined as the target storage policy; If the number of the initial storage policies is one, the initial storage policy is determined as the target storage policy.

4. The method according to any one of claims 1 to 3, It is characterized in that The step of determining the target product library according to the product library identifier included in the target storage strategy includes: Determine, according to the product library identifier included in the target storage policy, an initial product library corresponding to the product library identifier; If the number of the initial product library is one, the initial product library is determined as the target product library; If there are multiple initial product libraries, a target product library is determined from the multiple initial product libraries according to a weight pre-assigned to each initial product library.

5. The method according to claim 4, It is characterized in that Before obtaining the query request, the method further includes: According to the preset storage requirements and the storage performance of each product library, in each storage strategy, a weight is configured for each product library corresponding to the storage strategy.

6. The method according to claim 5, It is characterized in that After storing the to-be-stored products in the target product library, the method further includes: The weight of the target artifact library in the target storage strategy is reduced.

7. The method according to claim 5, It is characterized in that After storing the to-be-stored products in the target product library, the method further includes: Update the weights of all artifact repositories in the target storage strategy.

8. A software product storage device, It is characterized in that include: An acquisition module, used to acquire a query request, wherein the query request is used to determine a target product library storing the product to be stored; A first processing module is used to determine a target storage strategy from a plurality of pre-set storage strategies according to the target business information of the product to be stored carried in the query request; wherein the target business information includes the environment type for producing the product to be stored and the corresponding environment parameter value, the environment type includes at least one of a tenant, a computer room, and a physical subsystem, the environment parameter value includes at least one of a production location, a production organization identifier, and a physical subsystem identifier, and the storage strategy is used to store a mapping relationship between business information and a product library identifier; A second processing module, configured to determine the target product library according to the product library identifier included in the target storage policy; The third processing module is used to store the products to be stored in the target product library.

9. A software product storage device, It is characterized in that include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.

11. A computer program product, It is characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.

Citation Information

Patent Citations

  • Method and device for providing storage service for tenant in cloud storage environment

    CN105893139A

  • Business management software customization platform and method

    CN108008940A

  • Task processing method and device, computer equipment and storage medium

    CN116820744A

  • Method and system for performing security detection on products in software product library

    CN116821057A

  • Repository-based shipment channel for cloud and on-premise software

    US20190149604A1