CN111124618B - Resource deployment method, device, storage medium and equipment - Google Patents
Resource deployment method, device, storage medium and equipment Download PDFInfo
- Publication number
- CN111124618B CN111124618B CN201911354119.8A CN201911354119A CN111124618B CN 111124618 B CN111124618 B CN 111124618B CN 201911354119 A CN201911354119 A CN 201911354119A CN 111124618 B CN111124618 B CN 111124618B
- Authority
- CN
- China
- Prior art keywords
- application
- sub
- resource
- configuration information
- common
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
- G06F9/4451—User profiles; Roaming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45562—Creating, deleting, cloning virtual machine instances
Abstract
The embodiment of the application discloses a resource deployment method, a resource deployment device, a storage medium and equipment, and belongs to the technical field of computers. The method comprises the following steps: creating an aggregation application, wherein the aggregation application is obtained by aggregating a plurality of sub-applications, part of configuration information of the plurality of sub-applications is the same, and the configuration information is used for configuring resources; establishing a common resource pool of the aggregated application, wherein the common resource pool is established according to common configuration information, and the common configuration information is obtained by extracting the same configuration information in a plurality of sub-applications; and creating each sub-application, and sending the mapping of the common resource pool to the plurality of sub-applications, wherein the mapping is used for each sub-application to call the resources in the common resource pool. According to the embodiment, a shared resource of the application level can be deployed for a plurality of sub-applications, and the resource of the application level does not need to be deployed for each sub-application, so that a resource deployment architecture can be simplified, and a storage space can be saved.
Description
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a resource deployment method, a resource deployment device, a storage medium and equipment.
Background
The application needs to call some resources during running, so that the resources can be deployed when the application is created, so that the application can call the resources conveniently.
If a plurality of applications need to be created, resources of the plurality of applications can be deployed in the same container, so that the resources are shared among the applications. Taking the example of deploying the resources of multiple applications into a tomcat container, the electronic device may package the installation package of each application into a war package, and perform resource deployment in the tomcat container in a multi-war package manner.
Although multiple applications can share resources of a container level when resource deployment is performed in a tomcat container in a multi-war packet manner, the resources of the application level are not shareable, and one application level resource needs to be deployed for each application, so that a resource deployment architecture is complex and occupies a large storage space.
Disclosure of Invention
The embodiment of the application provides a resource deployment method, a resource deployment device, a storage medium and equipment, which are used for solving the problems that a resource deployment architecture is complex and a large amount of storage space is occupied due to the fact that one application-level resource is deployed for each application. The technical scheme is as follows:
in one aspect, a method for deploying resources is provided, and the method includes:
creating an aggregation application, wherein the aggregation application is obtained by aggregating a plurality of sub-applications, part of configuration information of the plurality of sub-applications is the same, and the configuration information is used for configuring resources;
creating a common resource pool of the aggregated application, wherein the common resource pool is created according to common configuration information, and the common configuration information is obtained by extracting the same configuration information in the plurality of sub-applications;
and creating each sub-application, and sending a mapping of the common resource pool to the plurality of sub-applications, wherein the mapping is used for each sub-application to call the resources in the common resource pool.
In one aspect, an apparatus for deploying resources is provided, the apparatus including:
the system comprises an application creation module, a resource allocation module and a resource allocation module, wherein the application creation module is used for creating an aggregated application, the aggregated application is obtained by aggregating a plurality of sub-applications, part of configuration information of the plurality of sub-applications is the same, and the configuration information is used for configuring resources;
a resource creating module, configured to create a common resource pool of the aggregated application, where the common resource pool is created according to common configuration information, and the common configuration information is obtained by extracting the same configuration information in the multiple sub-applications;
and the resource deployment module is used for creating each sub-application and sending the mapping of the common resource pool to the plurality of sub-applications, wherein the mapping is used for each sub-application to call the resources in the common resource pool.
In one aspect, a computer-readable storage medium is provided having at least one instruction, at least one program, set of codes, or set of instructions stored therein, which is loaded and executed by a processor to implement the resource deployment method as described above.
In one aspect, an electronic device is provided, which includes a processor and a memory, where at least one instruction is stored in the memory, and the instruction is loaded and executed by the processor to implement the resource deployment method as described above.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
the method comprises the steps of aggregating a plurality of sub-applications with part of the same configuration information to obtain aggregated applications, then creating the aggregated applications, extracting the same configuration information to obtain common configuration information, creating a common resource pool according to the common configuration information, sending mapping of the common resource pool to the sub-applications after each sub-application is created, and calling resources from the common resource pool by each sub-application according to the mapping, thereby realizing sharing of resources of an application level. That is, in this embodiment, a shared resource at an application level may be deployed for a plurality of sub-applications, and it is not necessary to deploy a resource at an application level for each sub-application, which may simplify a resource deployment architecture and save a storage space.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of a method for deploying resources according to an embodiment of the present application;
FIG. 2 is a flowchart of a method for parent-child relationships of a resource pool, according to an embodiment of the present application;
FIG. 3 is a flowchart illustrating a resource deployment method according to another embodiment of the present application;
fig. 4 is a block diagram of a resource deployment apparatus according to still another embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present application more clear, the embodiments of the present application will be further described in detail with reference to the accompanying drawings.
In the application scenario of privatized equipment or stand-alone resource deployment, because the processing capability and the storage space of the electronic equipment are limited, resources of the applications need to be merged and deployed, so that the effects of simplifying a resource deployment architecture and saving the storage space are achieved. The resource for merging and deploying the applications refers to configuring the resource at one position of the electronic device, and a plurality of applications in the electronic device share the resources such as a set of cache/database. The resource deployment process in the embodiment of the present application is described below.
Referring to fig. 1, a flowchart of a method for deploying a resource according to an embodiment of the present application is shown, where the method for deploying a resource is applicable to an electronic device, and the electronic device may be a privatized device or a stand-alone device. The resource deployment method may include:
The aggregated application is an application including a plurality of child applications, and may be understood as a parent application of each child application, and a manner of creating the aggregated application will be described below, which is not described herein again.
The resource mentioned here is a resource that needs to be called by the application in runtime, and may be a cache resource, a database resource, and the like, which is not limited in this embodiment.
The electronic device may configure the resource according to configuration information in the application. When multiple resources need to be configured in an application, the application may include multiple pieces of configuration information.
In this embodiment, when a plurality of sub-applications have partially the same configuration information, part or all of the sub-applications may be selected according to user requirements to merge and deploy resources, thereby improving flexibility of resource deployment.
In this embodiment, the same configuration information in a plurality of sub-applications may be extracted to obtain common configuration information. The common configuration information may be extracted in a variety of ways, for example, manually or automatically by a user, which is not limited in this embodiment.
After obtaining the common resource configuration information, the common resource configuration information may be added to the aggregated application, after the aggregated application is created, a common resource pool may be created, the configuration information that does not need to be instantiated in the common configuration information is added to the common resource pool, the configuration information that needs to be instantiated in the common configuration information is instantiated (such as an access handle of a cache and/or a database), and the instantiated configuration instance is added to the common resource pool.
The electronic device may create the sub-applications in sequence in a specified order. For each sub-application, since the sub-application includes private configuration information in addition to the extracted common configuration information, the private configuration information is used for configuring private resources of the sub-application. Therefore, after the sub-application is created, a private resource pool can be created, the configuration information which does not need to be instantiated in the private configuration information is added into the private resource pool, the configuration information which needs to be instantiated in the private configuration information is instantiated (such as an access handle of a cache and/or a database), and the instantiated configuration instance is added into the private resource pool.
In this embodiment, the common resource pool may be implemented using a Map (Map) structure, so that the electronic device may further obtain the mapping of the common resource pool, send the mapping to the child application, and the child application uses the common resource pool as a parent resource pool of the private resource pool, so that the child application may call the resource in the common resource pool when needed. Wherein the private resource pool can also be implemented using a Map structure.
It should be noted that the resource pool may support multiple levels, i.e., the sub-applications may be aggregated applications. Referring to fig. 2, the aggregate resource allocation pool is a parent resource pool of the child application resource allocation pool 1, the child application resource allocation pool 2, and the child aggregate application resource allocation pool a is a parent resource pool of the child application resource allocation pool a1 and the child application resource allocation pool a 2.
To sum up, according to the resource deployment method provided in the embodiment of the present application, a plurality of sub-applications having partially the same configuration information are aggregated to obtain an aggregated application, the aggregated application is created, the same configuration information is extracted to obtain common configuration information, a common resource pool is created according to the common configuration information, after each sub-application is created, a mapping of the common resource pool can be sent to the sub-application, and each sub-application can call a resource from the common resource pool according to the mapping, thereby realizing sharing of resources at an application level. That is, in this embodiment, a shared resource at an application level may be deployed for a plurality of sub-applications, and it is not necessary to deploy a resource at an application level for each sub-application, which may simplify a resource deployment architecture and save a storage space.
Referring to fig. 3, a flowchart of a method for deploying a resource according to another embodiment of the present application is shown, where the method for deploying a resource can be applied to an electronic device, and the electronic device can be a privatized device or a stand-alone device. The resource deployment method may include:
step 301, packaging installation packages of multiple sub-applications to obtain an aggregated installation package of an aggregated application, and creating the aggregated application according to the aggregated installation package, where the aggregated application is obtained by aggregating multiple sub-applications, and part of configuration information of the multiple sub-applications is the same, and the configuration information is used for configuring resources.
The explanation of the aggregation application and the resource is described in step 101, and is not described herein again.
The electronic device may configure the resource according to configuration information in the application. When multiple resources need to be configured in an application, multiple pieces of configuration information may be included in an installation package of the application.
In this embodiment, when a plurality of sub-applications have partially the same configuration information, part or all of the sub-applications may be selected according to user requirements to merge and deploy resources, thereby improving flexibility of resource deployment.
In this embodiment, the same configuration information in a plurality of sub-applications may be extracted to obtain common configuration information. The common configuration information may be extracted in a variety of ways, for example, manually or automatically by a user, which is not limited in this embodiment.
When the common configuration information is automatically extracted, since the key and the value in the configuration information corresponding to the same resource are the same, the configuration information having the same key and value in all the configuration information can be extracted to obtain the common configuration information.
After obtaining the common resource configuration information, the common resource configuration information may be added to the aggregated application, after the aggregated application is created, a common resource pool may be created, the configuration information that does not need to be instantiated in the common configuration information is added to the common resource pool, the configuration information that needs to be instantiated in the common configuration information is instantiated (such as an access handle of a cache and/or a database), and the instantiated configuration instance is added to the common resource pool.
The electronic device may create the sub-applications in sequence in a specified order. For each sub-application, since the sub-application includes private configuration information in addition to the extracted common configuration information, the private configuration information is used for configuring private resources of the sub-application. Therefore, after the sub-application is created, a private resource pool can be created, the configuration information which does not need to be instantiated in the private configuration information is added into the private resource pool, the configuration information which needs to be instantiated in the private configuration information is instantiated (such as an access handle of a cache and/or a database), and the instantiated configuration instance is added into the private resource pool.
In this embodiment, the common resource pool may be implemented using a Map (Map) structure, so that the electronic device may further obtain the mapping of the common resource pool, send the mapping to the child application, and the child application uses the common resource pool as a parent resource pool of the private resource pool, so that the child application may call the resource in the common resource pool when needed. Wherein the private resource pool can also be implemented using a Map structure.
It should be noted that the resource pool may support multiple levels, i.e., the sub-applications may be aggregated applications.
After the creation of each sub-application, each sub-application may call resources at runtime, at which point the following steps 305 and 311 are performed.
In step 310, if the configuration instance of the resource is found, the configuration instance of the resource is called through the sub-application.
It should be noted that the child application may query the configuration instance by way of alias reference, and the alias may have a certain format, for example, db: mysql1, cache: redis 1.
In this embodiment, the sub-application searches for the resource in the private resource pool first, and then searches for the resource in the common resource pool when the resource does not exist in the private resource pool, and thus when the resource is searched, the priority of the private resource pool is higher than that of the common resource pool. That is, the priority of the private configuration information is higher than that of the common configuration information, and if the sub-application needs to customize the personalized resource configuration, it is only required to ensure that the name of the configuration information of the resource in the private configuration information is consistent with the name of the configuration information of the resource in the common configuration information, so as to achieve the purposes of configuration coverage and customization.
The reference may be information such as an address or a handle of the configuration instance, and the embodiment is not limited.
If the sub-application stores the reference of the configuration instance, the configuration instance can be directly called according to the reference when the sub-application needs to call the configuration instance next time, the configuration instance does not need to be searched in the shared resource pool, and the resource acquisition efficiency can be improved.
For ease of understanding, references to the sub-application storage configuration instance may be understood as the sub-application being bound to a resource.
In this embodiment, after the reference of the sub-application binding configuration instance, the electronic device may further execute step 312 and step 314 to update the reference bound by the sub-application.
In step 312, if the reference of the configuration instance is stored by the sub-application, the correspondence between the application storage key, the reference, and the application identifier of the sub-application is aggregated.
That is, the aggregated application reverse record binds child applications of the configured instance in the common resource pool.
For example, when the database of the aggregated application needs to be replaced, the key of the database and the new configuration information may be sent to the aggregated application, the aggregated application re-instantiates according to the new configuration information to generate a new configuration instance, and the old configuration instance corresponding to the shared resource pool is updated according to the key.
The child application, upon receiving the update notification, may delete its own stored reference corresponding to the key. Then, the sub-application can immediately go back to the shared resource pool to obtain the reference of the new configuration instance, and store the reference; or, the sub-application may obtain the reference of the configuration instance corresponding to the key from the common resource pool again when the new configuration instance needs to be called next time, and store the reference; or, the sub-application may retrieve the reference of the configuration instance corresponding to the key from the common resource pool at other times, and store the reference, which is not limited in this embodiment.
To sum up, according to the resource deployment method provided in the embodiment of the present application, a plurality of sub-applications having partially the same configuration information are aggregated to obtain an aggregated application, the aggregated application is created, the same configuration information is extracted to obtain common configuration information, a common resource pool is created according to the common configuration information, after each sub-application is created, a mapping of the common resource pool can be sent to the sub-application, and each sub-application can call a resource from the common resource pool according to the mapping, thereby realizing sharing of resources at an application level. That is, in this embodiment, a shared resource at an application level may be deployed for a plurality of sub-applications, and it is not necessary to deploy a resource at an application level for each sub-application, which may simplify a resource deployment architecture and save a storage space.
The sub-application searches for the resource in the private resource pool first, and then searches for the resource in the common resource pool when the resource does not exist in the private resource pool, so that the priority of the private resource pool is higher than that of the common resource pool when the resource is searched. That is, the priority of the private configuration information is higher than that of the common configuration information, and if the sub-application needs to customize the personalized resource configuration, it is only necessary to ensure that the name of the configuration information of the resource in the private configuration information is consistent with the name of the configuration information of the resource in the common configuration information, so as to achieve the purposes of configuration coverage and customization.
Referring to fig. 4, a block diagram of a resource deployment apparatus provided in an embodiment of the present application is shown, where the resource deployment apparatus may be applied to an electronic device, and the electronic device may be a privatized device or a stand-alone device. The resource deployment device may include:
an application creating module 410, configured to create an aggregated application, where the aggregated application is an application obtained by aggregating a plurality of sub-applications, and part of configuration information of the plurality of sub-applications is the same, and the configuration information is used for configuring resources;
a resource creating module 420, configured to create a common resource pool of the aggregated application, where the common resource pool is created according to common configuration information, and the common configuration information is obtained by extracting the same configuration information in the multiple sub applications;
and the resource deployment module 430 is configured to create each sub-application, and send a mapping of the common resource pool to the plurality of sub-applications, where the mapping is used for each sub-application to call resources in the common resource pool.
In an optional embodiment, the apparatus further comprises:
the key acquisition module is used for acquiring the key of the resource to be searched through the sub-application after the mapping of the shared resource pool is sent to the sub-application;
the instance searching module is used for searching the configuration instance of the resource in the shared resource pool through the sub-application according to the mapping and the key;
and the instance calling module is used for calling the configuration instance of the resource through the sub-application if the configuration instance of the resource is found.
In an optional embodiment, the apparatus further comprises:
and the reference storage module is used for storing the reference of the configuration instance through the sub-application after the instance calling module calls the configuration instance of the resource through the sub-application, and the reference is used for the sub-application to locally call the configuration instance.
In an optional embodiment, the apparatus further comprises:
the relation storage module is used for storing the corresponding relation among the application storage key, the reference and the application identifier of the sub application through aggregation if the reference of the configuration instance is stored through the sub application;
the information searching module is used for searching a key and each application identifier corresponding to the reference of the configuration example in the corresponding relation if the configuration examples in the shared resource pool are updated;
and the notification sending module is used for sending an update notification carrying the key to the sub-application indicated by each application identifier, and the update notification is used for notifying the sub-application to obtain the configuration instance of the resource corresponding to the key from the shared resource pool again.
In an alternative embodiment of the method according to the invention,
the instance searching module is also used for searching the configuration instance of the resource in the private resource pool through the sub-application according to the key if the private resource pool is created by each sub-application before the sub-application searches the configuration instance of the resource in the common resource pool according to the mapping and the key;
the instance calling module is also used for calling the configuration instance of the resource through the sub-application if the configuration instance of the resource is found;
the device also includes: and the triggering module is used for triggering and executing the step of searching the configuration example of the resource in the shared resource pool through the sub-application according to the mapping and the key if the configuration example of the resource is not searched.
In an alternative embodiment, the application creation module 410 is further configured to:
packaging the installation packages of the sub-applications to obtain an aggregation installation package of the aggregation application;
an aggregated application is created from the aggregated installation package.
In an optional embodiment, the apparatus further comprises:
an information obtaining module, configured to obtain configuration information of corresponding sub-applications from installation packages of the respective sub-applications before the resource creating module 420 creates the common resource pool of the aggregated application;
and the information extraction module is used for extracting the configuration information with the same key and value in all the configuration information to obtain the common configuration information.
To sum up, the resource deployment apparatus provided in this embodiment of the present application obtains an aggregated application by aggregating a plurality of sub-applications having partially the same configuration information, creates the aggregated application, extracts the same configuration information to obtain common configuration information, creates a common resource pool according to the common configuration information, and after each sub-application is created, may send a mapping of the common resource pool to the sub-application, and each sub-application may call a resource from the common resource pool according to the mapping, thereby implementing sharing of resources at an application level. That is, in this embodiment, a shared resource at an application level may be deployed for a plurality of sub-applications, and it is not necessary to deploy a resource at an application level for each sub-application, which may simplify a resource deployment architecture and save a storage space.
The sub-application searches for the resource in the private resource pool first, and then searches for the resource in the common resource pool when the resource does not exist in the private resource pool, so that the priority of the private resource pool is higher than that of the common resource pool when the resource is searched. That is, the priority of the private configuration information is higher than that of the common configuration information, and if the sub-application needs to customize the personalized resource configuration, it is only required to ensure that the name of the configuration information of the resource in the private configuration information is consistent with the name of the configuration information of the resource in the common configuration information, so as to achieve the purposes of configuration coverage and customization.
One embodiment of the present application provides a computer-readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions that is loaded and executed by a processor to implement a resource deployment method as described above.
One embodiment of the present application provides an electronic device, which includes a processor and a memory, where the memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the resource deployment method as described above.
It should be noted that: in the resource deployment apparatus provided in the foregoing embodiment, when performing resource deployment, only the division of each functional module is described as an example, and in practical applications, the function allocation may be completed by different functional modules according to needs, that is, the internal structure of the resource deployment apparatus is divided into different functional modules to complete all or part of the functions described above. In addition, the resource deployment apparatus and the resource deployment method provided in the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description should not be taken as limiting the embodiments of the present application, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the embodiments of the present application should be included in the scope of the embodiments of the present application.
Claims (9)
1. A method for resource deployment, the method comprising:
creating an aggregation application, wherein the aggregation application is obtained by aggregating a plurality of sub-applications, part of configuration information of the plurality of sub-applications is the same, and the configuration information is used for configuring resources;
creating a common resource pool of the aggregated application, wherein the common resource pool is created according to common configuration information, and the common configuration information is obtained by extracting the same configuration information in the plurality of sub-applications;
creating each sub-application, and sending a mapping of the common resource pool to the plurality of sub-applications, wherein the mapping is used for each sub-application to call resources in the common resource pool;
after the sending the mapping of the common resource pool to the sub-application, the method further comprises: acquiring a key of a resource to be searched through the sub-application;
searching the configuration instance of the resource in the common resource pool according to the mapping and the key through the sub-application;
and if the configuration example of the resource is found, calling the configuration example of the resource through the sub-application.
2. The method of claim 1, wherein after said invoking the configuration instance of the resource by the sub-application, the method further comprises:
storing, by the child application, a reference to the configuration instance, the reference for the child application to locally invoke the configuration instance.
3. The method of claim 2, further comprising:
if the reference of the configuration instance is stored through the sub-application, storing the corresponding relation among the key, the reference and the application identifier of the sub-application through the aggregation application;
if the configuration examples in the shared resource pool are updated, searching keys and application identifications corresponding to the references of the configuration examples in the corresponding relation;
and sending an update notification carrying the key to the sub-application indicated by each application identifier, wherein the update notification is used for notifying the sub-application to obtain the configuration instance of the resource corresponding to the key from the common resource pool again.
4. The method of claim 1, wherein prior to said finding, by said sub-application, a configured instance of said resource in said common resource pool according to said mapping and said key, said method further comprises:
if a private resource pool is created by each sub-application, searching a configuration instance of the resource in the private resource pool through the sub-application according to the key;
if the configuration example of the resource is found, calling the configuration example of the resource through the sub-application;
and if the configuration example of the resource is not found, triggering and executing the step of searching the configuration example of the resource in the shared resource pool through the sub-application according to the mapping and the key.
5. The method of any of claims 1 to 4, wherein the creating an aggregated application comprises:
packaging the installation packages of the multiple sub-applications to obtain an aggregation installation package of the aggregation application;
and creating the aggregation application according to the aggregation installation package.
6. The method of claim 5, wherein prior to said creating the common resource pool for the aggregated application, the method further comprises:
acquiring configuration information of corresponding sub-applications from installation packages of the sub-applications;
and extracting the configuration information with the same key and value in all the configuration information to obtain the common configuration information.
7. An apparatus for resource deployment, the apparatus comprising:
the system comprises an application creation module, a resource allocation module and a resource allocation module, wherein the application creation module is used for creating an aggregated application, the aggregated application is obtained by aggregating a plurality of sub-applications, part of configuration information of the plurality of sub-applications is the same, and the configuration information is used for configuring resources;
a resource creating module, configured to create a common resource pool of the aggregated application, where the common resource pool is created according to common configuration information, and the common configuration information is obtained by extracting the same configuration information in the multiple sub-applications;
the resource deployment module is used for creating each sub-application and sending the mapping of the common resource pool to the plurality of sub-applications, wherein the mapping is used for each sub-application to call the resources in the common resource pool;
the device further comprises:
a key obtaining module, configured to obtain, by the sub-application, a key of a resource to be searched after the mapping of the common resource pool is sent to the sub-application;
an instance lookup module, configured to lookup, by the sub-application, a configuration instance of the resource in the common resource pool according to the mapping and the key;
and the instance calling module is used for calling the configuration instance of the resource through the sub-application if the configuration instance of the resource is found.
8. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the resource deployment method as claimed in any one of claims 1 to 6.
9. An electronic device comprising a processor and a memory, the memory having stored therein at least one instruction that is loaded and executed by the processor to implement the resource deployment method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911354119.8A CN111124618B (en) | 2019-12-25 | 2019-12-25 | Resource deployment method, device, storage medium and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911354119.8A CN111124618B (en) | 2019-12-25 | 2019-12-25 | Resource deployment method, device, storage medium and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111124618A CN111124618A (en) | 2020-05-08 |
CN111124618B true CN111124618B (en) | 2022-08-09 |
Family
ID=70502894
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911354119.8A Active CN111124618B (en) | 2019-12-25 | 2019-12-25 | Resource deployment method, device, storage medium and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111124618B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113254234A (en) * | 2021-06-08 | 2021-08-13 | 广东睿江云计算股份有限公司 | Method for creating process |
US20230131643A1 (en) * | 2021-10-26 | 2023-04-27 | Druva Inc. | System and method for reference-aware application identification in container deployment environments |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103916378A (en) * | 2012-12-28 | 2014-07-09 | 中国电信股份有限公司 | System and method for automatically deploying application system in cloud resource pool |
WO2017147800A1 (en) * | 2016-03-02 | 2017-09-08 | 华为技术有限公司 | Resource configuration method, virtualized network function manager and network element management system |
CN110532044A (en) * | 2019-08-26 | 2019-12-03 | 锐捷网络股份有限公司 | A kind of big data batch processing method, device, electronic equipment and storage medium |
-
2019
- 2019-12-25 CN CN201911354119.8A patent/CN111124618B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103916378A (en) * | 2012-12-28 | 2014-07-09 | 中国电信股份有限公司 | System and method for automatically deploying application system in cloud resource pool |
WO2017147800A1 (en) * | 2016-03-02 | 2017-09-08 | 华为技术有限公司 | Resource configuration method, virtualized network function manager and network element management system |
CN110532044A (en) * | 2019-08-26 | 2019-12-03 | 锐捷网络股份有限公司 | A kind of big data batch processing method, device, electronic equipment and storage medium |
Non-Patent Citations (2)
Title |
---|
Using JDBC&the TemplateMethod Pattern for Da-tabase-Access;Reilly K;《JavaDeveloper’s Journa》;20051030;第45-46页 * |
基于资源池的数据访问模式的探讨;葛中泽等;《科学技术与工程》;20121128(第33期);第266-270页 * |
Also Published As
Publication number | Publication date |
---|---|
CN111124618A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109582472B (en) | Micro-service processing method and device | |
CN108572845B (en) | Upgrading method of distributed micro-service cluster and related system | |
US10866841B2 (en) | Communication system and method for accessing and deploying temporary microservices on a heterogeneous platform | |
CN111124618B (en) | Resource deployment method, device, storage medium and equipment | |
CN106331065A (en) | Proxy application for host system with service container and system | |
CN104750555A (en) | Management method and device for progresses in Android program | |
CN109688191B (en) | Traffic scheduling method and communication device | |
CN113973129B (en) | Gateway supporting multiple registry micro services | |
CN104699537A (en) | Program control method, activity module scheduling method and corresponding devices thereof | |
CN111797173B (en) | Alliance chain sharing system, method and device, electronic equipment and storage medium | |
CN108958730A (en) | Application component sharing method and device, terminal device and readable storage medium storing program for executing | |
CN111090495A (en) | Node management method, device, equipment, storage medium and system | |
JP2022550402A (en) | Network resource management method, system, network equipment and readable storage medium | |
KR20230069088A (en) | Container cluster management method and its system | |
CN115086166A (en) | Computing system, container network configuration method, and storage medium | |
CN112529711B (en) | Transaction processing method and device based on block chain virtual machine multiplexing | |
CN112565475B (en) | Ip address allocation method for adding new node in container cluster service layer | |
CN116680209A (en) | WASM-based multi-intelligent contract instance management method | |
CN112256351A (en) | Implementation method of Feign component, micro-service calling method and device | |
CN109660379B (en) | Network method, system and terminal | |
CN115390897A (en) | Method and device for micro front-end management, electronic equipment and storage medium | |
CN114764354A (en) | Dependency management method and device based on PAAS, electronic equipment and medium | |
CN113010206A (en) | Containerization method, system and device for WEB application system | |
CN113703791A (en) | Software deployment method, system, storage medium and equipment | |
CN113918215A (en) | Micro-service configuration system, equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 210000 Longmian Avenue 568, High-tech Park, Jiangning District, Nanjing City, Jiangsu Province Patentee after: Xiaoshi Technology (Jiangsu) Co.,Ltd. Address before: 210000 Longmian Avenue 568, High-tech Park, Jiangning District, Nanjing City, Jiangsu Province Patentee before: NANJING ZHENSHI INTELLIGENT TECHNOLOGY Co.,Ltd. |