CN112910956A - Resource creating method and device and electronic equipment - Google Patents

Resource creating method and device and electronic equipment Download PDF

Info

Publication number
CN112910956A
CN112910956A CN202110053351.9A CN202110053351A CN112910956A CN 112910956 A CN112910956 A CN 112910956A CN 202110053351 A CN202110053351 A CN 202110053351A CN 112910956 A CN112910956 A CN 112910956A
Authority
CN
China
Prior art keywords
resource
application program
target application
server
instruction
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.)
Granted
Application number
CN202110053351.9A
Other languages
Chinese (zh)
Other versions
CN112910956B (en
Inventor
蔡振群
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110053351.9A priority Critical patent/CN112910956B/en
Publication of CN112910956A publication Critical patent/CN112910956A/en
Application granted granted Critical
Publication of CN112910956B publication Critical patent/CN112910956B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides a resource creating method, a resource creating device and electronic equipment, wherein the method comprises the following steps: acquiring data to be sent, wherein the data to be sent comprises: information of a first target application and information of a second target application; uploading data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys a first target application program and a second target application program, and completing installation of a resource creation interface based on deployment of the second target application program; generating a resource creating instruction based on the received function triggering instruction; and creating a resource corresponding to the resource creating instruction in the server to be created through the resource creating interface. The embodiment of the invention can solve the problem that the existing upper application program calling the bottom resource cannot realize remote deployment and further cannot create or utilize the bottom resource in other cloud platforms.

Description

Resource creating method and device and electronic equipment
Technical Field
The invention relates to the technical field of cloud computing, in particular to a resource creating method and device and electronic equipment.
Background
The cloud computing platform is also called as a cloud platform, and is a service based on hardware resources and software resources, and provides computing, network and storage capabilities. Cloud Computing (Cloud Computing) is a kind of distributed Computing, and means that a huge data Computing processing program is decomposed into countless small programs through a network "Cloud", and then the small programs are processed and analyzed by a system composed of a plurality of servers to obtain results, and the results are returned to a user. Cloud computing typically involves providing dynamically scalable and often virtualized resources over the internet. With the development of cloud computing technology, many different types of cloud platforms have emerged.
The types of cloud platforms constructed by different enterprises are often different, each type of cloud platform can create cloud resources according to business requirements, and different types of cloud platforms are completely independent and are respectively responsible for creating the cloud resources of the platforms. For example, an enterprise constructs a cloud computing management platform, further creates corresponding cloud resources according to business requirements, and realizes virtualization of bottom hardware resources based on a related operation mode and a management mode of the constructed cloud computing management platform, so as to provide corresponding services for users and related application programs.
In practical application, because different types of cloud platforms are completely independent, an upper application program for calling bottom resources in the cloud platform can only be deployed in an internal server of the cloud platform, and because the different types of cloud platforms are independently deployed and network isolation exists between the different types of cloud platforms, the upper application program for calling the bottom resources cannot be remotely deployed. In addition, different types of cloud platforms are independently deployed, so that the server in the cloud platform can only provide corresponding services by using the underlying resource of the server, and cannot create or utilize the underlying resources in other cloud platforms.
Disclosure of Invention
The embodiment of the invention aims to provide a resource creating method, a resource creating device and electronic equipment, which are used for solving the problem that remote deployment cannot be realized by an upper application program calling a bottom layer resource, and further the bottom layer resource in other cloud platforms cannot be created or utilized. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a resource creating method, where the method includes:
acquiring data to be transmitted, wherein the data to be transmitted comprises: the information of a first target application program and the information of a second target application program, wherein the first target application program is used for realizing the deployment of the information and the establishment of the resource, and the second target application program is used for finishing the establishment of the resource;
uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and completing installation of a resource creation interface based on deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
generating a resource creating instruction based on the received function triggering instruction;
and creating a resource corresponding to the resource creating instruction in a server to be created through the resource creating interface, wherein the server to be created belongs to any server in the target cloud platform.
Optionally, the step of generating a resource creation instruction based on the received function triggering instruction includes:
displaying a corresponding preset interactive interface based on the received function triggering instruction;
receiving interaction parameters input by a user in the preset interaction interface;
and generating a resource creating instruction based on the interaction parameter.
Optionally, after generating the resource creating instruction, the method further includes:
generating a resource instruction to be created under the running environment of the second target application program based on the resource creating instruction;
the step of creating the resource corresponding to the resource creation instruction in the server to be created through the resource creation interface includes:
and based on the resource instruction to be created, creating a resource corresponding to the resource instruction to be created in the server to be created through the resource creating interface.
Optionally, the data to be sent further includes a preset script file, and the information of the first target application program includes: the installation information and the running environment information of the first target application program, and the information of the second target application program comprises: installation information and operating environment information of a second target application program;
the server to be deployed deploys the first target application program and the second target application program, and completes the installation of the resource creation interface based on the deployment of the second target application program, including:
the server to be deployed completes the deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file;
the server to be deployed completes installation of the first target application program and the second target application program based on the preset script file;
and the server to be deployed completes the installation of the resource creation interface based on the installation of the second target application program.
Optionally, the server to be created is a server corresponding to a server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs a resource creation interface.
In a second aspect, an embodiment of the present invention provides a resource creating apparatus, where the apparatus includes:
an obtaining module, configured to obtain data to be sent, where the data to be sent includes: the information of a first target application program and the information of a second target application program, wherein the first target application program is used for realizing the deployment of the information and the establishment of the resource, and the second target application program is used for finishing the establishment of the resource;
the uploading deployment module is used for uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and the installation of a resource creation interface is completed based on the deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
the first generation module is used for generating a resource creation instruction based on the received function trigger instruction;
and the resource creating module is used for creating a resource corresponding to the resource creating instruction in a server to be created through the resource creating interface, wherein the server to be created belongs to any server in the target cloud platform.
Optionally, the first generating module includes:
the display sub-module is used for displaying the corresponding preset interactive interface based on the received function triggering instruction;
the receiving submodule is used for receiving interaction parameters input by a user in the preset interaction interface;
and the generation submodule is used for generating a resource creation instruction based on the interaction parameter.
Optionally, the apparatus further comprises: a second generation module;
the second generation module is used for generating a resource instruction to be created under the running environment of the second target application program based on the resource creation instruction;
the resource creating module is specifically configured to create, based on the resource instruction to be created, a resource corresponding to the resource instruction to be created in the server to be created through the resource creating interface.
Optionally, the data to be sent further includes a preset script file, and the information of the first target application program includes: the installation information and the running environment information of the first target application program, and the information of the second target application program comprises: installation information and operating environment information of a second target application program;
the upload deployment module comprises:
the first completion submodule is used for completing the deployment of the running environment of the first target application program and the running environment of the second target application program by the server to be deployed based on the preset script file;
the second completion submodule is used for completing the installation of the first target application program and the second target application program by the server to be deployed based on the preset script file;
and the third completion submodule is used for completing the installation of the resource creation interface by the server to be deployed based on the installation of the second target application program.
Optionally, the server to be created is a server corresponding to a server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs a resource creation interface.
In a third aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor, configured to implement the steps of the resource creating method according to the first aspect when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the resource creation method according to the first aspect.
The embodiment of the invention has the following beneficial effects:
according to the resource creating method, the resource creating device and the electronic equipment provided by the embodiment of the invention, data to be sent, including information of a first target application program and information of a second target application program, can be uploaded to a server to be deployed through a target protocol for remotely transmitting a file, so that the server to be deployed in a target cloud platform deploys the first target application program and the second target application program, the remote deployment of the application programs is realized, the installation of a resource creating interface is completed, the creation of remote resources can be realized through the resource creating interface, and the problems that the existing upper layer application program calling bottom layer resources cannot realize the remote deployment, and further bottom layer resources in other cloud platforms cannot be created or utilized are solved. Meanwhile, the creation of resources can be realized between different cloud platforms or servers in a cross-platform internal environment.
Of course, not all of the advantages described above need to be achieved at the same time in the practice of any one product or method of the invention.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a resource creating method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of interaction between an application and a server to be deployed according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of another resource creating method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an embodiment of generating a resource creating instruction according to the present invention;
fig. 5 is a schematic diagram of an implementation manner of application deployment according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a resource creating apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a generating module according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an upload deployment module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The types of the existing cloud platforms constructed by different enterprises are often different, each type of cloud platform can create cloud resources according to business requirements, the different types of cloud platforms are completely independent and are respectively responsible for creating the cloud resources of the platform, and therefore upper-layer application programs calling bottom-layer resources in the cloud platforms can only be deployed in internal servers of the cloud platforms.
Because the different types of cloud platforms are independently deployed and network isolation exists between the different types of cloud platforms, remote deployment cannot be realized by an upper application program calling bottom-layer resources. In addition, different types of cloud platforms are independently deployed, so that the server in the cloud platform can only provide corresponding services by using the underlying resource of the server, and cannot create or utilize the underlying resources in other cloud platforms.
In order to solve the problem that an upper application program calling a bottom resource cannot realize remote deployment and further cannot create or utilize bottom resources in other cloud platforms, an embodiment of the present invention provides a resource creation method, which may include:
acquiring data to be transmitted, wherein the data to be transmitted comprises: the information of a first target application program and the information of a second target application program, wherein the first target application program is used for realizing the deployment of the information and the establishment of the resource, and the second target application program is used for finishing the establishment of the resource;
uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and completing installation of a resource creation interface based on deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
generating a resource creating instruction based on the received function triggering instruction;
and creating a resource corresponding to the resource creating instruction in a server to be created through the resource creating interface, wherein the server to be created belongs to any server in the target cloud platform.
According to the resource creating method provided by the embodiment of the invention, data to be sent, including information of a first target application program and information of a second target application program, can be uploaded to a server to be deployed through a target protocol for remotely transmitting a file, so that the server to be deployed in a target cloud platform deploys the first target application program and the second target application program, the remote deployment of the application programs is realized, the installation of a resource creating interface is completed, the creation of remote resources can be realized through the resource creating interface, and the problems that the existing upper layer application program calling bottom layer resources cannot realize the remote deployment, and further bottom layer resources in other cloud platforms cannot be created or utilized are solved. Meanwhile, the creation of resources can be realized between different cloud platforms or servers in a cross-platform internal environment.
The following describes a resource creation method provided by an embodiment of the present invention in detail:
in the embodiment of the present invention, the execution main body of the resource creation method may be a calling system, and specifically, the calling system may be an application program, and the application program may be placed on any server or electronic device to run so as to implement the resource creation method of the present invention.
As shown in fig. 1, an embodiment of the present invention provides a resource creating method, which may include the following steps:
s101, acquiring data to be transmitted.
In the embodiment of the present invention, a system or a first target application is called, and information of the system or the first target application and information of a second target application can be packaged, so that a compressed packet obtained by packaging is used as data to be sent. The data to be transmitted may include: the information of the first target application program and the information of the second target application program, wherein the first target application program is used for realizing the deployment of the information and the creation of the resource, and the second target application program is used for completing the creation of the resource. Specifically, the information of the first target application may include: the installation information and the execution environment information of the first target application, and the information of the second target application may include: installation information and execution environment information of the second target application.
In the embodiment of the invention, the first target application program can interact with a user and also can interact with the second target application program so as to realize remote deployment of any application program and creation of remote resources. For example, the first target Application may be an APP (Application) or the like developed by a developer to implement deployment of information and resource creation. The second target application may be an application tool for completing resource creation, such as a Terraform tool, a Chef tool, a Puppet tool, an interactive tool, a SaltStack tool, or a CloudFormation tool, among others.
In the embodiment of the present invention, a second target application is exemplified as a terra tool, and terra is a tool for safely and effectively constructing, changing, and versioning an infrastructure, and is used for safely and efficiently provisioning and managing a cloud infrastructure and supporting multiple cloud service providers. The resource to be managed can be defined in the template in the form of code, and the required resource management can be automatically completed by analyzing and executing the template.
S102, uploading data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys a first target application program and a second target application program, and installing a resource creation interface is completed based on the deployment of the second target application program.
In the embodiment of the invention, the data to be sent can be uploaded to the server to be deployed in the target cloud platform through the target protocol, so that the server to be deployed can deploy the first target application program and the second target application program contained in the data to be sent, and the installation of the resource creation interface is completed based on the deployment of the second target application program. Wherein the target protocol represents a protocol for remote transfer of files.
In practical application, the data to be sent is uploaded to the server to be deployed in the target cloud platform through the target protocol, which may be executed by the first target application program, or the user directly uploads the data to be sent to the server to be deployed in the target cloud platform through the target protocol.
As an optional implementation manner of the embodiment of the present invention, the target Protocol may be an SFTP (secure File Transfer Protocol) Protocol. The SFTP protocol enables operations such as "remote file acquisition, file content transfer, file management", etc., the transfer of its control signals and data signals being performed via a secure data channel.
Illustratively, the first target application program may package information of the first target application program and information of the second target application program to obtain a jar-formatted compressed file, and then upload the jar-formatted compressed file to a to-be-deployed server in the target cloud platform through an SFTP protocol, where the to-be-deployed server receives the jar-formatted compressed file, decompresses the compressed file, then deploys the decompressed first target application program and the decompressed second target application program, and completes installation of the resource creation interface based on deployment of the second target application program. As shown in fig. 2, fig. 2 is a schematic diagram of interaction between an application program and a server to be deployed.
In the embodiment of the invention, a first target application program and a second target application program are deployed in a server to be deployed of a target cloud platform so as to trigger the running of the first target application program in the server to be deployed, and the installation of a resource creation interface is completed on the basis of the deployment of the second target application program, so that the resource can be created in any server in the target cloud platform through the resource creation interface.
S103, generating a resource creating instruction based on the received function triggering instruction.
In the embodiment of the invention, after receiving a triggering instruction of a user for a resource creating function, a first target application program can output or display a corresponding interactive interface, and further receive an interactive parameter input by the user through the interactive interface to generate a corresponding resource creating instruction, wherein the resource creating instruction can include parameter information and the like related to resources to be created.
And S104, creating a resource corresponding to the resource creating instruction in the server to be created through the resource creating interface.
And based on the parameter information contained in the generated resource creating instruction, creating a resource corresponding to the resource creating instruction in the server to be created through the installed resource creating interface. The server to be created can be any server belonging to the target cloud platform.
For example, the generated resource creation instruction may be to create a virtual host in the server to be created, and the parameter information included in the resource creation instruction may include: the size of the host's memory, available resources, flexible bandwidth resources, participating cloud computing resources, and so on. Correspondingly, the resources created in the server to be created include: virtual hosts, memory size of the host, available resources, flexible bandwidth resource size, participating cloud computing resource size, and the like.
As an optional implementation manner of the embodiment of the present invention, the server to be created may be a server corresponding to a server identifier carried in the resource creation instruction, or a server specified when the resource creation interface is installed on the server to be deployed.
In the embodiment of the present invention, the server to be created may input the identifier corresponding to the server to be created in the interactive interface after the user triggers the resource creation function instruction, and the generated resource creation instruction carries the server identifier, where the server to be created is the server corresponding to the server identifier carried in the resource creation instruction. The server to be created may also be a server designated when the resource creation interface is installed after the second target application program is deployed for the server to be deployed.
In the embodiment of the present invention, the resource creation interface installed in the server to be deployed of the target cloud platform may be used to create a resource in any server in the target cloud platform.
According to the resource creating method provided by the embodiment of the invention, data to be sent, including information of a first target application program and information of a second target application program, can be uploaded to a server to be deployed through a target protocol for remotely transmitting a file, so that the server to be deployed in a target cloud platform deploys the first target application program and the second target application program, the remote deployment of the application programs is realized, the installation of a resource creating interface is completed, the creation of remote resources can be realized through the resource creating interface, and the problems that the existing upper layer application program calling bottom layer resources cannot realize the remote deployment, and further bottom layer resources in other cloud platforms cannot be created or utilized are solved. Meanwhile, the creation of resources can be realized between different cloud platforms or servers in a cross-platform internal environment.
As shown in fig. 3, another resource creation method provided in the embodiment of the present invention may include the following steps:
s201, acquiring data to be transmitted.
The data to be sent comprises: the information of the first target application program and the information of the second target application program, wherein the first target application program is used for realizing the deployment of the information and the creation of the resource, and the second target application program is used for completing the creation of the resource.
S202, uploading the data to be sent to a server to be deployed in the target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and completing installation of the resource creation interface based on deployment of the second target application program.
Wherein the target protocol represents a protocol for remote transfer of files;
s203, based on the received function triggering instruction, generating a resource creating instruction.
The implementation process of steps S201 to S203 may be the same as steps S101 to S103, and the embodiment of the present invention is not described herein again.
And S204, generating a resource instruction to be created under the running environment of the second target application program based on the resource creating instruction.
In the embodiment of the present invention, after the resource creating instruction is generated, the resource instruction to be created may be generated and started in the operating environment of the second target application. For example, the second target application is terramorm, and after the resource creation instruction is generated, the terramorm command may be executed in the running environment of terramorm, that is, a resource instruction to be created is generated and started, which is to be understood as a command of the resource creation instruction in the running environment of terramorm.
S205, based on the resource instruction to be created, creating a resource corresponding to the resource instruction to be created in the server to be created through the resource creating interface.
And executing the Terraform command in the Terraform operating environment, and further creating a resource corresponding to the resource instruction to be created in the server to be created through the installed resource creating interface. Taking the second target application as a Terraform tool for example, the installed resource creation interface may be Terraform providers. The term programs are backend drivers that can directly interact with an Open API (Application Programming Interface), and may be used as an Interface for creating resources by any server in the target cloud platform.
In the embodiment of the present invention, the server to be created may input the identifier corresponding to the server to be created in the interactive interface after the user triggers the resource creation function instruction, and the generated resource creation instruction carries the server identifier, where the server to be created is the server corresponding to the server identifier carried in the resource creation instruction. The server to be created may also be a server designated when the resource creation interface is installed after the second target application program is deployed for the server to be deployed.
According to the resource creating method provided by the embodiment of the invention, data to be sent, including information of a first target application program and information of a second target application program, can be uploaded to a server to be deployed through a target protocol for remotely transmitting a file, so that the server to be deployed in a target cloud platform deploys the first target application program and the second target application program, the remote deployment of the application programs is realized, the installation of a resource creating interface is completed, the creation of remote resources can be realized through the resource creating interface, and the problems that the existing upper layer application program calling bottom layer resources cannot realize the remote deployment, and further bottom layer resources in other cloud platforms cannot be created or utilized are solved. Meanwhile, the creation of resources can be realized between different cloud platforms or servers in a cross-platform internal environment.
As shown in fig. 4, an embodiment of the present invention provides an implementation manner of generating a resource creating instruction, where the implementation manner may include the following steps:
s301, displaying a corresponding preset interactive interface based on the received function triggering instruction.
In the embodiment of the present invention, the first target application may interact with a user, for example, the first target application may be a web browser or a web shopping APP, and the like.
The first target application program receives a function trigger instruction of a user, where the function trigger may be a trigger for a resource creation function or a trigger for another function. After receiving a triggering instruction of the resource creation function from the user, the first target application program may output or display a corresponding interactive interface, so that the user may input parameters of a desired interaction in the interactive interface.
S302, receiving interaction parameters input by a user in a preset interaction interface.
S303, generating a resource creating instruction based on the interaction parameter.
The first target application program receives interaction parameters input by a user in an interaction interface, and then generates a corresponding resource creating instruction based on the interaction parameters.
For example, to facilitate understanding, a shopping APP is taken as an example for explanation, the shopping APP receives interaction parameters such as a commodity type, a commodity quantity, a receiving address, a contact way, special requirements and the like input by a user on an interaction interface, and further generates a corresponding transaction instruction, and the transaction instruction may include instructions of generating a transaction order, reducing inventory, returning transaction success and the like.
In the embodiment of the invention, after receiving the triggering instruction of the user for the resource creating function, the first target application program provides the corresponding interactive interface, so that the user can input the specific parameters of the resources to be created on the interactive interface, and further generate the corresponding resource creating instruction, and the resource creating process is more humanized.
In this embodiment of the present invention, the data to be sent may further include a preset script file, and the information of the first target application program in the data to be sent may include: installation information and execution environment information of the first target application, and the like, and the information of the second target application may include: installation information and execution environment information of the second target application, and the like.
As shown in fig. 5, an embodiment of the present invention provides an implementation of application deployment, which may include the following steps:
s401, the server to be deployed completes deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file.
In the embodiment of the invention, the server to be deployed receives the data to be sent, and then decompresses the compressed packet corresponding to the data to be sent to obtain the information of the first target application program and the information of the second target application program contained in the data to be sent, and further, based on the preset script file, automatically completes the deployment of the running environment of the first target application program and the running environment of the second target application program.
Illustratively, the preset script file may be a shell script file. The shell script file is a program file which can put various commands into a file in advance and is convenient to execute at one time.
S402, the server to be deployed completes installation of the first target application program and the second target application program based on the preset script file.
In the embodiment of the invention, the server to be deployed receives the data to be sent, and then decompresses the compressed packet corresponding to the data to be sent to obtain the information of the first target application program and the information of the second target application program contained in the data to be sent, and further, based on the preset script file, automatically completes the installation of the first target application program and the second target application program, and further triggers the operation of the first target application program.
In practical applications, the installation information of the second target application program may be an installation package of the second target application program, or download address information of the installation package of the second target application program. If the installation package is the installation package of the second target application program, directly completing the installation of the second target application program; and if the second target application program installation package is the downloading address information of the second target application program installation package, automatically completing the downloading and installation of the second target application program installation package.
S403, the server to be deployed completes installation of the resource creation interface based on installation of the second target application program.
In the embodiment of the invention, the server to be deployed automatically completes the installation of the resource creation interface after completing the installation of the second target application program.
Illustratively, the second target application is terrafrorm, and the server to be deployed automatically installs Terraform providers after completing the installation of the terrafrorm, where the Terraform providers may be used as an interface for any server in the target cloud platform to create resources.
In the embodiment of the invention, the resource to be managed can be defined in the template in a code form by the Terraform, and the required resource management is automatically completed by analyzing and executing the template. And the server to be deployed can automatically complete the deployment of the first target application program and the second target application program based on the preset script file contained in the received data to be sent without manual deployment.
For example, a first target application (or a developer or an operation and maintenance worker) in the cloud platform a may send corresponding data to be sent (including information of the first target application and information of a second target application) to a server to be deployed in the cloud platform B through an SFTP protocol, and then the server to be deployed in the cloud platform B may automatically complete deployment of the first target application and the second target application (terrafrorm) included in the data to be sent based on a preset script file included in the received data to be sent, and install terrform providers, thereby implementing cross-platform automatic remote deployment of the applications.
When a first target application program in the cloud platform A receives a resource creation function trigger of a user, a corresponding interactive interface is displayed, an interactive parameter input by the user in the interactive interface is further received, a corresponding resource creation instruction is generated based on the interactive parameter, a Terraform command is executed under the running environment of Terraform, and then resources corresponding to the resource creation instruction are created in a server to be created in the cloud platform B through the installed Terraform providers, so that the creation of cross-platform bottom-layer resources is realized.
Corresponding to the method embodiment, the embodiment of the invention also provides a corresponding device embodiment.
As shown in fig. 6, an embodiment of the present invention provides a resource creating apparatus, which may include:
an obtaining module 501, configured to obtain data to be sent, where the data to be sent includes: the information of the first target application program and the information of the second target application program, wherein the first target application program is used for realizing the deployment of the information and the creation of the resource, and the second target application program is used for completing the creation of the resource.
The upload deployment module 502 is configured to upload data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys a first target application program and a second target application program, and completes installation of a resource creation interface based on deployment of the second target application program, where the target protocol represents a protocol for remotely transmitting a file.
A first generating module 503, configured to generate a resource creating instruction based on the received function triggering instruction.
The resource creating module 504 is configured to create a resource corresponding to the resource creating instruction in a server to be created through the resource creating interface, where the server to be created belongs to any server in the target cloud platform.
The resource creation device provided by the embodiment of the invention can upload data to be sent, including information of a first target application program and information of a second target application program, to a server to be deployed through a target protocol for remotely transmitting a file, so that the server to be deployed in a target cloud platform deploys the first target application program and the second target application program, remote deployment of the application programs is realized, installation of a resource creation interface is completed, remote resource creation can be realized through the resource creation interface, and the problem that remote deployment cannot be realized by an upper-layer application program calling a bottom-layer resource and further bottom-layer resources in other cloud platforms cannot be created or utilized is solved. Meanwhile, the creation of resources can be realized between different cloud platforms or servers in a cross-platform internal environment.
Alternatively, as shown in fig. 7, the first generating module 503 may include:
and the display sub-module 601 is configured to display the corresponding preset interactive interface based on the received function triggering instruction.
The receiving submodule 602 is configured to receive an interaction parameter input by a user in a preset interaction interface.
The generating sub-module 603 is configured to generate a resource creating instruction based on the interaction parameter.
Optionally, the apparatus may further include: a second generation module (not shown).
And the second generation module is used for generating a resource instruction to be created under the running environment of the second target application program based on the resource creation instruction.
The resource creating module 504 is specifically configured to create, based on the resource instruction to be created, a resource corresponding to the resource instruction to be created in the server to be created through the resource creating interface.
Optionally, the data to be sent further includes a preset script file, and the information of the first target application includes: the installation information and the running environment information of the first target application program, and the information of the second target application program comprises: installation information and execution environment information of the second target application.
As shown in fig. 8, the upload deployment module 502 may include:
the first completing submodule 701 is configured to complete deployment of the operating environment of the first target application program and the operating environment of the second target application program by the server to be deployed based on the preset script file.
The second completing submodule 702 is configured to complete installation of the first target application program and the second target application program by the server to be deployed based on the preset script file.
The third completing sub-module 703 is configured to complete the installation of the resource creating interface based on the installation of the second target application by the server to be deployed.
Optionally, the server to be created is a server corresponding to a server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs the resource creation interface.
An embodiment of the present invention further provides an electronic device, as shown in fig. 9, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the steps of any of the above-described resource creation methods when executing the program stored in the memory 803.
According to the electronic device provided by the embodiment of the invention, data to be sent, including information of a first target application program and information of a second target application program, can be uploaded to a server to be deployed through a target protocol for remotely transmitting a file, so that the server to be deployed in a target cloud platform deploys the first target application program and the second target application program, remote deployment of the application programs is realized, installation of a resource creation interface is completed, remote resource creation can be realized through the resource creation interface, and the problems that remote deployment cannot be realized by an upper-layer application program calling a bottom-layer resource and bottom-layer resources in other cloud platforms cannot be created or utilized are solved. Meanwhile, the creation of resources can be realized between different cloud platforms or servers in a cross-platform internal environment.
The communication bus mentioned in the electronic device may be a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a RAM (Random Access Memory) or an NVM (Non-Volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a DSP (Digital Signal Processing), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
In yet another embodiment provided by the present invention, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any one of the above-mentioned resource creation methods.
The computer-readable storage medium provided by the embodiment of the invention can upload data to be sent, which includes information of a first target application program and information of a second target application program, to a server to be deployed through a target protocol for remotely transmitting a file, so that the server to be deployed in a target cloud platform deploys the first target application program and the second target application program, thereby realizing remote deployment of the application programs, completing installation of a resource creation interface, further realizing creation of remote resources through the resource creation interface, and solving the problem that the existing upper layer application program calling bottom layer resources cannot realize remote deployment, and further cannot create or utilize bottom layer resources in other cloud platforms. Meanwhile, the creation of resources can be realized between different cloud platforms or servers in a cross-platform internal environment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored on a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber, DSL (Digital Subscriber Line)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD (Digital Versatile Disk)), or a semiconductor medium (e.g., an SSD (Solid State Disk)), etc.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device/electronic apparatus embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to some descriptions of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A method for resource creation, the method comprising:
acquiring data to be transmitted, wherein the data to be transmitted comprises: the information of a first target application program and the information of a second target application program, wherein the first target application program is used for realizing the deployment of the information and the establishment of the resource, and the second target application program is used for finishing the establishment of the resource;
uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and completing installation of a resource creation interface based on deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
generating a resource creating instruction based on the received function triggering instruction;
and creating a resource corresponding to the resource creating instruction in a server to be created through the resource creating interface, wherein the server to be created belongs to any server in the target cloud platform.
2. The method of claim 1, wherein the step of generating a resource creation instruction based on the received function triggering instruction comprises:
displaying a corresponding preset interactive interface based on the received function triggering instruction;
receiving interaction parameters input by a user in the preset interaction interface;
and generating a resource creating instruction based on the interaction parameter.
3. The method of claim 2, wherein after generating the resource creation instruction, the method further comprises:
generating a resource instruction to be created under the running environment of the second target application program based on the resource creating instruction;
the step of creating the resource corresponding to the resource creation instruction in the server to be created through the resource creation interface includes:
and based on the resource instruction to be created, creating a resource corresponding to the resource instruction to be created in the server to be created through the resource creating interface.
4. The method according to any one of claims 1 to 3, wherein the data to be sent further includes a preset script file, and the information of the first target application program includes: the installation information and the running environment information of the first target application program, and the information of the second target application program comprises: installation information and operating environment information of a second target application program;
the server to be deployed deploys the first target application program and the second target application program, and completes the installation of the resource creation interface based on the deployment of the second target application program, including:
the server to be deployed completes the deployment of the running environment of the first target application program and the running environment of the second target application program based on the preset script file;
the server to be deployed completes installation of the first target application program and the second target application program based on the preset script file;
and the server to be deployed completes the installation of the resource creation interface based on the installation of the second target application program.
5. The method according to claim 4, wherein the server to be created is a server corresponding to a server identifier carried in the resource creation instruction, or a server designated when the server to be deployed installs a resource creation interface.
6. An apparatus for resource creation, the apparatus comprising:
an obtaining module, configured to obtain data to be sent, where the data to be sent includes: the information of a first target application program and the information of a second target application program, wherein the first target application program is used for realizing the deployment of the information and the establishment of the resource, and the second target application program is used for finishing the establishment of the resource;
the uploading deployment module is used for uploading the data to be sent to a server to be deployed in a target cloud platform through a target protocol, so that the server to be deployed deploys the first target application program and the second target application program, and the installation of a resource creation interface is completed based on the deployment of the second target application program, wherein the target protocol represents a protocol for remotely transmitting files;
the first generation module is used for generating a resource creation instruction based on the received function trigger instruction;
and the resource creating module is used for creating a resource corresponding to the resource creating instruction in a server to be created through the resource creating interface, wherein the server to be created belongs to any server in the target cloud platform.
7. The apparatus of claim 6, wherein the first generating module comprises:
the display sub-module is used for displaying the corresponding preset interactive interface based on the received function triggering instruction;
the receiving submodule is used for receiving interaction parameters input by a user in the preset interaction interface;
and the generation submodule is used for generating a resource creation instruction based on the interaction parameter.
8. The apparatus of claim 7, further comprising: a second generation module;
the second generation module is used for generating a resource instruction to be created under the running environment of the second target application program based on the resource creation instruction;
the resource creating module is specifically configured to create, based on the resource instruction to be created, a resource corresponding to the resource instruction to be created in the server to be created through the resource creating interface.
9. The apparatus according to any one of claims 6-8, wherein the data to be sent further includes a preset script file, and the information of the first target application includes: the installation information and the running environment information of the first target application program, and the information of the second target application program comprises: installation information and operating environment information of a second target application program;
the upload deployment module comprises:
the first completion submodule is used for completing the deployment of the running environment of the first target application program and the running environment of the second target application program by the server to be deployed based on the preset script file;
the second completion submodule is used for completing the installation of the first target application program and the second target application program by the server to be deployed based on the preset script file;
and the third completion submodule is used for completing the installation of the resource creation interface by the server to be deployed based on the installation of the second target application program.
10. The apparatus according to claim 9, wherein the server to be created is a server corresponding to a server identifier carried in the resource creation instruction, or a server specified when a resource creation interface is installed in the server to be deployed.
11. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202110053351.9A 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment Active CN112910956B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110053351.9A CN112910956B (en) 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110053351.9A CN112910956B (en) 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN112910956A true CN112910956A (en) 2021-06-04
CN112910956B CN112910956B (en) 2023-05-02

Family

ID=76114449

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110053351.9A Active CN112910956B (en) 2021-01-15 2021-01-15 Resource creation method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112910956B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377346A (en) * 2021-06-10 2021-09-10 北京滴普科技有限公司 Integrated environment building method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170177334A1 (en) * 2015-12-16 2017-06-22 International Business Machines Corporation Generating and managing applications using any number of different platforms
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
WO2018161799A1 (en) * 2017-03-08 2018-09-13 中兴通讯股份有限公司 Cloud application deployment method and system
CN109547509A (en) * 2017-09-22 2019-03-29 华为技术有限公司 A kind of method and system of cross-platform deployment
CN109687987A (en) * 2017-10-19 2019-04-26 北京金山云网络技术有限公司 A kind of cloud platform dispositions method, device, electronic equipment and readable storage medium storing program for executing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170177334A1 (en) * 2015-12-16 2017-06-22 International Business Machines Corporation Generating and managing applications using any number of different platforms
CN107493310A (en) * 2016-06-13 2017-12-19 腾讯科技(深圳)有限公司 A kind of cloud resource processing method and cloud management platform
WO2018161799A1 (en) * 2017-03-08 2018-09-13 中兴通讯股份有限公司 Cloud application deployment method and system
CN109547509A (en) * 2017-09-22 2019-03-29 华为技术有限公司 A kind of method and system of cross-platform deployment
CN109687987A (en) * 2017-10-19 2019-04-26 北京金山云网络技术有限公司 A kind of cloud platform dispositions method, device, electronic equipment and readable storage medium storing program for executing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113377346A (en) * 2021-06-10 2021-09-10 北京滴普科技有限公司 Integrated environment building method and device, electronic equipment and storage medium
CN113377346B (en) * 2021-06-10 2023-01-31 北京滴普科技有限公司 Integrated environment building method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN112910956B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US10430172B2 (en) Re-configuration in cloud computing environments
US9529630B1 (en) Cloud computing platform architecture
US11816464B1 (en) Cloud computing platform architecture
CN109525584B (en) Method for constructing mobile end cross-platform multi-type application container
US9268546B2 (en) Deployment and hosting of platform independent applications
US10404568B2 (en) Agent manager for distributed transaction monitoring system
US11327724B2 (en) System and method that support application software development
WO2019029451A1 (en) Method for publishing mobile applications and electronic apparatus
WO2023093197A1 (en) Application management method and related system
CN117337429A (en) Deploying a machine learning model
CN113127361A (en) Application program development method and device, electronic equipment and storage medium
CN112235132A (en) Method, device, medium and server for dynamically configuring service
CN113468067B (en) Application program debugging method and device, electronic equipment and computer readable medium
CN113312168A (en) Page access method and electronic equipment
CN112910956B (en) Resource creation method and device and electronic equipment
US10073689B2 (en) Managing application lifecycles within a federation of distributed software applications
CN112115056A (en) Project deployment method and device, server and storage medium
CN112394907A (en) Container-based delivery system construction method, application delivery method and delivery system
CN115080109A (en) Multi-cloud-end environment joint debugging method, device, system and equipment based on hybrid development
CN113505036B (en) Application monitoring method, client and server
US12039473B2 (en) Software development project infrastructure builder tool
US11425203B2 (en) Commissioning a virtualized network function
CN113064827A (en) Test platform deployment method, device, equipment and storage medium
KR101553539B1 (en) Dynamic link providing method and computer readable storage medium for program therefor
CN113765983A (en) Site service deployment method and device

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