Disclosure of Invention
The embodiment of the invention aims to solve the technical problem of how to reduce the complexity of a cloud server using mode by providing a control method and device of a cloud server and a computer readable storage medium.
The embodiment of the invention provides a control method of a cloud server, which is applied to a control device of the cloud server, wherein the control device of the cloud server comprises an ultrasonic probe and a mechanical arm, and the method comprises the following steps:
When an opening request of a cloud server is received, determining the type of the server and the opening duration according to the opening request;
acquiring a target application program corresponding to the server type according to the opening duration;
installing the target application program to an idle cloud server to obtain a target cloud server;
And sending the login verification information of the target cloud server to the client corresponding to the opening request.
In an embodiment, before the step of determining the server type and the duration of opening according to the opening request when the opening request of the cloud server is received, the method further includes:
acquiring application program downloading records of all cloud servers;
generating a server type database according to the application program downloading record, wherein the server type database stores the association relation between a preset server type and a preset application program;
the step of obtaining the target application program corresponding to the server type according to the opening duration comprises the following steps:
and traversing the server type database according to the server type when the opening duration is lower than a preset duration to obtain the target application program.
In one embodiment, the step of generating a server type database from the application download record includes:
Determining the download similarity of each cloud server according to the application program download record;
Determining similar application programs downloaded by the cloud server, wherein the downloading similarity reaches a preset similarity;
Determining the preset application program according to the downloading times of the similar application programs;
determining the preset server type according to the application program type of the preset application program;
and associating the preset application type with the server type in a preset server type database.
In an embodiment, the step of obtaining the target application program corresponding to the server type according to the activation time period includes:
when the opening duration is lower than a preset duration, determining whether the server type is a preset type;
requesting to specify an application program name to be downloaded when the server type is a preset type;
when the application program name is received, acquiring a main application program associated with the application program name, and acquiring an auxiliary application program associated with the main application program;
and taking the main application program and the auxiliary application program as the target application program.
In an embodiment, after the step of requesting to specify the name of the application program when the server type is a preset type, the method further includes:
and when receiving an instruction for rejecting the specification, acquiring the target application program associated with the server type.
In an embodiment, after the step of sending the login verification information of the target cloud server to the client corresponding to the provisioning request, the method further includes:
when receiving an application program downloading request, determining an application program to be downloaded according to the application program downloading request;
determining whether an installation package corresponding to the program to be downloaded is stored;
And if the installation package exists, installing the installation package on the target cloud server.
In an embodiment, after the step of determining whether the installation package corresponding to the program to be downloaded is stored, the method further includes:
If not, outputting the prompting information of the manual examination.
In an embodiment, after the step of sending the login verification information of the target cloud server to the client corresponding to the provisioning request, the method further includes:
and recording the service life of the target cloud server, and outputting prompt information for requesting renewal when the service life is lower than a preset period.
The embodiment of the invention also provides a control device of the cloud server, which comprises: the cloud server comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes each step of the control method of the cloud server when executing the computer program.
Embodiments of the present invention also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the control method of a cloud server as described above.
In the technical scheme of the embodiment, when receiving an opening request of a cloud server, a control device of the cloud server determines a server type and opening duration according to the opening request; acquiring a target application program corresponding to the server type according to the opening duration; installing the target application program to an idle cloud server to obtain a target cloud server; and sending the login verification information of the target cloud server to the client corresponding to the opening request. When receiving the opening request of the cloud server, the control device of the cloud server can determine that the user wants to use the target application program to be opened of the cloud server in a short period according to the type of the server and the opening time carried by the opening request, then install the target application program to the idle server, finally take the idle server with the target application program as the target server, enable login verification information of the target server to be generated to a client of the user, enable the user to directly use the target application program when using the login verification information, and reduce complexity of a use mode of the cloud server in a short period scene.
Detailed Description
In order that the above-described aspects may be better understood, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is as follows: when receiving an opening request of a cloud server, a control device of the cloud server determines the type of the server and the opening duration according to the opening request; acquiring a target application program corresponding to the server type according to the opening duration; installing the target application program to an idle cloud server to obtain a target cloud server; and sending the login verification information of the target cloud server to the client corresponding to the opening request. When receiving the opening request of the cloud server, the control device of the cloud server can determine that the user wants to use the target application program to be opened of the cloud server in a short period according to the type of the server and the opening time carried by the opening request, then install the target application program to the idle server, finally take the idle server with the target application program as the target server, enable login verification information of the target server to be generated to a client of the user, enable the user to directly use the target application program when using the login verification information, and reduce complexity of a use mode of the cloud server in a short period scene.
As an implementation manner, the control device of the cloud server may be as shown in fig. 1.
The embodiment of the invention relates to a control device of a cloud server, which comprises: a processor 101, such as a CPU, a memory 102, and a communication bus 103. Wherein the communication bus 103 is used to enable connected communication among the components.
The memory 102 may be a high-speed RAM memory or a stable memory (non-volatilememory), such as a disk memory. As shown in fig. 1, a detection program may be included in the memory 103 as a computer-readable storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
When an opening request of a cloud server is received, determining the type of the server and the opening duration according to the opening request;
acquiring a target application program corresponding to the server type according to the opening duration;
installing the target application program to an idle cloud server to obtain a target cloud server;
And sending the login verification information of the target cloud server to the client corresponding to the opening request.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
acquiring application program downloading records of all cloud servers;
generating a server type database according to the application program downloading record, wherein the server type database stores the association relation between a preset server type and a preset application program;
the step of obtaining the target application program corresponding to the server type according to the opening duration comprises the following steps:
and traversing the server type database according to the server type when the opening duration is lower than a preset duration to obtain the target application program.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
Determining the download similarity of each cloud server according to the application program download record;
Determining similar application programs downloaded by the cloud server, wherein the downloading similarity reaches a preset similarity;
Determining the preset application program according to the downloading times of the similar application programs;
determining the preset server type according to the application program type of the preset application program;
and associating the preset application type with the server type in a preset server type database.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
when the opening duration is lower than a preset duration, determining whether the server type is a preset type;
requesting to specify an application program name to be downloaded when the server type is a preset type;
when the application program name is received, acquiring a main application program associated with the application program name, and acquiring an auxiliary application program associated with the main application program;
and taking the main application program and the auxiliary application program as the target application program.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
and when receiving an instruction for rejecting the specification, acquiring the target application program associated with the server type.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
when receiving an application program downloading request, determining an application program to be downloaded according to the application program downloading request;
determining whether an installation package corresponding to the program to be downloaded is stored;
And if the installation package exists, installing the installation package on the target cloud server.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
If not, outputting the prompting information of the manual examination.
In one embodiment, the processor 101 may be configured to invoke a computer program stored in the memory 102 and perform the following operations:
and recording the service life of the target cloud server, and outputting prompt information for requesting renewal when the service life is lower than a preset period.
In the technical scheme of the embodiment, when receiving an opening request of a cloud server, a control device of the cloud server determines a server type and opening duration according to the opening request; acquiring a target application program corresponding to the server type according to the opening duration; installing the target application program to an idle cloud server to obtain a target cloud server; and sending the login verification information of the target cloud server to the client corresponding to the opening request. When receiving the opening request of the cloud server, the control device of the cloud server can determine that the user wants to use the target application program to be opened of the cloud server in a short period according to the type of the server and the opening time carried by the opening request, then install the target application program to the idle server, finally take the idle server with the target application program as the target server, enable login verification information of the target server to be generated to a client of the user, enable the user to directly use the target application program when using the login verification information, and reduce complexity of a use mode of the cloud server in a short period scene.
In order to better understand the above technical solutions, the following detailed description will refer to the accompanying drawings and specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of a control method of a cloud server according to the present invention, the method includes the following steps:
Step S10, when an opening request of a cloud server is received, determining the type of the server and the opening duration according to the opening request.
The cloud server is also called a computing unit. The computing unit, that is to say the server, can only calculate the brain of a person, and is equivalent to the CPU of a common computer, and the resources inside the computer are limited. The cloud server is upgraded, and other software which consumes computing unit resources is deployed on the corresponding cloud service. For example databases have specialized cloud database services, static web pages and pictures have specialized file storage services.
In this embodiment, the request for opening the cloud server is initiated by a user, and specifically, the user sends the request for opening the cloud server to the control device of the cloud server through the client, where the types of the client include, but are not limited to, mobile terminals, computers, advertisement machines, and other intelligent terminals.
Step S20, obtaining a target application program corresponding to the server type according to the opening duration.
In this embodiment, different server types are preset with corresponding application programs, for example: for the type of the temporary office server, a certain amount of document editing software is preset; for the server type of the on-hook game, a certain amount of game auxiliary software is preset. The opening duration is used for judging whether the user uses the cloud server for a short period. And executing and acquiring a target application program corresponding to the server type when the opening duration is judged to be lower than the preset duration and the user is judged to use the cloud server for a short period. Specifically, the activation duration refers to a duration that the user wants to activate the cloud server, for example: the user A pays the X amount to request to start a cloud server for 12 hours, and selects a temporary office service, and a control device of the cloud server takes a preset application program corresponding to the type of the temporary office server as a target application program; and the user B pays the Y amount to request to start the cloud server for 12 hours, and selects the game on-hook service, and the control device of the cloud server takes a preset application program corresponding to the type of the server on which the game is on hook as a target application program.
Optionally, when the opening duration is less than a preset duration, determining whether the user is a common user, and when the user is a common user, determining the target application program according to the association relationship between the common user and a preset application program and the server type. And determining a common user in advance according to the opening times of the user, and generating the association relation between the common user and a preset application program. Specifically, when the user a opens the cloud server for 10 times and is in an opening mode with a short period, the user a is set as a common user, a preset application program associated with the user is determined based on an application program downloading record of the cloud server for 10 times opened by the user, and when the opening duration carried by an opening request is determined to meet the condition of acquiring the target application program, the target application program is further screened out from the preset application program associated with the common user according to the server type.
And step S30, installing the target application program to an idle cloud server to obtain a target cloud server.
In this embodiment, the control device of the cloud server controls a cloud server cluster, wherein an idle server is one of the server clusters, and when a target application program corresponding to a server type is determined, one idle cloud server is selected from the cloud service clusters, and the target application program is installed to the idle cloud server, so as to obtain a target cloud server for serving a user.
And step S40, the login verification information of the target cloud server is sent to the client corresponding to the opening request.
In this embodiment, the login verification information is used to verify whether the user can login to the target cloud server, and when the target cloud server is determined, the login verification information corresponding to the cloud server is obtained, and then the login verification information is sent to the client that initiates the activation request, and when the user receives the login verification information, the user can be used to actively initiate the request of logging to the target server.
Optionally, the service life of the target cloud server is recorded, and when the service life is lower than a preset period, prompt information for requesting renewal is output. In consideration of the specificity of the cloud service, the cloud server performs formatting processing at the end of the service life, so that if the early warning function of the curve is used, the early warning function can play a role in warning the user.
In the technical scheme of the embodiment, when receiving an opening request of a cloud server, a control device of the cloud server determines a server type and opening duration according to the opening request; acquiring a target application program corresponding to the server type according to the opening duration; installing the target application program to an idle cloud server to obtain a target cloud server; and sending the login verification information of the target cloud server to the client corresponding to the opening request. When receiving the opening request of the cloud server, the control device of the cloud server can determine that the user wants to use the target application program to be opened of the cloud server in a short period according to the type of the server and the opening time carried by the opening request, then install the target application program to the idle server, finally take the idle server with the target application program as the target server, enable login verification information of the target server to be generated to a client of the user, enable the user to directly use the target application program when using the login verification information, and reduce complexity of a use mode of the cloud server in a short period scene.
Referring to fig. 3, fig. 3 is a second embodiment of a control method of a cloud server according to the present invention, based on the first embodiment, before step S10, including:
And S50, acquiring application program downloading records of all cloud servers.
In this embodiment, statistics is performed on application download records of each cloud server in the cloud server cluster, where an application download record refers to an application downloaded by each cloud server in each service period, where, in consideration of personal privacy issues, the cloud server is automatically formatted when the service period expires, so that each application is numbered, and when an application is detected to be installed by the cloud server, the name of the installed application is recorded and associated with the service period and the server number.
Step S60, a server type database is generated according to the application program downloading record, and the server type database stores the association relation between the preset server type and the preset application program.
In this embodiment, the number of application download records increases based on the number of cloud servers controlled, belonging to big data, and therefore, the server type database may be generated based on the processing manner of the big data.
Optionally, the application program downloading record is used as an input parameter of a preset neural network model, and an output parameter of the preset neural network model is defined as a server type to obtain the server type data, wherein the server type database comprises the associated server type and the preset application program.
Optionally, determining the download similarity of each cloud server according to the application program download record; determining similar application programs downloaded by the cloud server, wherein the downloading similarity reaches a preset similarity; determining the preset application program according to the downloading times of the similar application programs; determining the preset server type according to the application program type of the preset application program; and associating the preset application type with the server type in a preset server type database. The server type is associated with the preset application program according to the download similarity of each cloud server, so that influence of irregular cloud servers of some downloaded application programs on the association operation can be effectively avoided, and the stability of the association operation is improved.
Step S20 includes:
And S21, traversing the server type database according to the server type when the opening duration is lower than a preset duration to obtain the target application program.
In this embodiment, considering that when the user uses the cloud server in a short period, if the execution environment of the cloud server is to be redeployed, the user's experience of opening the cloud server is reduced, so that whether the user's requirement is to use the cloud server in a short period can be determined by the opening duration input by the user; and when the user is judged to belong to the cloud server used in a short period, executing the step of traversing the server type database according to the server type to obtain the target application program.
In the technical scheme of the embodiment, when the user is judged to use the cloud server in a short period, the function of automatically installing the target application program for the target cloud server is executed, so that the user can save a certain program searching and installing time.
Referring to fig. 4, fig. 4 is a third embodiment of a control method of a cloud server according to the present invention, based on any one of the first and second embodiments, step S20 includes:
Step S22, when the opening duration is lower than a preset duration, determining whether the server type is the preset type.
In the present embodiment, the preset type includes, but is not limited to, a specific office type or a game service type. For example: if the user selects the temporary office major class and notes the EXCEL form to be edited, judging the server type as a preset type.
In step S23, when the server type is a preset type, a request is made to specify an application name to be downloaded.
In this embodiment, when the server type is a preset type, the request specifies an application name to be downloaded, and specifically, an optional application is input according to remark information corresponding to the server type, for example: when the remark information of the user is EXCEL editing, the user is prompted to select form editing software such as WPS or Office as selectable items, wherein the user is not satisfied with the recommended editing software, and the designated application program name can be input through an input box. When the remark information of the user is downloaded game A, the user is prompted to select different versions of game A as selectable options, and of course, when the user does not find the version selectable options of game A, the designated version of game A can be input through an input box, including but not limited to identity information such as names of agent merchants.
Optionally, when receiving an instruction for rejecting the specification, acquiring the target application program associated with the server type. The method provides the option of rejecting the appointed for the client, and can effectively avoid aesthetic fatigue caused to the user in the opening process.
Step S24, when the application program name is received, acquiring a main application program associated with the application program name, and acquiring a secondary application program associated with the main application program.
In this embodiment, the control device of the cloud server associates the application programs with the association, and when a specific application program is specified by a certain user, uses the application program specified by the user as a main application program and uses the application program related to the main application program as an auxiliary application program.
And step S25, taking the main application program and the auxiliary application program as the target application program.
In the technical scheme of the embodiment, the related auxiliary application program is downloaded by the application program appointed by the user, so that the user can avoid the time of the lower limb main application program, and the convenience of the user in using the main application program can be improved by the auxiliary application program.
Referring to fig. 5, fig. 5 is a fourth embodiment of a control method of a cloud server according to the present invention, based on any one of the first to third embodiments, after step S40, including:
Step S70, when receiving the application program downloading request, determining the application program to be downloaded according to the application program downloading request.
In this embodiment, when the cloud server receives an application download request actively initiated by a user, an application name of an application to be downloaded is obtained.
Step S80, determining whether an installation package corresponding to the program to be downloaded is stored.
In this embodiment, since security problems are considered in the installation package with unknown source, when determining the application name to be downloaded, it is determined whether the installation package corresponding to the application name to be downloaded is stored locally according to the application name to be downloaded.
If not, outputting the prompting information of the manual examination.
Step S90, if the installation package exists, installing the installation package on the target cloud server.
In the technical scheme of the embodiment, the security of the server can be improved through the local installation of the application program actively requesting the case for the user, the security of the server can be further improved through manual auditing, and the user can be prevented from downloading part of illegal application programs.
In order to achieve the above object, an embodiment of the present invention further provides a control device of a cloud server, where the control device of the cloud server includes: the cloud server comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes each step of the control method of the cloud server when executing the computer program.
To achieve the above object, an embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the control method of a cloud server as described above.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program embodied on one or more computer-usable computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.