CN112653563B - Cloud resource creating method and device, client and server - Google Patents

Cloud resource creating method and device, client and server Download PDF

Info

Publication number
CN112653563B
CN112653563B CN201910955223.6A CN201910955223A CN112653563B CN 112653563 B CN112653563 B CN 112653563B CN 201910955223 A CN201910955223 A CN 201910955223A CN 112653563 B CN112653563 B CN 112653563B
Authority
CN
China
Prior art keywords
cloud resource
opened
automatic
resource
cloud
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910955223.6A
Other languages
Chinese (zh)
Other versions
CN112653563A (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
Beijing Kingsoft Cloud Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Beijing Kingsoft Cloud 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, Beijing Kingsoft Cloud Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN201910955223.6A priority Critical patent/CN112653563B/en
Priority to PCT/CN2020/117772 priority patent/WO2021068763A1/en
Publication of CN112653563A publication Critical patent/CN112653563A/en
Application granted granted Critical
Publication of CN112653563B publication Critical patent/CN112653563B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0894Policy-based network configuration management
    • 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

Abstract

The embodiment of the invention provides a cloud resource creating method, a cloud resource creating device, a client and a server, wherein the cloud resource creating method comprises the following steps: the cloud resource configuration method comprises the steps of receiving cloud resource configuration operation, wherein the cloud resource configuration operation is used for creating configuration information of cloud resources to be opened and displaying an automatic unsubscribing interface of the cloud resources to be opened, an automatic unsubscribing control aiming at the cloud resources to be opened is displayed in the automatic unsubscribing interface, and a cloud resource opening request is sent to a server and comprises the configuration information and an automatic unsubscribing strategy.

Description

Cloud resource creating method and device, client and server
Technical Field
The invention relates to the technical field of cloud storage, in particular to a cloud resource creating method, a cloud resource creating device, a client and a server.
Background
When providing cloud services for customers, cloud service manufacturers usually adopt two payment modes, wherein the first payment mode is a prepayment mode and requires the customers to pay for cloud resource opening fees in advance, and the second payment mode is a postpaid mode and pays related fees according to the cloud resource conditions actually opened by the customers in the payment cycle after one payment cycle is finished.
Due to the consideration of factors such as fund turnover and elastic use of cloud resources, customers generally prefer to select a post-payment mode, after the customers select the post-payment mode, the customers can actively open more cloud resources when the business is in a peak period, and actively unsubscribe partial cloud resources when the business is in a low peak period, so that the cloud resource opening cost is saved.
In the prior art, when a service is in a low peak period, a client needs to manually unsubscribe part of opened cloud resources, and the manual unsubscribe needs to occupy expensive human resources, so that the method is generally suitable for the client with stable service volume and without frequent unsubscribe. And for the clients whose traffic is unstable and whose cloud resources need to be opened and unsubscribed frequently, the labor cost is too high.
The inventor finds that the prior art at least has the following problems in the process of implementing the invention:
the customer needs to manually unsubscribe the opened cloud resources, and the labor cost is high.
Disclosure of Invention
The embodiment of the invention aims to provide a cloud resource creating method, a cloud resource creating device, a client and a server, so as to automatically unsubscribe a cloud resource opened by a client and save labor cost. The specific technical scheme is as follows:
the embodiment of the invention provides a cloud resource creating method, which is applied to a client and comprises the following steps:
receiving a cloud resource configuration operation, wherein the cloud resource configuration operation is used for creating configuration information of cloud resources to be opened;
displaying an automatic unsubscribing interface of the cloud resource to be opened, wherein an automatic unsubscribing control aiming at the cloud resource to be opened is displayed in the automatic unsubscribing interface;
when receiving the operation aiming at the automatic unsubscribing control, generating an automatic unsubscribing strategy of the cloud resource to be opened; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time;
sending a cloud resource opening request to a server, wherein the cloud resource opening request comprises the configuration information and the automatic unsubscribing strategy, and the configuration information is used for the server to create the instance of the cloud resource to be opened.
Further, the automatic unsubscribe strategy comprises: whether the cloud resource to be opened needs to be automatically unsubscribed or not; and under the condition that the cloud resource to be opened needs to be automatically unsubscribed, automatically unsubscribing the cloud resource to be opened.
Further, when receiving an operation for the automatic unsubscribing control, generating an automatic unsubscribing policy for the cloud resource to be opened includes:
when a selection operation of an automatic unsubscribing option displayed by the automatic unsubscribing control is received, generating an automatic unsubscribing identifier and displaying a time setting control, wherein the automatic unsubscribing identifier is used for indicating that the cloud resource to be opened needs to be unsubscribed automatically;
when receiving a time selection operation of an unsubscribe time option displayed by the time setting control, recording the time selected by the time selection operation as unsubscribe time information;
and generating an automatic unsubscribing strategy of the cloud resource to be opened according to the automatic unsubscribing information and the unsubscribing time information.
The embodiment of the invention provides a cloud resource creating method, which is applied to a server and comprises the following steps:
receiving a cloud resource opening request sent by a client, wherein the cloud resource opening request comprises configuration information and an automatic unsubscribing strategy, the configuration information is the configuration information of cloud resources to be opened created by the client receiving cloud resource configuration operation, and the automatic unsubscribing strategy is determined by the client according to the received operation of an automatic unsubscribing control aiming at the cloud resources to be opened; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time;
and creating an example of the cloud resource to be opened according to the configuration information.
Further, the automatic unsubscribing strategy comprises: whether the cloud resource to be opened needs to be automatically unsubscribed or not; and under the condition that the cloud resource to be opened needs to be automatically unsubscribed, automatically unsubscribing the cloud resource to be opened.
Further, after the creating the instance of the cloud resource to be provisioned according to the configuration information, the method further includes:
storing the example identification string of the cloud resource to be opened, the configuration information of the cloud resource to be opened and the automatic unsubscribing strategy of the cloud resource to be opened as a resource example record of the cloud resource to be opened;
and storing the resource instance records to a cloud resource information database, and marking the resource instance records in an unsubscribed state.
Further, the method further comprises:
inquiring each opened cloud resource in a non-unsubscribed state at present, and determining the automatic unsubscribing time of each opened cloud resource;
determining the opened cloud resources which have arrived at the automatic unsubscribing moment in each opened cloud resource as cloud resources to be unsubscribed;
and logging out each cloud resource to be logged out.
Further, the querying of each opened cloud resource currently in an un-unsubscribed state and determining an automatic unsubscribing time of each opened cloud resource includes:
reading resource instance records corresponding to all opened cloud resources stored in a cloud resource information database according to a preset logout period;
according to the read resource instance records, determining the automatic unsubscribing time of the opened cloud resource corresponding to each resource instance record;
the logging out of each cloud resource to be logged out comprises the following steps:
determining an instance identification string of each cloud resource to be cancelled as a resource identification to be cancelled according to the resource instance record of each cloud resource to be cancelled;
and in the cloud resource pool, determining each cloud resource to be cancelled according to each resource identifier to be cancelled, and cancelling.
Further, in the cloud resource pool, each cloud resource to be revoked is determined according to each resource identifier to be revoked, and after revocation, the method further includes:
and marking the resource instance record corresponding to the resource identifier to be cancelled as a cancelled state.
Further, after determining the automatic unsubscribing time of the opened cloud resource corresponding to each resource instance record according to each read resource instance record, the method further includes:
if the opened cloud resources with the reached automatic unsubscribing time do not exist in the opened cloud resources, determining the opened cloud resource with the minimum automatic unsubscribing time in the opened cloud resources as a first opened cloud resource;
determining whether the difference value between the automatic unsubscribing time of the first opened cloud resource and the current time is less than the time length of the unsubscribing period;
if the current time is less than the preset time, generating a timer according to the automatic unsubscribing time of the first opened cloud resource, and when the timer reaches the automatic unsubscribing time of the first opened cloud resource, executing the step of reading resource instance records corresponding to the opened cloud resources stored in a cloud resource information database according to a preset logout period;
and if not, calling a sleep function so as to execute the step of reading resource instance records corresponding to the opened cloud resources stored in the cloud resource information database according to a preset logout period when the current time reaches the automatic logout time of the first opened cloud resource.
An embodiment of the present invention further provides a cloud resource creating device, which is applied to a client, where the device includes:
the cloud resource configuration system comprises a configuration operation receiving module, a configuration operation receiving module and a configuration operation sending module, wherein the configuration operation receiving module is used for receiving cloud resource configuration operation, and the cloud resource configuration operation is used for creating configuration information of cloud resources to be opened;
the unsubscribing interface display module is used for displaying an automatic unsubscribing interface of the cloud resource to be opened, and an automatic unsubscribing control aiming at the cloud resource to be opened is displayed in the automatic unsubscribing interface;
the unsubscribe strategy generating module is used for generating the automatic unsubscribe strategy of the cloud resource to be opened when receiving the operation aiming at the automatic unsubscribe control; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be automatically unsubscribed in preset time or not;
the request sending module is used for sending a cloud resource opening request to a server, wherein the cloud resource opening request comprises the configuration information and the automatic unsubscribing strategy, and the configuration information is used for the server to create the instance of the cloud resource to be opened.
Further, the automatic unsubscribing strategy comprises: whether the cloud resource to be opened needs to be automatically unsubscribed or not; and under the condition that the cloud resource to be opened needs to be automatically unsubscribed, automatically unsubscribing the cloud resource to be opened.
Further, the unsubscribe policy generating module is specifically configured to generate an automatic unsubscribe identifier and display a time setting control when a selection operation of an automatic unsubscribe option displayed for the automatic unsubscribe control is received, where the automatic unsubscribe identifier is used to indicate that the cloud resource to be opened needs to be unsubscribed automatically, and when a time selection operation of an unsubscribe time option displayed for the time setting control is received, record time selected by the time selection operation as unsubscribe time information, and generate an automatic unsubscribe policy for the cloud resource to be opened according to the automatic unsubscribe information and the unsubscribe time information.
The embodiment of the invention also provides a cloud resource creating device, which is applied to the server and comprises the following components:
the cloud resource provisioning method comprises a request receiving module, a request processing module and a configuration module, wherein the request receiving module is used for receiving a cloud resource provisioning request sent by a client, the cloud resource provisioning request comprises configuration information and an automatic unsubscription strategy, the configuration information is the configuration information of a cloud resource to be provisioned, which is created by the client receiving cloud resource configuration operation, and the automatic unsubscription strategy is determined by the client according to the received operation of an automatic unsubscription control aiming at the cloud resource to be provisioned; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time;
and the instance opening module is used for creating the instance of the cloud resource to be opened according to the configuration information.
Further, the automatic unsubscribing strategy comprises: whether the cloud resource to be opened needs to be automatically unsubscribed or not; and under the condition that the cloud resource to be opened needs to be automatically unsubscribed, automatically unsubscribing the cloud resource to be opened.
Further, the apparatus further comprises:
and the record generation module is used for storing the example identification string of the cloud resource to be opened, the configuration information of the cloud resource to be opened and the automatic unsubscribing strategy of the cloud resource to be opened as a resource example record of the cloud resource to be opened after the example opening module executes the establishment of the example of the cloud resource to be opened according to the configuration information, storing the resource example record to a cloud resource information database, and marking the resource example record as an un-unsubscribed state.
Further, the apparatus further comprises:
the first query module is used for querying each opened cloud resource which is in an un-unsubscribed state at present and determining the automatic unsubscribing time of each opened cloud resource;
the to-be-cancelled resource determining module is used for determining the opened cloud resources which have arrived at the automatic unsubscribing moment in each opened cloud resource as the to-be-cancelled cloud resources;
and the cloud resource logout module is used for logging out each cloud resource to be logout.
Further, the first query module is specifically configured to read resource instance records, stored in the cloud resource information database, corresponding to each opened cloud resource according to a preset logout period, and determine an automatic unsubscribe time of the opened cloud resource corresponding to each resource instance record according to each read resource instance record;
the cloud resource logout module is specifically used for determining an instance identification string of each cloud resource to be logout according to the resource instance record of each cloud resource to be logout as a resource identification to be logout, and determining each cloud resource to be logout according to each resource identification to be logout in the cloud resource pool and logging out.
Further, the cloud resource logout module is further configured to determine, in the cloud resource pool, each cloud resource to be logout according to each resource identifier to be logout, and after logout, mark a resource instance record corresponding to the resource identifier to be logout in a unsubscribed state.
Further, the cloud resource deregistration module is further configured to, after the first query module executes determining, according to the read resource instance records, an automatic unsubscription time of the opened cloud resource corresponding to each resource instance record, determine, if there is no opened cloud resource in each opened cloud resource whose automatic unsubscription time has reached, the opened cloud resource whose automatic unsubscription time is the smallest among the opened cloud resources as a first opened cloud resource, determine whether a difference between the automatic unsubscription time of the first opened cloud resource and a current time is smaller than a time length of the deregistration period, and if so, generate a timer according to the automatic unsubscription time of the first opened cloud resource, and when the timer reaches the automatic unsubscription time of the first opened cloud resource, return to execute the first query module, and if not smaller, and calling a sleep function so as to return to execute the first query module when the current moment reaches the automatic unsubscribing moment of the first opened cloud resource.
Embodiments of the present invention also provide a client, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: and implementing any steps of the cloud resource creating method applied to the client.
Embodiments of the present invention also provide a server, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: and implementing any steps of the cloud resource creating method applied to the server.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when being executed by a processor, the computer program realizes the steps of any one of the cloud resource creating methods applied to the client.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the steps of any one of the cloud resource creating methods applied to the server are realized.
Embodiments of the present invention further provide a computer program product including instructions, which when run on a computer, cause the computer to execute any one of the above cloud resource creation methods applied to a client.
The embodiment of the invention also provides a computer program product containing instructions, which when run on a computer, enables the computer to execute any one of the cloud resource creation methods applied to the server.
According to the cloud resource creating method, the cloud resource creating device, the client and the server provided by the embodiment of the invention, in the scheme, a cloud resource configuration operation is received, the cloud resource configuration operation is used for creating configuration information of cloud resources to be opened and displaying an automatic unsubscribing interface of the cloud resources to be opened, an automatic unsubscribing control aiming at the cloud resources to be opened is displayed in the automatic unsubscribing interface, and when the operation aiming at the automatic unsubscribing control is received, an automatic unsubscribing strategy of the cloud resources to be opened is generated; the cloud resource release method comprises the steps of automatically releasing cloud resources to be released in preset time, sending a cloud resource release request to a server, wherein the cloud resource release request comprises configuration information and an automatic release strategy, the configuration information is used for creating an example of the cloud resources to be released by the server, and when the cloud resources to be released are configured, whether the cloud resources to be released need to be automatically released in the preset time can be set in advance through operation of an displayed automatic release control, so that manual release of the cloud resources to be released is avoided, the cloud resources to be released by a client are automatically released, and labor cost is saved.
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 embodiments or the prior art descriptions will be briefly described below.
Fig. 1 is a flowchart of a cloud resource creating method applied to a client according to an embodiment of the present invention.
Fig. 2 is a flowchart of an automatic unsubscribe policy generation method according to an embodiment of the present invention.
Fig. 3 is a flowchart of a cloud resource creating method applied to a server according to an embodiment of the present invention.
Fig. 4 is a flowchart of a cloud resource deregistration method according to an embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a cloud resource creating apparatus applied to a client according to an embodiment of the present invention.
Fig. 6 is a schematic structural diagram of a cloud resource creating apparatus applied to a server according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a client according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to provide an implementation scheme for automatically unsubscribing cloud resources opened by a client and saving labor cost, the embodiment of the invention provides a cloud resource creating method, a cloud resource creating device, a client and a server, and the embodiment of the invention is described below with reference to the attached drawings of the specification. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In an embodiment of the present invention, a method for creating a cloud resource applied to a client is provided, as shown in fig. 1, the method includes the following steps:
s101: and receiving cloud resource configuration operation, wherein the cloud resource configuration operation is used for creating configuration information of the cloud resources to be opened.
In this step, the cloud resource configuration operation may be a selection operation of the cloud resource configuration information to be opened, which is performed by the customer according to the need of the customer, where the configuration information may be information such as the number of CPU cores, the memory size, the disk size, the virtual network and the security group to which the cloud resource belongs. In an embodiment, a payment mode of cloud resources to be opened may also be included, for example, a customer needs to rent cloud computing resources with a CPU core number of 4 cores, a memory size of 8G, and a disk size of 500G, and select the payment mode as a post-payment mode, and then attribute information including the CPU core number of 4 cores, the memory size of 8G, the disk size of 500G, and the post-payment mode may be created through cloud resource configuration operation.
In an embodiment, before receiving the cloud resource configuration operation, a cloud resource configuration interface of the cloud resource to be opened may be presented, in an embodiment, the cloud resource configuration interface may be a website through which a customer may enter the cloud resource configuration interface, and in an embodiment, the cloud resource configuration interface may present options of each configuration information of the cloud resource, for example: the method can comprise a cloud resource type option, a cloud resource CPU core number option, a cloud resource memory size option and the like.
In one embodiment, a cloud resource configuration operation may be received for a cloud resource configuration interface. When the options of each configuration information of the cloud resource are displayed in the cloud resource configuration interface, the cloud resource configuration operation may be a selection operation for each option of the configuration information, for example, the cloud resource configuration interface displays a CPU core number option of the cloud resource and a cloud resource memory size option, and a customer may select the CPU core number of the cloud resource to be activated through the CPU core number option of the cloud resource and may select the memory size of the cloud resource to be activated through the memory size option of the cloud resource.
S102: and displaying an automatic unsubscribing interface of the cloud resource to be opened, and displaying an automatic unsubscribing control aiming at the cloud resource to be opened in the automatic unsubscribing interface.
In this step, after the configuration information of the cloud resource to be opened is created, an automatic unsubscribing interface of the cloud resource to be opened can be displayed, wherein an automatic unsubscribing control for the cloud resource to be opened is displayed in the automatic unsubscribing interface.
The automatic unsubscribing control is used for configuring an automatic unsubscribing strategy of the cloud resource to be created, and may include an automatic unsubscribing option and a time setting control, the automatic unsubscribing option is used for determining whether the cloud resource to be opened needs to be automatically unsubscribed, and the time setting control is used for setting the cloud resource to be opened to execute automatic unsubscribing in preset time after determining that the cloud resource to be opened needs to be automatically unsubscribed.
In one embodiment, the time setting control may be an option for setting for time units of year, month, day, hour, etc., or may be a text input box, wherein the text input box may receive text information input by the customer, and the text information refers to the time information input by the customer as will be understood by those skilled in the art.
In one embodiment, the condition that the set automatic unsubscribing time is wrong due to misoperation of a client is avoided, and an automatic unsubscribing prompt message can be popped up before an automatic unsubscribing interface is displayed, so that the client is prompted how to set the cloud resource to be opened according to the self requirement.
S103: and when receiving the operation aiming at the automatic unsubscribing control, generating an automatic unsubscribing strategy of the cloud resource to be opened.
In this step, the automatic unsubscribe policy is a policy of whether the cloud resource to be opened needs to be automatically unsubscribed in a preset time.
Optionally, the automatic unsubscribe policy includes: whether the cloud resources to be opened need to be automatically unsubscribed or not; when the cloud resource to be opened needs to be automatically unsubscribed, the time for the cloud resource to be opened to be automatically unsubscribed may optionally be composed of two types of information, where the first type of information is used to indicate whether the cloud resource to be opened needs to be automatically unsubscribed, and the second type of information indicates when the cloud resource to be opened needs to be automatically unsubscribed.
S104: and sending a cloud resource opening request to the server, wherein the cloud resource opening request comprises configuration information and an automatic unsubscribing strategy.
In the step, the configuration information is used for the server to create the instance of the cloud resource to be opened.
By sending the cloud resource opening request to the server, the server can create an instance of the cloud resource to be opened according to the configuration information, and can further set whether the cloud resource to be opened needs to execute the unsubscribing operation at the predetermined time according to the automatic unsubscribing strategy.
Specifically, see the related description of the server side for details, which are not described herein again.
In the cloud resource creating method applied to the client, provided by the embodiment of the invention, the cloud resource configuration operation is received, the cloud resource configuration operation is used for creating the configuration information of the cloud resource to be opened and displaying the automatic unsubscribing interface of the cloud resource to be opened, the automatic unsubscribing control aiming at the cloud resource to be opened is displayed in the automatic unsubscribing interface, and the cloud resource opening request is sent to the server, and comprises the configuration information and the automatic unsubscribing strategy.
In one embodiment, step S103 may be implemented by an automatic unsubscribe policy generation method as shown in fig. 2, including:
s201: and when a selection operation of an automatic unsubscribing option displayed by the automatic unsubscribing control is received, generating an automatic unsubscribing identifier and displaying the time setting control.
In this step, the automatic unsubscribe identifier is used to indicate that the cloud resource to be opened needs to be unsubscribed automatically, and may be a string of pre-coded character strings.
Optionally, the time setting control may display an unsubscribe time option, including an option for setting for time units such as year, month, day, and hour, and illustratively, the time setting control displays an option box of a year, and a plurality of year numbers, including 2019, 2020, 2021, are displayed in the option box.
When the selection operation of the automatic unsubscribe option displayed by the automatic unsubscribe control is received, the fact that the user determines that the cloud resource to be opened needs to be unsubscribed automatically is explained, at the moment, the user is prompted to set the preset time by further displaying the time setting control, the cloud resource to be opened is guaranteed to be unsubscribed automatically in the preset time, and therefore the user is prevented from needing to unsubscribe manually in the preset time.
S202: and when receiving the time selection operation of the unsubscribe time option displayed by the time setting control, recording the time selected by the time selection operation as unsubscribe time information.
In this step, the time selection operation for the unsubscribe time option displayed by the time setting control may be a selection operation for the unsubscribe time option through an input device such as a mouse, and may optionally be performed for time numbers corresponding to year, month, day, hour and minute, for example, if the selected year is 2019, the selected month is 6 months, the selected day is 3 days, the selected day is 12 hours, and the selected minute is 45 minutes, it may be determined that the time selected by the time selection operation is 2019, 6 months, 3 days and 12 hours.
Alternatively, if the time setting control is a text input box, the time selection operation for the unsubscribe time option presented by the time setting control may be an input operation for the text input box, and for example, the customer may input "201912132130" in the text input box, and then the time selected by the time selection operation may be determined to be 30 minutes in 21/12/13/2019.
S203: and generating an automatic unsubscribing strategy of the cloud resource to be opened according to the automatic unsubscribing information and the unsubscribing time information.
In this step, the automatic unsubscribe information and the unsubscribe time information may be combined into policy information or may exist independently.
Alternatively, the automatic unsubscribe policy may be a combination of automatic unsubscribe information and unsubscribe time information, which may be stored in json-format configuration text.
The automatic unsubscribe strategy generating method provided by the embodiment of the invention generates the automatic unsubscribe identifier and displays the time setting control when receiving the selection operation of the automatic unsubscribe option displayed aiming at the automatic unsubscribe control, and when receiving a time selection operation for the unsubscribe time option displayed by the time setting control, recording the time selected by the time selection operation as unsubscribe time information, and generating an automatic unsubscribing strategy of the cloud resource to be opened according to the automatic unsubscribing information and the unsubscribing time information, because the automatic unsubscribing option and the time setting control of the automatic unsubscribing control can provide the user with the configuration of whether the cloud resource to be opened needs to be unsubscribed automatically or not and when the cloud resource needs to be unsubscribed automatically, therefore, manual unsubscription of the cloud resources to be opened is avoided, automatic unsubscription of the cloud resources opened by the client is achieved, and labor cost is saved.
Corresponding to the cloud resource creation method applied to the client provided by the embodiment of the present invention, the embodiment of the present invention also provides a cloud resource creation method applied to a server, as shown in fig. 3, the method includes the following steps:
s301: and receiving a cloud resource opening request sent by a client.
In this step, the cloud resource provisioning request may include configuration information and an automatic unsubscribe policy, where the configuration information is configuration information of a cloud resource to be provisioned, which is created by a client receiving a cloud resource configuration operation, the automatic unsubscribe policy is determined by the client according to a received operation of an automatic unsubscribe control for the cloud resource to be provisioned, and the automatic unsubscribe policy is a policy on whether the cloud resource to be provisioned needs to be automatically unsubscribed in a predetermined time.
Optionally, the automatic unsubscribing policy includes: whether the cloud resources to be opened need to be automatically unsubscribed or not; and under the condition that the cloud resource to be opened needs to be automatically unsubscribed, the cloud resource to be opened is automatically unsubscribed.
Optionally, the server and the client complete necessary connections in advance, as described in step S104, the cloud resource provisioning request includes configuration information and an automatic unsubscribing policy.
In an embodiment, a server in this embodiment may be a server cluster formed by a plurality of servers, where at least one server in the server cluster is responsible for receiving a cloud resource provisioning request sent by a client.
Optionally, the server cluster may further include an order server for processing the cloud resource provisioning request and a cloud resource server for creating the cloud resource according to the cloud resource provisioning request.
S302: and creating an example of the cloud resource to be opened according to the configuration information.
In this step, an example of the cloud resource to be provisioned may be created according to the received configuration information, and as known to those skilled in the art, the example is a computing resource that is created by the server in the cloud resource pool and provides a user with a relevant cloud service, and the example of the cloud resource to be provisioned is created according to the configuration information
In an embodiment, an instance of a cloud resource to be provisioned in a cloud resource pool may be according to configuration information, and the instance of the cloud resource to be provisioned may be a cloud resource created according to the configuration information.
Illustratively, the configuration information includes: the number of the CPU cores is 4, the memory size is 8G, and the disk size is 500G, then a cloud resource with the number of the CPU cores being 4, the memory size being 8G, and the disk size being 500G may be created in the cloud resource pool according to the configuration information.
In the cloud resource creation method applied to the server provided by the embodiment of the invention, the cloud resource opening request sent by the client can be received, wherein the cloud resource opening request comprises the configuration information and the automatic unsubscribing strategy, and the instance of the cloud resource to be opened is created according to the configuration information.
With reference to the foregoing embodiment, as shown in fig. 4, an embodiment of the present invention further provides a cloud resource deregistration method, including the following steps:
s401: and storing the example identification string of the cloud resource to be opened, the configuration information of the cloud resource to be opened and the automatic unsubscribing strategy of the cloud resource to be opened as a resource example record of the cloud resource to be opened.
In this step, the instance identification string of the cloud resource to be provisioned may be a resource identification of the cloud resource to be provisioned, and in one embodiment, the instance identification string of the cloud resource to be provisioned is generated according to a preset algorithm and uniquely corresponds to the cloud resource to be provisioned.
In an embodiment, the instance identification string of the cloud resource to be provisioned may be generated based on a subscription number of the cloud resource to be provisioned, or configuration information, or may be randomly allocated.
Optionally, the cloud resource to be opened is set to be automatically cancelled when the automatic unsubscribing moment is reached according to an automatic unsubscribing strategy, optionally, the automatic cancellation may be performed by the cloud resource to be opened itself, or may be performed by the server.
S402: and storing the resource instance records to a cloud resource information database, and marking the resource instance records as an un-unsubscribed state.
In this step, the cloud resource information database may be configured to store resource instance records of each resource to be opened, and optionally, the cloud resource information database may further mark each stored resource instance record, mark a resource instance record corresponding to a cloud resource to be opened that does not reach the automatic unsubscribe time as an unsubscribed state, or an opened state, or an unregistered state, and optionally mark a resource instance record corresponding to a cloud resource to be opened that has reached the automatic unsubscribe time as an unsubscribed state, or an unregistered state.
As can be understood by those skilled in the art, through step S401 and step S402, when the server completes creation/provisioning of one cloud resource to be provisioned, the cloud resource information database records a cloud resource instance record to be provisioned, and at this time, the cloud resource to be provisioned is changed into the provisioned cloud resource.
S403: and inquiring each opened cloud resource in the opened state at present, and determining the automatic unsubscribing time of each opened cloud resource.
In this step, each opened cloud resource currently in an opened state may be queried in the cloud resource information database, and an automatic unsubscribing time of each opened cloud resource may be determined.
In one embodiment, the determining the automatic unsubscribing time of each opened cloud resource by reading a resource instance record corresponding to each opened cloud resource stored in the cloud resource information database includes: and according to a preset logout period, reading resource instance records corresponding to the opened cloud resources stored in the cloud resource information database, and according to the read resource instance records, determining the automatic unsubscribing time of the opened cloud resources corresponding to the resource instance records.
The logout period can be determined according to actual use requirements or experience, and through the logout period, the cloud resources which are currently opened and are frequently inquired in the cloud resource information database can be prevented from being inquired, so that the computing cost is saved.
S404: and judging whether the opened cloud resources which reach the automatic unsubscribing moment exist at present.
In this step, the automatic unsubscribe time of each opened cloud resource may be compared with the current time, and whether there is an opened cloud resource that has been reached at the automatic unsubscribe time is determined.
If yes, go to step S405, otherwise go to step S407
S405: and determining the opened cloud resources which have arrived at the automatic unsubscribing moment in each opened cloud resource as the cloud resources to be unsubscribed.
In the step, the opened cloud resource with the automatic unsubscribe time less than or equal to the current time is determined as the cloud resource to be unsubscribed.
S406: and logging out each cloud resource to be logged out.
In this step, an instance identifier string of each cloud resource to be revoked is determined as a resource identifier to be revoked according to the resource instance record of each cloud resource to be revoked, and each cloud resource to be revoked is determined and revoked according to each resource identifier to be revoked in the cloud resource pool.
The cloud resource cancellation method provided by the embodiment of the invention can store the instance identification string of the cloud resource to be opened, the configuration information of the cloud resource to be opened and the automatic unsubscribe strategy of the cloud resource to be opened as the resource instance record of the cloud resource to be opened, store the resource instance record into the cloud resource information database, mark the resource instance record in an unsubscribed state, query each opened cloud resource in the opened state at present, determine the automatic unsubscribe time of each opened cloud resource, determine the opened cloud resource in each opened cloud resource, which has reached the automatic unsubscribe time, as the cloud resource to be cancelled, and cancel each cloud resource to be cancelled And the source realizes the automatic unsubscribe of the cloud resources opened by the client, thereby saving the labor cost.
On the basis of the above steps, as shown in fig. 4, an embodiment of the present invention further provides another cloud resource deregistration method, so as to implement that when it is determined that there is no opened cloud resource that has reached the automatic unsubscribe time, the cloud resource deregistration method waits for deregistration, and includes the following steps:
s407: and determining the opened cloud resource with the minimum automatic unsubscribing time in all the opened cloud resources as the first opened cloud resource.
In this step, when it is determined that there is no opened cloud resource that has arrived at the automatic unsubscribe time in the current opened cloud resources, it may be determined to determine the opened cloud resource that has the smallest automatic unsubscribe time in the opened cloud resources, and the opened cloud resource is taken as the first opened cloud resource, for example, if there are 3 opened cloud resources that have not arrived at the automatic unsubscribe time, T1, T2, and T3, where the automatic unsubscribe times of T1, T2, and T3 are 00 minutes at 7/12/8 in 2019, 00 minutes at 12/8 in 8/2019, and 00 minutes at 12/8 in 9/8 in 2019, the opened cloud resource that has the smallest automatic unsubscribe time is T1, and T1 is taken as the first opened cloud resource.
S408: and judging whether the difference value between the automatic unsubscribing time of the first opened cloud resource and the current time is less than the time length of the unsubscribing period.
In this step, if the difference between the automatic unsubscribe time of the first opened cloud resource and the current time is less than the time length of the unsubscribe period, step S409 is executed, otherwise step S410 is executed.
Whether the difference between the automatic unsubscribing time of the first opened cloud resource and the current time is smaller than the time length of the logout period may be determined, for example, the logout period is 10 minutes, the current time is 2019, 7, 12, 8, 12 minutes, if the automatic unsubscribing time of the first opened cloud resource is 2019, 7, 12, 8 hours, the difference between the automatic unsubscribing time of the first opened cloud resource and the current time is 8 minutes, and is smaller than the logout period of 10 minutes, at this time, step S409 is performed, if the automatic unsubscribing time of the first opened cloud resource is 2019, 7, 12, 8 hours, 30 minutes, the difference between the automatic unsubscribing time of the first opened cloud resource and the current time is 18 minutes, and is larger than the logout period of 10 minutes, at this time, step S410 is performed.
S409: and generating a timer according to the automatic unsubscribing moment of the first opened cloud resource.
In this step, when the timer reaches the automatic unsubscribing time of the first opened cloud resource, step S403 is executed.
In an embodiment, a timer may be generated according to the automatic unsubscribe time of the first opened cloud resource and a preset automatic resource logout processing function, in an embodiment, the automatic unsubscribe time may be used as an expiration time of the timer, and after the timer expires, a system interrupt may be triggered, the preset automatic resource logout processing function is called, and after the automatic resource release processing function is triggered, step S403 is executed.
S410: a sleep function is invoked.
In this step, a sleep function may be called, so that when the current time reaches the automatic unsubscribing time of the first opened cloud resource, step S403 is executed
In one embodiment, step S403 may be performed by calling a sleep interface function so that when the current time reaches the automatic unsubscribe time of the first opened cloud resource.
In one embodiment, the current processing thread may also be put to sleep for a logout period, and after the sleep is finished, step S403 is executed again.
Based on the same inventive concept, according to a cloud resource creation method applied to a client provided by an embodiment of the present invention, an embodiment of the present invention further provides a cloud resource creation apparatus applied to a client, as shown in fig. 5, the apparatus includes:
a configuration operation receiving module 501, configured to receive a cloud resource configuration operation, where the cloud resource configuration operation is used to create configuration information of a cloud resource to be opened;
the unsubscribe interface display module 502 is used for displaying an automatic unsubscribe interface of the cloud resource to be opened, and an automatic unsubscribe control aiming at the cloud resource to be opened is displayed in the automatic unsubscribe interface;
the unsubscribe policy generating module 503 is configured to generate an automatic unsubscribe policy for a cloud resource to be opened when receiving an operation for an automatic unsubscribe control; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time;
the request sending module 504 is configured to send a cloud resource provisioning request to a server, where the cloud resource provisioning request includes configuration information and an automatic unsubscription policy, and the configuration information is used for the server to create an instance of a cloud resource to be provisioned.
Further, the automatic unsubscribing strategy comprises the following steps: whether the cloud resources to be opened need to be automatically unsubscribed or not; and under the condition that the cloud resource to be opened needs to be automatically unsubscribed, automatically unsubscribing the cloud resource to be opened.
Further, the unsubscribe policy generating module 503 is specifically configured to generate an automatic unsubscribe identifier and display a time setting control when a selection operation for an automatic unsubscribe option displayed on the automatic unsubscribe control is received, where the automatic unsubscribe identifier is used to indicate that the cloud resource to be opened needs to be automatically unsubscribed, and when a time selection operation for the unsubscribe time option displayed on the time setting control is received, record time selected by the time selection operation as unsubscribe time information, and generate an automatic unsubscribe policy for the cloud resource to be opened according to the automatic unsubscribe information and the unsubscribe time information.
Based on the same inventive concept, according to the cloud resource creating method applied to the server provided in the embodiment of the present invention, the embodiment of the present invention further provides a cloud resource creating apparatus applied to the server, as shown in fig. 6, the apparatus includes:
the cloud resource provisioning method includes a request receiving module 601, configured to receive a cloud resource provisioning request sent by a client, where the cloud resource provisioning request includes configuration information and an automatic unsubscribing policy, the configuration information is configuration information of a cloud resource to be provisioned, which is created by a client receiving cloud resource configuration operation, and the automatic unsubscribing policy is determined by the client according to a received operation of an automatic unsubscribing control for the cloud resource to be provisioned; the automatic unsubscribing strategy is a strategy for judging whether the cloud resources to be opened need to be unsubscribed automatically in preset time;
an instance provisioning module 602, configured to create an instance of the cloud resource to be provisioned according to the configuration information.
Further, the automatic unsubscribing strategy comprises the following steps: whether the cloud resources to be opened need to be automatically unsubscribed or not; and under the condition that the cloud resource to be opened needs to be automatically unsubscribed, automatically unsubscribing the cloud resource to be opened.
Further, the apparatus further comprises:
the record generating module 603 is configured to, after the instance provisioning module executes creating the instance of the cloud resource to be provisioned according to the configuration information, store the instance identification string of the cloud resource to be provisioned, the configuration information of the cloud resource to be provisioned, and the automatic unsubscribing policy of the cloud resource to be provisioned as a resource instance record of the cloud resource to be provisioned, store the resource instance record to the cloud resource information database, and mark the resource instance record in an unsubscribed state.
Further, the apparatus further comprises:
a first query module 604, configured to query each opened cloud resource currently in an un-unsubscribed state, and determine an automatic unsubscribing time of each opened cloud resource;
a to-be-cancelled resource determining module 605, configured to determine an opened cloud resource that has arrived at an automatic cancellation time in each opened cloud resource, as a to-be-cancelled cloud resource;
and a cloud resource logout module 606 for logging out each cloud resource to be logged out.
Further, the first query module 604 is specifically configured to read resource instance records, stored in the cloud resource information database, corresponding to each opened cloud resource according to a preset logout period, and determine an automatic unsubscribe time of the opened cloud resource corresponding to each resource instance record according to each read resource instance record;
the cloud resource logout module 606 is specifically configured to determine, according to the resource instance record of each cloud resource to be logout, an instance identifier string of each cloud resource to be logout as a resource identifier to be logout, and determine, in the cloud resource pool, each cloud resource to be logout according to each resource identifier to be logout, and logout.
Further, the cloud resource logout module 606 is further configured to determine, in the cloud resource pool, each cloud resource to be logout according to each resource identifier to be logout, and after logout, mark the resource instance record corresponding to the resource identifier to be logout as a unsubscribed state.
Further, the cloud resource logout module 606 is further configured to, after the first query module executes determining, according to the read resource instance records, an automatic unsubscribing time of the opened cloud resource corresponding to each resource instance record, if there is no opened cloud resource in each opened cloud resource whose automatic unsubscribing time has been reached, determine, as the first opened cloud resource, an opened cloud resource whose automatic unsubscribing time is the smallest among the opened cloud resources, determine whether a difference between the automatic unsubscribing time of the first opened cloud resource and a current time is smaller than a duration of a logout period, and if smaller, generate a timer according to the automatic unsubscribing time of the first opened cloud resource, and when the timer reaches the automatic unsubscribing time of the first opened cloud resource, return to execute the first query module 604, and if not smaller, call a sleep function, so that when the current time reaches the automatic unsubscribing time of the first opened cloud resource, the first query module 604 is executed back.
An embodiment of the present invention further provides a client, as shown in fig. 7, including a processor 701 and a machine-readable storage medium 702, where the processor 701 and the machine-readable storage medium 702 complete communication with each other,
a machine-readable storage medium 702 for storing a computer program;
the processor 701 is configured to implement the following steps when executing the program stored in the memory 702:
receiving a cloud resource configuration operation, wherein the cloud resource configuration operation is used for creating configuration information of cloud resources to be opened;
displaying an automatic unsubscribing interface of the cloud resource to be opened, wherein an automatic unsubscribing control aiming at the cloud resource to be opened is displayed in the automatic unsubscribing interface;
when receiving the operation aiming at the automatic unsubscribing control, generating an automatic unsubscribing strategy of the cloud resource to be opened; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time;
sending a cloud resource opening request to a server, wherein the cloud resource opening request comprises the configuration information and the automatic unsubscribing strategy, and the configuration information is used for the server to create the instance of the cloud resource to be opened.
An embodiment of the present invention further provides a server, as shown in fig. 8, including a processor 801 and a machine-readable storage medium 802, where the processor 801 and the machine-readable storage medium 802 complete communication with each other,
a machine-readable storage medium 802 for storing a computer program;
the processor 801 is configured to implement the following steps when executing the program stored in the memory 802:
receiving a cloud resource opening request sent by a client, wherein the cloud resource opening request comprises configuration information and an automatic unsubscribing strategy, the configuration information is the configuration information of cloud resources to be opened created by the client receiving cloud resource configuration operation, and the automatic unsubscribing strategy is determined by the client according to the received operation of an automatic unsubscribing control aiming at the cloud resources to be opened; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time;
and creating an example of the cloud resource to be opened according to the configuration information.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program is stored in the computer-readable storage medium, and when executed by a processor, the computer program implements any of the above steps of the cloud resource creating method applied to the client.
In 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 of the above cloud resource creation methods applied to a server.
In another embodiment provided by the present invention, a computer program product containing instructions is further provided, which when run on a computer, causes the computer to execute any of the cloud resource creation methods applied to the client in the above embodiments.
In another embodiment provided by the present invention, a computer program product containing instructions is further provided, which when run on a computer, causes the computer to execute any of the cloud resource creation methods applied to the server in the above embodiments.
In the above embodiments, all or part of the implementation may be 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 be performed 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 in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) 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., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
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, as for the apparatus, the client, the server, the computer-readable storage medium, and the computer program product, since they are substantially similar to the method embodiments, the description is simple, and the relevant points can be referred to the partial description 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 (18)

1. A cloud resource creating method is applied to a client and comprises the following steps:
receiving cloud resource configuration operation, wherein the cloud resource configuration operation is used for creating configuration information of cloud resources to be opened, the configuration information comprises a payment mode of the cloud resources to be opened, and the payment mode is a post-payment mode;
displaying an automatic unsubscribing interface of the cloud resource to be opened, wherein an automatic unsubscribing control aiming at the cloud resource to be opened is displayed in the automatic unsubscribing interface;
when receiving the operation aiming at the automatic unsubscribing control, generating an automatic unsubscribing strategy of the cloud resource to be opened; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time, and the automatic unsubscribing strategy comprises the following steps: whether the cloud resource to be opened needs to be automatically unsubscribed or not; when the cloud resource to be opened needs to be automatically unsubscribed, the cloud resource to be opened is automatically unsubscribed;
sending a cloud resource opening request to a server, wherein the cloud resource opening request comprises the configuration information and the automatic unsubscribing strategy, and the configuration information is used for the server to create the instance of the cloud resource to be opened.
2. The method of claim 1, wherein generating the automatic unsubscribe policy for the cloud resource to be opened when the operation for the automatic unsubscribe control is received comprises:
when a selection operation of an automatic unsubscribing option displayed by the automatic unsubscribing control is received, generating an automatic unsubscribing identifier and displaying a time setting control, wherein the automatic unsubscribing identifier is used for indicating that the cloud resource to be opened needs to be unsubscribed automatically;
when receiving a time selection operation of an unsubscribe time option displayed by the time setting control, recording the time selected by the time selection operation as unsubscribe time information;
and generating an automatic unsubscribing strategy of the cloud resource to be opened according to the automatic unsubscribing information and the unsubscribing time information.
3. A cloud resource creation method applied to a server includes:
receiving a cloud resource opening request sent by a client, wherein the cloud resource opening request comprises configuration information and an automatic unsubscribing strategy, the configuration information is the configuration information of cloud resources to be opened created by the client receiving cloud resource configuration operation, and the automatic unsubscribing strategy is determined by the client according to the received operation of an automatic unsubscribing control aiming at the cloud resources to be opened; the automatic unsubscribing strategy is a strategy of whether the cloud resource to be opened needs to be unsubscribed automatically in preset time, the configuration information comprises a payment mode of the cloud resource to be opened, the payment mode is a post-payment mode, and the automatic unsubscribing strategy comprises the following steps: whether the cloud resource to be opened needs to be automatically unsubscribed or not; the time for the cloud resource to be opened to be automatically unsubscribed is determined under the condition that the cloud resource to be opened needs to be automatically unsubscribed;
and creating an example of the cloud resource to be opened according to the configuration information.
4. The method of claim 3, wherein after the creating the instance of the cloud resource to be provisioned according to the configuration information, the method further comprises:
storing the example identification string of the cloud resource to be opened, the configuration information of the cloud resource to be opened and the automatic unsubscribing strategy of the cloud resource to be opened as a resource example record of the cloud resource to be opened;
and storing the resource instance records to a cloud resource information database, and marking the resource instance records in an unsubscribed state.
5. The method of claim 3, further comprising:
inquiring each opened cloud resource in a non-unsubscribed state at present, and determining the automatic unsubscribing time of each opened cloud resource;
determining the opened cloud resources which have arrived at the automatic unsubscribing moment in each opened cloud resource as cloud resources to be unsubscribed;
and logging out each cloud resource to be logged out.
6. The method of claim 5, wherein querying each opened cloud resource currently in an un-unsubscribed state and determining an automatic unsubscribing time of each opened cloud resource comprises:
reading resource instance records corresponding to all opened cloud resources stored in a cloud resource information database according to a preset logout period;
according to the read resource instance records, determining the automatic unsubscribing time of the opened cloud resource corresponding to each resource instance record;
the logging out of each cloud resource to be logged out comprises the following steps:
determining an instance identification string of each cloud resource to be cancelled as a resource identification to be cancelled according to the resource instance record of each cloud resource to be cancelled;
and in the cloud resource pool, determining each cloud resource to be cancelled according to each resource identifier to be cancelled, and cancelling.
7. The method according to claim 6, wherein after determining, in the cloud resource pool, each cloud resource to be revoked according to each resource identifier to be revoked, and deregistering, the method further comprises:
and marking the resource instance record corresponding to the resource identifier to be cancelled as a cancelled state.
8. The method according to claim 6, after determining, according to the read resource instance records, an automatic unsubscribing time of the opened cloud resource corresponding to each resource instance record, further comprising:
if the opened cloud resources with the reached automatic unsubscribe time do not exist in the opened cloud resources, determining the opened cloud resources with the minimum automatic unsubscribe time in the opened cloud resources as first opened cloud resources;
determining whether the difference value between the automatic unsubscribing time of the first opened cloud resource and the current time is less than the time length of the unsubscribing period;
if the current time is less than the preset time, generating a timer according to the automatic unsubscribing time of the first opened cloud resource, and when the timer reaches the automatic unsubscribing time of the first opened cloud resource, executing the step of reading resource instance records corresponding to the opened cloud resources stored in a cloud resource information database according to a preset logout period;
and if not, calling a sleep function so as to execute the step of reading resource instance records corresponding to the opened cloud resources stored in the cloud resource information database according to a preset logout period when the current time reaches the automatic logout time of the first opened cloud resource.
9. A cloud resource creation device, applied to a client, includes:
the cloud resource configuration operation receiving module is used for receiving cloud resource configuration operation, the cloud resource configuration operation is used for creating configuration information of cloud resources to be opened, the configuration information comprises a payment mode of the cloud resources to be opened, and the payment mode is a post-payment mode;
the unsubscribing interface display module is used for displaying an automatic unsubscribing interface of the cloud resource to be opened, and an automatic unsubscribing control aiming at the cloud resource to be opened is displayed in the automatic unsubscribing interface;
the unsubscribe strategy generating module is used for generating the automatic unsubscribe strategy of the cloud resource to be opened when receiving the operation aiming at the automatic unsubscribe control; the automatic unsubscribing strategy is a strategy for judging whether the cloud resource to be opened needs to be unsubscribed automatically in preset time, and the automatic unsubscribing strategy comprises the following steps: whether the cloud resource to be opened needs to be automatically unsubscribed or not; when the cloud resource to be opened needs to be automatically unsubscribed, the cloud resource to be opened is automatically unsubscribed;
the request sending module is used for sending a cloud resource opening request to a server, wherein the cloud resource opening request comprises the configuration information and the automatic unsubscribing strategy, and the configuration information is used for the server to create the instance of the cloud resource to be opened.
10. The apparatus according to claim 9, wherein the unsubscribe policy generating module is specifically configured to generate an automatic unsubscribe identifier and display a time setting control when a selection operation of an automatic unsubscribe option displayed for the automatic unsubscribe control is received, the automatic unsubscribe identifier is used to indicate that the cloud resource to be provisioned needs to be unsubscribed automatically, and when a time selection operation of an unsubscribe time option displayed for the time setting control is received, record a time selected by the time selection operation as unsubscribe time information, and generate the automatic unsubscribe policy for the cloud resource to be provisioned according to the automatic unsubscribe information and the unsubscribe time information.
11. A cloud resource creation apparatus, applied to a server, includes:
the cloud resource provisioning method comprises a request receiving module, a request processing module and a configuration module, wherein the request receiving module is used for receiving a cloud resource provisioning request sent by a client, the cloud resource provisioning request comprises configuration information and an automatic unsubscription strategy, the configuration information is the configuration information of a cloud resource to be provisioned, which is created by the client receiving cloud resource configuration operation, and the automatic unsubscription strategy is determined by the client according to the received operation of an automatic unsubscription control aiming at the cloud resource to be provisioned; the automatic unsubscribing strategy is a strategy of whether the cloud resource to be opened needs to be unsubscribed automatically in preset time, the configuration information comprises a payment mode of the cloud resource to be opened, the payment mode is a post-payment mode, and the automatic unsubscribing strategy comprises the following steps: whether the cloud resource to be opened needs to be automatically unsubscribed or not; when the cloud resource to be opened needs to be automatically unsubscribed, the cloud resource to be opened is automatically unsubscribed;
and the instance opening module is used for creating the instance of the cloud resource to be opened according to the configuration information.
12. The apparatus of claim 11, further comprising:
and the record generation module is used for storing the example identification string of the cloud resource to be opened, the configuration information of the cloud resource to be opened and the automatic unsubscribing strategy of the cloud resource to be opened as a resource example record of the cloud resource to be opened after the example opening module executes the establishment of the example of the cloud resource to be opened according to the configuration information, storing the resource example record to a cloud resource information database, and marking the resource example record as an un-unsubscribed state.
13. The apparatus of claim 11, further comprising:
the first query module is used for querying each opened cloud resource which is in an un-unsubscribed state at present and determining the automatic unsubscribing time of each opened cloud resource;
the to-be-cancelled resource determining module is used for determining the opened cloud resources which have reached the automatic unsubscribing moment in each opened cloud resource as the to-be-cancelled cloud resources;
and the cloud resource logout module is used for logging out the cloud resources to be logout.
14. The apparatus according to claim 13, wherein the first query module is specifically configured to read, according to a preset logout period, resource instance records corresponding to each opened cloud resource stored in the cloud resource information database, and determine, according to the read resource instance records, an automatic unsubscribe time of the opened cloud resource corresponding to each resource instance record;
the cloud resource logout module is specifically used for determining an instance identification string of each cloud resource to be logout according to the resource instance record of each cloud resource to be logout as a resource identification to be logout, and determining each cloud resource to be logout according to each resource identification to be logout in the cloud resource pool and logging out.
15. The apparatus according to claim 14, wherein the cloud resource deregistration module is further configured to determine, in the cloud resource pool, each cloud resource to be deregistered according to each resource identifier to be deregistered, and after deregistration, mark a resource instance record corresponding to the resource identifier to be deregistered as a deregistered state.
16. The apparatus of claim 14, wherein the cloud resource deregistration module is further configured to, after the first query module executes determining, according to the read resource instance records, an automatic unsubscribing time of an opened cloud resource corresponding to each resource instance record, determine, if there is no opened cloud resource in the opened cloud resources for which the automatic unsubscribing time has been reached, an opened cloud resource with a smallest automatic unsubscribing time in the opened cloud resources as a first opened cloud resource, determine whether a difference between the automatic unsubscribing time of the first opened cloud resource and a current time is less than a duration of the deregistration period, and if so, generate a timer according to the automatic unsubscribing time of the first opened cloud resource, and when the timer reaches the automatic unsubscribing time of the first opened cloud resource, and returning to execute the first query module, and if the current time is not less than the first preset time, calling a sleep function so as to return to execute the first query module when the current time reaches the automatic unsubscribing time of the first opened cloud resource.
17. A client comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the machine-executable instructions being executable by the processor to: carrying out the method steps of any one of claims 1-2.
18. A server comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the machine-executable instructions being executable by the processor to: -carrying out the method steps of any one of claims 3 to 8.
CN201910955223.6A 2019-10-09 2019-10-09 Cloud resource creating method and device, client and server Active CN112653563B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201910955223.6A CN112653563B (en) 2019-10-09 2019-10-09 Cloud resource creating method and device, client and server
PCT/CN2020/117772 WO2021068763A1 (en) 2019-10-09 2020-09-25 Cloud resource creation method, apparatus, client and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910955223.6A CN112653563B (en) 2019-10-09 2019-10-09 Cloud resource creating method and device, client and server

Publications (2)

Publication Number Publication Date
CN112653563A CN112653563A (en) 2021-04-13
CN112653563B true CN112653563B (en) 2022-07-05

Family

ID=75342571

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910955223.6A Active CN112653563B (en) 2019-10-09 2019-10-09 Cloud resource creating method and device, client and server

Country Status (2)

Country Link
CN (1) CN112653563B (en)
WO (1) WO2021068763A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113110937A (en) * 2021-04-26 2021-07-13 银清科技有限公司 Resource application method and device based on cloud resource operation portal
CN113961360A (en) * 2021-11-10 2022-01-21 中国科学院计算机网络信息中心 Cloud resource settlement method and system
CN114064284A (en) * 2021-11-23 2022-02-18 北京百度网讯科技有限公司 Cloud server resource configuration method and device, electronic equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016164057A1 (en) * 2015-04-08 2016-10-13 Hewlett Packard Enterprise Development Lp Managing cost related to usage of cloud resources
CN106600291A (en) * 2016-12-07 2017-04-26 国云科技股份有限公司 Multi-level agent-based public cloud order delivery method
CN106921958A (en) * 2017-03-30 2017-07-04 北京小米移动软件有限公司 The method and apparatus for quitting the subscription of business

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2643960A4 (en) * 2010-11-25 2015-01-14 Ericsson Telefon Ab L M Method and arrangement for enabling service delivery in a telecommunications network
US20120271949A1 (en) * 2011-04-20 2012-10-25 International Business Machines Corporation Real-time data analysis for resource provisioning among systems in a networked computing environment
CN106462891B (en) * 2014-06-11 2020-08-04 甲骨文国际公司 Providing subscriptions for services using existing subscriptions
CN107493310B (en) * 2016-06-13 2020-08-21 腾讯科技(深圳)有限公司 Cloud resource processing method and cloud management platform
CN107943555B (en) * 2017-10-17 2021-11-23 华南理工大学 Big data storage and processing platform and big data processing method in cloud computing environment
US10832190B2 (en) * 2017-11-16 2020-11-10 International Business Machines Corporation Executable action modification
CN109255208B (en) * 2018-09-04 2020-09-01 浪潮云信息技术股份公司 Software service product authorization method and system
CN109219004B (en) * 2018-11-19 2021-11-16 努比亚技术有限公司 Short message unsubscribing method and device, mobile terminal and readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016164057A1 (en) * 2015-04-08 2016-10-13 Hewlett Packard Enterprise Development Lp Managing cost related to usage of cloud resources
CN106600291A (en) * 2016-12-07 2017-04-26 国云科技股份有限公司 Multi-level agent-based public cloud order delivery method
CN106921958A (en) * 2017-03-30 2017-07-04 北京小米移动软件有限公司 The method and apparatus for quitting the subscription of business

Also Published As

Publication number Publication date
WO2021068763A1 (en) 2021-04-15
CN112653563A (en) 2021-04-13

Similar Documents

Publication Publication Date Title
CN112653563B (en) Cloud resource creating method and device, client and server
US9935847B2 (en) Dynamic grouping of managed devices
US7856498B2 (en) Collaborative alert management and monitoring
EP2989543B1 (en) Method and device for updating client
US8548442B2 (en) Syndication of multiple service instances
CN109152061B (en) Channel allocation method, device, server and storage medium
KR102235992B1 (en) Information processing system, method for controlling information processing system, and program
US20210297378A1 (en) Temporary suspension of electronic communications
CN105117938A (en) E-commerce framework request data analysis method based on model view controller
EP3063725A1 (en) Aggregating, presenting, and fulfilling a number of catalogs
US20200134524A1 (en) Titanium Task-Engine System
US9262241B2 (en) Computer system, computer-implemented method and computer program product for sequencing incoming messages for processing at an application
CN104601624A (en) Data interaction method and device
JP2016040673A (en) Communication capacity management device, communication capacity management method, and program
US20180109851A1 (en) Content playback management
CN110795674B (en) Configuration updating method and device
US10992640B2 (en) Information processing system and non-transitory computer readable medium for managing user information and change request
US11562421B2 (en) Management of revisions on revisions of orders
US20220405871A1 (en) Operation information management method and information processing apparatus
US20150120607A1 (en) System and method for customer event email consolidation and delivery
CN108196962B (en) Method and device for realizing calling of interfaces of different versions
KR20210085516A (en) Restaurant Order Ordering Management System Using Mobile Device
US11823233B2 (en) Real-time consumer interaction via media broadcast with automated callback handling during media playback
US20190188649A1 (en) Fill-in notifications
CN117251840A (en) Authority updating method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant