WO2024022400A1 - Cloud resource configuration method and related device - Google Patents

Cloud resource configuration method and related device Download PDF

Info

Publication number
WO2024022400A1
WO2024022400A1 PCT/CN2023/109389 CN2023109389W WO2024022400A1 WO 2024022400 A1 WO2024022400 A1 WO 2024022400A1 CN 2023109389 W CN2023109389 W CN 2023109389W WO 2024022400 A1 WO2024022400 A1 WO 2024022400A1
Authority
WO
WIPO (PCT)
Prior art keywords
cloud
target user
user
cloud service
cloud resource
Prior art date
Application number
PCT/CN2023/109389
Other languages
French (fr)
Chinese (zh)
Inventor
李阳春
刘艺
林宝洪
Original Assignee
中国电信股份有限公司
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 中国电信股份有限公司 filed Critical 中国电信股份有限公司
Publication of WO2024022400A1 publication Critical patent/WO2024022400A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a cloud-based resource configuration method, device, electronic equipment, computer-readable storage medium, and computer program product.
  • Cloud resources integrate cloud computing-related resource websites so that users can meet their computing needs through the relevant resource websites integrated with cloud resources.
  • cloud resources will always remain in a silent state, causing cloud resources to be occupied, resulting in a waste of cloud resources.
  • the present disclosure provides a cloud resource configuration method, device, electronic equipment, computer-readable storage medium and computer program product, which at least to a certain extent overcomes the problem of cloud resource waste in the process of using cloud resources in related technologies.
  • a cloud resource configuration method including:
  • the target user's network online message contains: the target user's user ID;
  • the cloud service identification allocate corresponding cloud resources to the target users.
  • the method before obtaining the target user's network online message, the method further includes:
  • each user's cloud service application message includes the user ID of each user and the cloud service ID applied for by each user;
  • the method further includes:
  • the target user's network offline message includes: the target user's user ID;
  • obtaining the target user's network online message includes:
  • corresponding cloud resources are allocated to target users according to the cloud service identifier, including:
  • the access gateway send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway establishes a connection with the cloud resource pool where the cloud resource is located based on the address corresponding to the cloud resource.
  • a cloud resource configuration system including: a cloud resource configuration device and an access gateway;
  • the access gateway is configured to send a target user network online message to the cloud resource configuration device, where the network online message includes: the user identification of the target user;
  • the cloud resource configuration device is configured to obtain the network online message of the target user, and determine the cloud service identification of the target user according to the user identification of the target user and the cloud service identification of the target user based on the pre-stored correspondence between the plurality of user identifications and the plurality of cloud service identifications.
  • Business identifier allocate corresponding cloud resources to target users.
  • the cloud resource configuration device includes:
  • the cloud resource policy management module is configured to obtain the network online message of the target user sent by the access gateway, generate a cloud resource policy based on the user's identity contained in the network online message, send the cloud resource policy to the cloud business management module, and Upon receiving the cloud service identification sent by the cloud service management module, send the cloud service identification to the access gateway;
  • the cloud service management module is configured to activate the corresponding cloud service according to the cloud resource policy, and send the cloud service identifier corresponding to the cloud service to the cloud resource policy management module.
  • a cloud resource configuration device including:
  • the first acquisition module is configured to obtain the network online message of the target user, where the network online message includes: the user ID of the target user;
  • the first determination module is configured to determine the cloud service identification of the target user according to the user identification of the target user based on the pre-stored correspondence between multiple user identifications and multiple cloud service identifications;
  • the configuration module is set to allocate corresponding cloud resources to target users based on the cloud service identifier.
  • the cloud resource configuration device further includes:
  • the second acquisition module before acquiring the network online message of the target user, is configured to acquire the cloud service application messages of multiple users, where the cloud service application message of each user includes the user identification of each user and the application information of each user.
  • Cloud business identification is configured to acquire the cloud service application messages of multiple users, where the cloud service application message of each user includes the user identification of each user and the application information of each user.
  • Establishing a module configured to establish corresponding relationships between multiple user IDs and multiple cloud service IDs based on multiple users' cloud service application messages;
  • the storage module is configured to store the correspondence between multiple user IDs and multiple cloud business IDs.
  • the cloud resource configuration device further includes:
  • the third acquisition module after allocating corresponding cloud resources to the target user according to the cloud service identification, is set to obtain the network offline message of the target user, where the network offline message includes: the user identification of the target user;
  • the second determination module determines the cloud service identifier of the target user based on the corresponding relationship between multiple user identifiers and multiple cloud service identifiers;
  • the release module is configured to release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
  • the first acquisition module includes:
  • the first acquisition unit is configured to acquire the message sent by the access gateway that the target user has gone online.
  • the configuration module includes:
  • the first determining unit is configured to determine the cloud resource corresponding to the cloud service identifier according to the cloud service identifier
  • the second determination unit is configured to determine the address corresponding to the cloud resource based on the cloud resource
  • the sending unit is configured to send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway can send the cloud resource to the access gateway according to the address corresponding to the cloud resource and the cloud resource pool where the cloud resource is located. establish connection.
  • an electronic device comprising: a processor; and a memory configured to store executable instructions of the processor; wherein the processor is configured to execute the executable instructions via Perform the above cloud resource configuration method.
  • a computer-readable storage medium on which a computer program is stored.
  • the computer program is executed by a processor, the above-mentioned cloud resource configuration method is implemented.
  • a computer program product including a computer program that implements any of the above cloud resource configuration methods when executed by a processor.
  • a computer program product including a computer program that implements any of the above cloud resource configuration methods when executed by a processor.
  • a cloud resource configuration method, device, electronic device, computer-readable storage medium, and computer program product provided by embodiments of the present disclosure obtain the network online message of the target user, and then determine the target user's network online message based on the user identification contained in the network online message. Cloud service identification corresponding to the user identification, and then allocate corresponding cloud resources to the target user based on the cloud service identification. Therefore, since the target user's network online message is obtained, the cloud resources are configured for the target user based on the target user's identification contained in the network online message, so it is possible to avoid the situation where the target user is offline. The waste of cloud resources caused by configuring cloud resources for target users.
  • Figure 1 shows a schematic diagram of the structure of a cloud resource configuration system in an embodiment of the present disclosure
  • Figure 2 shows a schematic diagram of the structure of another cloud resource configuration system in an embodiment of the present disclosure
  • Figure 3 shows a flow chart of a cloud resource configuration method in an embodiment of the present disclosure
  • Figure 4 shows a flow chart of another cloud resource configuration method in an embodiment of the present disclosure
  • Figure 5 shows a flow chart of yet another cloud resource configuration method in an embodiment of the present disclosure
  • Figure 6 shows a flow chart of yet another cloud resource configuration method in an embodiment of the present disclosure
  • Figure 7 shows a signaling diagram of yet another cloud resource configuration method in an embodiment of the present disclosure
  • Figure 8 shows a schematic diagram of a cloud resource configuration device in an embodiment of the present disclosure
  • Figure 9 shows a structural block diagram of an electronic device in an embodiment of the present disclosure.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments may, however, be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concepts of the example embodiments. To those skilled in the art.
  • the described features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
  • the present disclosure provides a cloud resource configuration method, system, device, equipment and storage medium.
  • Figure 1 shows an architecture diagram of a cloud resource configuration system in an embodiment of the present disclosure.
  • the cloud resource configuration system 10 in an embodiment of the present disclosure may include:
  • Cloud resource configuration device 102 and access gateway 104 Cloud resource configuration device 102 and access gateway 104;
  • the access gateway 104 is configured to send a target user network online message to the cloud resource configuration device 102, where the network online message includes: the user identification of the target user;
  • the cloud resource configuration device 102 is configured to obtain the network online message of the target user, and determine the cloud service identification of the target user based on the user identification of the target user and the cloud service identification of the target user based on the pre-stored correspondence between the plurality of user identifications and the plurality of cloud service identifications. Cloud business identifier, allocate corresponding cloud resources to target users.
  • the access gateway 104 may include the access gateway 104 in the traditional network access service. Among them, the access gateway 104 user completes address allocation and user authorization based on the authentication result of the target user.
  • Cloud resources can be the integration of cloud computing-related resource websites.
  • Cloud computing can be a technology that runs computing components in a virtual rather than a real environment. It is a technology that converts physical resources into logically manageable resources.
  • server equipment, networks, storage devices, etc. are virtualized into a resource pool to uniformly and flexibly allocate cloud resources.
  • the access gateway 104 can be connected to the cloud resources through a wired network or a wireless network.
  • the above-mentioned wireless network or wired network uses standard communication technologies and/or protocols.
  • the network is usually the Internet, but can also be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or virtual private network).
  • LAN Local Area Network
  • MAN Metropolitan Area Network
  • WAN Wide Area Network
  • mobile wired or wireless network
  • private network private network
  • virtual private network virtual private network
  • data exchanged over the network is represented using technologies and/or formats including HyperText Mark-up Language (HTML), Extensible Markup Language (XML), etc.
  • HTML HyperText Mark-up Language
  • XML Extensible Markup Language
  • SSL Secure Socket Layer
  • Transport Layer Security Transport Layer Security
  • Virtual Private Network Virtual Private Network
  • VPN Virtual Private Network
  • IPsec Internet Protocol Security
  • Conventional encryption techniques to encrypt all or some links may also be used in place of or in addition to the above-described data communication technologies.
  • the network online message of the target user sent by the access network is obtained, and then the cloud service identifier corresponding to the user identifier is determined based on the user identifier contained in the network online message, and then the cloud service identifier is determined based on the user identifier.
  • the cloud service identifier allocates corresponding cloud resources to target users. Therefore, in related technologies, the process of user network online is independent from cloud service online and distribution.
  • the access gateway of this application closely connects the user online and cloud resource allocation processes by identifying the user's online access message.
  • the preferred embodiment is to configure cloud resources for the target user based on the target user's identification contained in the online message after obtaining the target user's online message. Therefore, it can avoid the target user being offline. The waste of cloud resources caused by users configuring cloud resources.
  • an embodiment of the present disclosure provides another cloud resource configuration system.
  • the difference between another cloud resource configuration system 20 and the cloud resource configuration system 10 in the above embodiment is that the cloud resource configuration system 20 is different from the cloud resource configuration system 10 in the above embodiment.
  • the resource configuration device 102 may include:
  • the cloud resource policy management module 1021 is configured to obtain the network online message of the target user sent by the access gateway 104, generate a cloud resource policy based on the user's identity contained in the network online message, and send the cloud resource policy to the cloud business management module 1022 , and upon receiving the cloud service identifier sent by the cloud service management module, send the cloud service identifier to the access gateway 104;
  • the cloud service management module 1022 is configured to activate the corresponding cloud service according to the cloud resource policy, and send the cloud service identifier corresponding to the cloud service to the cloud resource policy management module 1021.
  • embodiments of the present disclosure provide a cloud resource configuration method.
  • this method can be executed by any electronic device with computing processing capabilities, and the disclosure does not specifically limit it.
  • Figure 3 shows a flow chart of a cloud resource configuration method provided by an embodiment of the present disclosure.
  • the cloud resource configuration method provided by an embodiment of the present disclosure may include:
  • S302 Obtain the network online message of the target user, where the network online message includes: the user ID of the target user.
  • target user's network online message can be sent to the cloud resource configuration device by any device with information transmission capabilities.
  • the network online message may be a message that the user goes online to a traditional network.
  • the user ID can be any identifier that distinguishes the target user from other users.
  • the user identification may include the target user's phone number, ID number, and information generated by encryption on the target user's device.
  • S304 Based on the pre-stored correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user.
  • the cloud service identifier may be any information that distinguishes the current cloud service from other cloud services.
  • the cloud service identifier may include at least one of a service ID, a service name, and a service version number of the cloud service.
  • the correspondence between multiple user identifiers and multiple cloud service identifiers may be determined by the cloud resource configuration device during the process of the target user registering the cloud service.
  • obtaining the target user's network online message includes:
  • the access gateway is used to send a message that the target user is online. Because it is used The original device is used to complete the sending of messages on the online network, so the problem of resource waste caused by adding new devices can be avoided.
  • S304 may specifically include:
  • the cloud resource configuration device After receiving the network online message of the target user, the cloud resource configuration device matches the correspondence between the multiple pre-stored user identifiers and the multiple cloud service identifiers according to the user identifier in the network online message, and obtains the corresponding user identifier. Correspondence between the user identification and the cloud service identification, and then determine the cloud service identification corresponding to the target user based on the above user identification and the correspondence between the user identification and the cloud service identification.
  • S306 Allocate corresponding cloud resources to the target user according to the cloud service identifier.
  • cloud resources include cloud computing resources corresponding to cloud business identifiers.
  • the network online message of the target user is obtained, and then the cloud service identifier corresponding to the user identifier is determined based on the user identifier contained in the network online message, and then the target user is determined based on the cloud service identifier.
  • Users allocate corresponding cloud resources. Therefore, since the target user's network online message is obtained, the cloud resources are configured for the target user based on the target user's identification contained in the network online message, so it is possible to avoid the situation where the target user is offline. The waste of cloud resources caused by configuring cloud resources for target users.
  • embodiments of the present disclosure provide another cloud resource configuration method.
  • this method can be executed by any electronic device with computer processing capabilities.
  • Figure 4 shows a flow chart of another cloud resource configuration method provided by an embodiment of the present disclosure. As shown in Figure 4, the difference between the embodiment of the present disclosure and the cloud resource configuration method in the above embodiment is that the above implementation S306 in the example may include:
  • S402 Determine the cloud resource corresponding to the cloud service identifier according to the cloud service identifier.
  • cloud resources may include multiple cloud services, and addresses corresponding to cloud resources may include addresses corresponding to multiple cloud services.
  • the address corresponding to the cloud resource may be determined by the cloud service management module in the cloud resource configuration device.
  • S406 Send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway establishes a connection with the cloud resource pool where the cloud resource is located based on the address corresponding to the cloud resource.
  • the cloud resource pool contains multiple cloud resources, and each cloud resource corresponds to an address.
  • the access gateway can establish a connection with the cloud resource pool where the cloud resource is located based on the obtained address of the cloud resource.
  • the embodiment of the present disclosure provides another cloud resource configuration method.
  • the The method can be performed by any electronic device with computer processing capabilities.
  • FIG. 5 shows a flow chart of another cloud resource configuration method provided by an embodiment of the present disclosure. As shown in Figure 5, the difference between the embodiment of the present disclosure and the cloud resource configuration method in the above embodiment is that the present disclosure
  • Another cloud resource configuration method provided by the embodiment may also include: before S302:
  • S502 Obtain cloud service application messages of multiple users, where each user's cloud service application message includes the user ID of each user and the cloud service ID applied for by each user.
  • the cloud service application message may include an application message independently initiated by the target user and set to register the cloud service.
  • the cloud service application message may be an application message initiated by the target user to the cloud resource configuration device after completing the registration of the ordinary network service.
  • S502 may include:
  • the target user After the target user completes the registration of the ordinary network service, the target user sends the cloud service application message to the access gateway. After receiving the cloud service application message from the target user, the access gateway sends the cloud service application message to the cloud resource configuration device.
  • S504 Establish corresponding relationships between multiple user identifiers and multiple cloud service identifiers based on multiple users' cloud service application messages.
  • each cloud service application message includes the user ID of the target user and the cloud service ID of the cloud service that the target user wants to activate. There can be multiple cloud service IDs.
  • the cloud resource configuration device includes a cloud resource policy management module and a cloud service management module.
  • S504 may specifically include:
  • the cloud resource policy management module determines the cloud resource configuration policy based on the received cloud service application message, and then sends the cloud resource configuration policy to the cloud service management module.
  • the cloud service management module activates the corresponding cloud service according to the above cloud service identification to complete the cloud service. Business initialization. Then the cloud service management module sends the activation completion message to the cloud resource policy management module, and the cloud resource policy management module establishes a corresponding relationship between the user identifier and the cloud service identifier of the cloud service activated by the target user.
  • S506 Store correspondences between multiple user identifiers and multiple cloud service identifiers.
  • the target user can be quickly determined through the pre-established corresponding relationship during the subsequent login process of the target user. Cloud services that need to be configured. Improved the efficiency of cloud business use.
  • embodiments of the present disclosure provide yet another cloud resource configuration method.
  • this method can be executed by any electronic device with computer processing capabilities.
  • FIG. 6 shows a flow chart of another cloud resource configuration method provided by an embodiment of the present disclosure. As shown in Figure 6, the difference between the embodiment of the present disclosure and the cloud resource configuration method in the above embodiment is that the present disclosure Another cloud resource configuration method provided by the embodiment may further include: after S306:
  • S602 Obtain the target user's network offline message, where the network offline message includes: the target user's username and password. Account ID.
  • target user's network offline message can be sent to the cloud resource configuration device by any device with information transmission capabilities.
  • the network offline message may be a message that the user is offline from the traditional network.
  • S604 Based on the correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user.
  • S606 Release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
  • the method of releasing the cloud resources corresponding to the cloud service identifier is roughly the same as the method of configuring the cloud resources.
  • the only difference between the method of configuring the cloud resources and the method of releasing the cloud resources is that configuring the cloud resources is the step between the access gateway establishment and The connection to the cloud resource pool, and releasing cloud resources is to disconnect from the cloud resource pool.
  • the target user's network offline message is obtained, and then the target user's cloud service identifier is determined based on the target user's identifier in the network offline message, and then the target user's cloud service identifier is determined based on the target user's cloud service identifier. Release the cloud resources corresponding to the cloud service identifier, thereby avoiding the problem of wasting cloud resources due to the inability to know in time that the target user is not using cloud resources and retaining the connection status of the target user when the target user is not using cloud resources.
  • Figure 7 shows a signaling diagram of the cloud resource configuration method provided by the embodiment of the present disclosure.
  • cloud resource configuration methods may include:
  • the access gateway After receiving the online message of the target user, the access gateway sends the user online message to the cloud resource policy management module, where the user online message includes access service parameters and local interworking parameters.
  • the access service parameters may include the identification of the target user, the address of the target user's access, the address of the target user's access session, and the online identification.
  • Interoperability parameters may include interconnection methods, access gateway parameters, and cloud resource pool parameters.
  • the interconnection method can include the connection method between the access gateway and the cloud resource pool, such as Internet Protocol Security (IPSec) tunnel and virtual extended LAN VxLAN.
  • IPSec Internet Protocol Security
  • VxLAN virtual extended LAN
  • the interconnection method can be the method in which the target user connects to the access gateway.
  • the access gateway parameters may include the address of the access gateway and the interface of the access gateway.
  • Cloud resource pool parameters may include the address of the cloud resource pool and the interface of the cloud resource pool.
  • the cloud resource policy management module after receiving the user's online message, the cloud resource policy management module generates a cloud resource policy based on the user's online message;
  • the cloud resource policy management module sends the generated cloud resource policy to the cloud business management module
  • the cloud service management module activates cloud services according to the cloud resource policy
  • the cloud service management module sends the cloud service identifier of the activated cloud service to the cloud resource policy management module;
  • the cloud resource policy management module generates a cloud resource activation result based on the cloud service identifier
  • the cloud resource policy management module sends the cloud resource activation result and interoperability configuration to the access gateway.
  • the interoperability configuration includes the address of the cloud resource pool and the parameters of the cloud resource pool.
  • the access gateway can complete the connection with the cloud resource pool based on the interoperability configuration.
  • S716 The access gateway completes the configuration on the access gateway side according to the interworking configuration.
  • the target user updates, activates or stops cloud resources.
  • the target user can send cloud resource change signaling to the cloud business management module;
  • the cloud service management module After receiving the cloud resource change signaling, the cloud service management module generates cloud service parameters and cloud resource parameters according to the cloud resource change signaling;
  • Cloud resource parameters may include the type and quantity of cloud resources.
  • the type and quantity of cloud resources may be virtual machines, containers, and the type and quantity of virtual containers.
  • Cloud resource parameters may also include: virtual processor, virtual memory, virtual storage and other parameters; cloud resource deployment requirements, such as cloud resource affinity; cloud resource performance acceleration requirements.
  • the cloud business management module sends cloud business parameters and cloud resource parameters to the cloud resource policy management module;
  • the cloud resource policy management module After receiving the cloud business parameters and cloud resource parameters, the cloud resource policy management module completes changes to the cloud resources based on the cloud business parameters and cloud resource parameters;
  • the cloud resource policy management module can formulate a change policy based on the cloud service parameters and cloud resource parameters, and then send the change policy to the access gateway and cloud resource pool to enable The access gateway and cloud resource pool complete changes to the cloud resource configuration according to the change policy. Then the access gateway and cloud resource pool send the change completion information to the cloud resource policy management module.
  • the cloud resource policy management module will send cloud resource change records to the cloud business management module
  • the cloud resource policy management module generates a cloud resource change record based on the change completion information.
  • the cloud business management module stores cloud resource change records.
  • the user can query the change records of the cloud resources in a timely manner, thereby improving the user experience.
  • embodiments of the present disclosure also provide a cloud resource configuration device, such as the following embodiments. Since the problem-solving principle of this device embodiment is similar to that of the above-mentioned method embodiment, the implementation of this device embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated details will not be repeated.
  • Figure 8 shows a schematic diagram of a cloud resource configuration device in an embodiment of the present disclosure. As shown in Figure 8, the device includes:
  • the first obtaining module 802 is configured to obtain the network online message of the target user, where the network online message includes: the user identification of the target user;
  • the first determination module 804 is configured to determine the cloud service identification of the target user according to the user identification of the target user based on the pre-stored correspondence between multiple user identifications and multiple cloud service identifications;
  • the configuration module 806 is configured to allocate corresponding cloud resources to the target user according to the cloud service identifier.
  • the cloud resource configuration device obtains the network online message of the target user through the first acquisition module, and then uses the first determination module to determine the cloud service identity corresponding to the user identity based on the user identity contained in the network online message. , and then the configuration module allocates corresponding cloud resources to the target user according to the cloud service identifier. Therefore, since the target user's network online message is obtained, the cloud resources are configured for the target user based on the target user's identification contained in the network online message, so it is possible to avoid the situation where the target user is offline. The waste of cloud resources caused by configuring cloud resources for target users.
  • the examples and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned method embodiments. It should be noted that the above-mentioned modules, as part of the device, can be executed in a computer system such as a set of computer-executable instructions.
  • the cloud resource configuration device 800 further includes:
  • the second acquisition module 808, before acquiring the network online message of the target user, is configured to acquire the cloud service application messages of multiple users, where the cloud service application message of each user includes the user identification of each user and the application information of each user.
  • the establishment module 810 is configured to establish corresponding relationships between multiple user identifiers and multiple cloud service identifiers based on the cloud service application messages of multiple users;
  • the storage module 812 is configured to store correspondence relationships between multiple user identifiers and multiple cloud service identifiers.
  • the target user can be quickly determined through the pre-established corresponding relationship during the subsequent login process of the target user. Cloud services that need to be configured. Improved the efficiency of cloud business use.
  • the cloud resource configuration device 800 further includes:
  • the third acquisition module 814 after allocating corresponding cloud resources to the target user according to the cloud service identification, is configured to obtain the network offline message of the target user, where the network offline message includes: the user identification of the target user;
  • the second determination module 816 determines the cloud service identifier of the target user according to the user identifier of the target user based on the correspondence between the multiple user identifiers and the multiple cloud service identifiers;
  • the release module 818 is configured to release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
  • the target user's network offline message is obtained, and then the target user's cloud service identifier is determined based on the target user's identifier in the network offline message, and then the target user's cloud service identifier is determined. Release the cloud resources corresponding to the cloud service identifier, thereby avoiding the problem of wasting cloud resources due to the inability to know in time that the target user is not using cloud resources and retaining the connection status of the target user when the target user is not using cloud resources.
  • the first acquisition module 802 includes:
  • the first acquisition unit is configured to acquire the message sent by the access gateway that the target user has gone online.
  • the configuration module includes:
  • the first determining unit is configured to determine the cloud resource corresponding to the cloud service identifier according to the cloud service identifier
  • the second determination unit is configured to determine the address corresponding to the cloud resource based on the cloud resource
  • the sending unit is configured to send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway can send the cloud resource corresponding address and the cloud resource pool where the cloud resource is located based on the address corresponding to the cloud resource and the cloud resource pool where the cloud resource is located. establish connection.
  • the original access gateway in the traditional network since the original access gateway in the traditional network is used to complete the activation of cloud resources, it can avoid the waste of resources caused by adding components in the process of cloud resource configuration. question
  • FIG. 9 An electronic device 900 according to this embodiment of the present disclosure is described below with reference to FIG. 9 .
  • the electronic device 900 shown in FIG. 9 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
  • electronic device 900 is embodied in the form of a general computing device.
  • the components of the electronic device 900 may include, but are not limited to: the above-mentioned at least one processing unit 910, the above-mentioned at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).
  • the storage unit stores program code, and the program code can be executed by the processing unit 910, so that the processing unit 910 performs the steps according to various exemplary embodiments of the present disclosure described in the "Example Method" section of this specification.
  • the processing unit 910 can perform the following steps of the above method embodiment:
  • the target user's network online message contains: the target user's user ID;
  • the cloud service identification allocate corresponding cloud resources to the target users.
  • the storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and/or a cache storage unit 9202, and may further include a read-only storage unit (ROM) 9203.
  • RAM random access storage unit
  • ROM read-only storage unit
  • Storage unit 920 may also include a program/utility 9204 having a set of (at least one) program modules 9205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples, or some combination, may include the implementation of a network environment.
  • program/utility 9204 having a set of (at least one) program modules 9205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples, or some combination, may include the implementation of a network environment.
  • Bus 930 may be a local area representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or using any of a variety of bus structures. bus.
  • Electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboard, pointing device, Bluetooth device, etc.), and may also communicate with one or more devices that enable a user to interact with electronic device 900, and /or communicate with any device (eg, router, modem, etc.) that enables the electronic device 900 to communicate with one or more other computing devices. This communication may occur through an input/output (I/O) interface 950.
  • the electronic device 900 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 960. As shown, network adapter 960 communicates with other modules of electronic device 900 via bus 930.
  • network adapter 960 communicates with other modules of electronic device 900 via bus 930.
  • electronic device 900 may be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
  • the example embodiments described here can be implemented by software, or can be implemented by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, a network device, etc.) to execute a method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a terminal device, a network device, etc.
  • a computer-readable storage medium is also provided, and the computer-readable storage medium may be a readable signal medium or a readable storage medium.
  • Program products capable of implementing the above methods of the present disclosure are stored thereon.
  • various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code.
  • the program product is run on a terminal device, the program code is configured to cause the terminal device to execute the above-mentioned steps of this specification. The steps according to various exemplary embodiments of the present disclosure are described in the "Exemplary Methods" section.
  • Computer-readable storage media in this disclosure may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard drives, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • RAM random access memory
  • ROM read only memory
  • EPROM or flash memory Erasable programmable read-only memory
  • CD-ROM portable compact disk read-only memory
  • magnetic storage device or any suitable combination of the above.
  • a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave carrying readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above.
  • a readable signal medium may also be any readable medium other than a readable storage medium that can send, propagate, or transport a program configured for use by or in connection with an instruction execution system, apparatus, or device.
  • program code embodied on a computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
  • program code configured to perform the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also includes conventional A procedural programming language—such as "C" or a similar programming language.
  • the program code may execute entirely on the user's computing device, partially on the user's device, as a stand-alone
  • the software package executes partially on the user's computing device and partially on a remote computing device, or entirely on the remote computing device or server.
  • the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device, such as provided by an Internet service. (business comes via Internet connection).
  • LAN local area network
  • WAN wide area network
  • modules or units of the device configured for action execution are mentioned in the above detailed description, this division is not mandatory.
  • the features and functions of two or more modules or units described above may be embodied in one module or unit.
  • the features and functions of one module or unit described above may be further divided into being embodied by multiple modules or units.
  • the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, a network device, etc.) to execute a method according to an embodiment of the present disclosure.
  • a computing device which may be a personal computer, a server, a mobile terminal, a network device, etc.
  • the process described above with reference to the flow chart may be implemented as a computer program product.
  • the computer program product includes: a computer program that implements the above-mentioned cloud resource configuration when executed by a processor. method.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure relates to the field of communication, and provides a cloud resource configuration method, a system, an apparatus and a device. The method comprises: acquiring online and offline information of a target user, wherein the online and offline information comprises: a user identifier of the target user; based on corresponding relationships between a plurality of pre-stored user identifiers and a plurality of cloud service identifiers, using the user identifier of the target user to determine a cloud service identifier of the target user, and according to the cloud service identifier, allocating or releasing a corresponding cloud resource for the target user. The present disclosure avoids the current problem of resource waste occurring during the process of cloud resource utilization. (FIG. 3)

Description

云资源配置方法及相关设备Cloud resource configuration methods and related equipment
相关申请的交叉引用Cross-references to related applications
本公开要求于2022年7月26日提交的申请号为202210885200.4、名称为“云资源配置方法、系统、装置、设备及存储介质”的中国专利申请的优先权,该中国专利申请的全部内容通过引用全部并入本文。This disclosure claims priority to the Chinese patent application with application number 202210885200.4 and titled "Cloud Resource Configuration Method, System, Device, Equipment and Storage Medium" submitted on July 26, 2022. The entire content of this Chinese patent application is approved by All references are incorporated herein.
技术领域Technical field
本公开涉及通信领域,尤其涉及一种基于云资源配置方法、装置、电子设备、计算机可读存储介质及计算机程序产品。The present disclosure relates to the field of communications, and in particular, to a cloud-based resource configuration method, device, electronic equipment, computer-readable storage medium, and computer program product.
背景技术Background technique
当前社会,网络计算量的需求越来越高。为了满足日益增高的计算量需求,多家企业推出了云资源的技术。云资源是将云计算的相关资源网站进行整合,使得用户可以通过云资源整合的相关资源网站来满足用户的计算需求。In today's society, the demand for network computing is getting higher and higher. In order to meet the increasing demand for computing, many companies have launched cloud resource technology. Cloud resources integrate cloud computing-related resource websites so that users can meet their computing needs through the relevant resource websites integrated with cloud resources.
但是在当前在用户开通云资源后,往往并不会一直使用云资源中的相关网站。但是云资源却会一直保持静默状态,使得云资源被占用,造成了云资源的浪费。However, currently after users activate cloud resources, they often do not always use the relevant websites in the cloud resources. However, cloud resources will always remain in a silent state, causing cloud resources to be occupied, resulting in a waste of cloud resources.
发明内容Contents of the invention
本公开提供一种云资源配置方法、装置、电子设备、计算机可读存储介质及计算机程序产品,至少在一定程度上克服相关技术中在云资源使用的过程中存在云资源浪费的问题。The present disclosure provides a cloud resource configuration method, device, electronic equipment, computer-readable storage medium and computer program product, which at least to a certain extent overcomes the problem of cloud resource waste in the process of using cloud resources in related technologies.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Additional features and advantages of the disclosure will be apparent from the following detailed description, or, in part, may be learned by practice of the disclosure.
根据本公开的一个方面,提供一种云资源配置方法,包括:According to one aspect of the present disclosure, a cloud resource configuration method is provided, including:
获取目标用户的网络上线消息,其中,网络上线消息中包含:目标用户的用户标识;Obtain the target user's network online message, where the network online message contains: the target user's user ID;
基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识;Based on the pre-stored correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user;
根据云业务标识,为目标用户分配相应的云资源。According to the cloud service identification, allocate corresponding cloud resources to the target users.
在本公开的一个实施例中,在获取目标用户的网络上线消息之前,方法还包括:In one embodiment of the present disclosure, before obtaining the target user's network online message, the method further includes:
获取多个用户的云业务申请消息,其中,每个用户的云业务申请消息包括每个用户的用户标识以及每个用户申请的云业务标识;Obtain the cloud service application messages of multiple users, where each user's cloud service application message includes the user ID of each user and the cloud service ID applied for by each user;
根据多个用户的云业务申请消息,建立多个用户标识与多个云业务标识之间的对应关系;Establish corresponding relationships between multiple user IDs and multiple cloud service IDs based on the cloud service application messages of multiple users;
存储多个用户标识与多个云业务标识之间的对应关系。 Store the correspondence between multiple user IDs and multiple cloud service IDs.
在本公开的一个实施例中,在根据云业务标识,为目标用户分配相应的云资源之后,方法还包括:In one embodiment of the present disclosure, after allocating corresponding cloud resources to the target user according to the cloud service identifier, the method further includes:
获取目标用户的网络下线消息,其中,网络下线消息包含:目标用户的用户标识;Obtain the target user's network offline message, where the network offline message includes: the target user's user ID;
基于多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识;Based on the correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user;
根据云业务标识释放云业务标识对应的云资。Release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
在本公开的一个实施例中,获取目标用户的网络上线消息,包括:In one embodiment of the present disclosure, obtaining the target user's network online message includes:
获取接入网关发送的目标用户上线网络的消息。Obtain the message sent by the access gateway that the target user has gone online.
在本公开的一个实施例中,根据云业务标识,为目标用户分配相应的云资源,包括:In one embodiment of the present disclosure, corresponding cloud resources are allocated to target users according to the cloud service identifier, including:
根据云业务标识确定云业务标识对应的云资源;Determine the cloud resources corresponding to the cloud service identifier based on the cloud service identifier;
根据云资源确定云资源对应的地址;Determine the address corresponding to the cloud resource based on the cloud resource;
将云资源对应的地址以及云资源开通成功消息发送至接入网关,以使接入网关在确定云资源开通成功后,根据云资源对应的地址与云资源所在的云资源池建立连接。Send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway establishes a connection with the cloud resource pool where the cloud resource is located based on the address corresponding to the cloud resource.
根据本公开的另一个方面,提供一种云资源配置系统,包括:云资源配置装置以及接入网关;According to another aspect of the present disclosure, a cloud resource configuration system is provided, including: a cloud resource configuration device and an access gateway;
接入网关设置为向云资源配置装置发送目标用户网络上线消息,其中,网络上线消息中包含:目标用户的用户标识;The access gateway is configured to send a target user network online message to the cloud resource configuration device, where the network online message includes: the user identification of the target user;
云资源配置装置设置为获取目标用户的网络上线消息,基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识以及根据云业务标识,为目标用户分配相应的云资源。The cloud resource configuration device is configured to obtain the network online message of the target user, and determine the cloud service identification of the target user according to the user identification of the target user and the cloud service identification of the target user based on the pre-stored correspondence between the plurality of user identifications and the plurality of cloud service identifications. Business identifier, allocate corresponding cloud resources to target users.
在本公开的一个实施例中,云资源配置装置包括:In one embodiment of the present disclosure, the cloud resource configuration device includes:
云资源策略管理模块,设置为获取接入网关发送的目标用户的网络上线消息,并根据网络上线消息中包含的用户的标识生成云资源策略,将云资源策略发送至云业务管理模块,以及在接收到云业务管理模块发送的云业务标识的情况下,将云业务标识发送至接入网关;The cloud resource policy management module is configured to obtain the network online message of the target user sent by the access gateway, generate a cloud resource policy based on the user's identity contained in the network online message, send the cloud resource policy to the cloud business management module, and Upon receiving the cloud service identification sent by the cloud service management module, send the cloud service identification to the access gateway;
云业务管理模块,设置为根据云资源策略开通对应的云业务,将云业务对应的云业务标识发送至云资源策略管理模块。The cloud service management module is configured to activate the corresponding cloud service according to the cloud resource policy, and send the cloud service identifier corresponding to the cloud service to the cloud resource policy management module.
根据本公开的再一个方面,提供一种云资源配置装置,包括:According to yet another aspect of the present disclosure, a cloud resource configuration device is provided, including:
第一获取模块,设置为获取目标用户的网络上线消息,其中,网络上线消息中包含:目标用户的用户标识;The first acquisition module is configured to obtain the network online message of the target user, where the network online message includes: the user ID of the target user;
第一确定模块,设置为基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识;The first determination module is configured to determine the cloud service identification of the target user according to the user identification of the target user based on the pre-stored correspondence between multiple user identifications and multiple cloud service identifications;
配置模块,设置为根据云业务标识,为目标用户分配相应的云资源。The configuration module is set to allocate corresponding cloud resources to target users based on the cloud service identifier.
在本公开的一个实施例中,云资源配置装置还包括:In one embodiment of the present disclosure, the cloud resource configuration device further includes:
第二获取模块,在获取目标用户的网络上线消息之前,设置为获取多个用户的云业务申请消息,其中,每个用户的云业务申请消息包括每个用户的用户标识以及每个用户申请 的云业务标识;The second acquisition module, before acquiring the network online message of the target user, is configured to acquire the cloud service application messages of multiple users, where the cloud service application message of each user includes the user identification of each user and the application information of each user. Cloud business identification;
建立模块,设置为根据多个用户的云业务申请消息,建立多个用户标识与多个云业务标识之间的对应关系;Establishing a module configured to establish corresponding relationships between multiple user IDs and multiple cloud service IDs based on multiple users' cloud service application messages;
存储模块,设置为存储多个用户标识与多个云业务标识之间的对应关系。The storage module is configured to store the correspondence between multiple user IDs and multiple cloud business IDs.
在本公开的一个实施例中,云资源配置装置还包括:In one embodiment of the present disclosure, the cloud resource configuration device further includes:
第三获取模块,在根据云业务标识,为目标用户分配相应的云资源之后,设置为获取目标用户的网络下线消息,其中,网络下线消息包含:目标用户的用户标识;The third acquisition module, after allocating corresponding cloud resources to the target user according to the cloud service identification, is set to obtain the network offline message of the target user, where the network offline message includes: the user identification of the target user;
第二确定模块,基于多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识;The second determination module determines the cloud service identifier of the target user based on the corresponding relationship between multiple user identifiers and multiple cloud service identifiers;
释放模块,设置为根据云业务标识释放云业务标识对应的云资源。The release module is configured to release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
在本公开的一个实施例中,第一获取模块,包括:In one embodiment of the present disclosure, the first acquisition module includes:
第一获取单元,设置为获取接入网关发送的目标用户上线网络的消息。The first acquisition unit is configured to acquire the message sent by the access gateway that the target user has gone online.
在本公开的一个实施例中,配置模块,包括:In one embodiment of the present disclosure, the configuration module includes:
第一确定单元,设置为根据云业务标识确定云业务标识对应的云资源;The first determining unit is configured to determine the cloud resource corresponding to the cloud service identifier according to the cloud service identifier;
第二确定单元,设置为根据云资源确定云资源对应的地址;The second determination unit is configured to determine the address corresponding to the cloud resource based on the cloud resource;
发送单元,设置为将云资源对应的地址以及云资源开通成功消息发送至接入网关,以使接入网关在确定云资源开通成功后,根据云资源对应的地址与云资源所在的云资源池建立连接。The sending unit is configured to send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway can send the cloud resource to the access gateway according to the address corresponding to the cloud resource and the cloud resource pool where the cloud resource is located. establish connection.
根据本公开的再一个方面,提供一种电子设备,包括:处理器;以及存储器,设置为存储所述处理器的可执行指令;其中,所述处理器配置为经由执行所述可执行指令来执行上述的云资源配置方法。According to yet another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory configured to store executable instructions of the processor; wherein the processor is configured to execute the executable instructions via Perform the above cloud resource configuration method.
根据本公开的又一个方面,提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述的云资源配置方法。According to yet another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the above-mentioned cloud resource configuration method is implemented.
根据本公开的又一个方面,还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述任意一项的云资源配置方法。According to yet another aspect of the present disclosure, a computer program product is also provided, including a computer program that implements any of the above cloud resource configuration methods when executed by a processor.
根据本公开的又一个方面,还提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述任意一项的云资源配置方法。According to yet another aspect of the present disclosure, a computer program product is also provided, including a computer program that implements any of the above cloud resource configuration methods when executed by a processor.
本公开的实施例所提供的一种云资源配置方法、装置、电子设备、计算机可读存储介质及计算机程序产品,通过获取目标用户的网络上线消息,然后根据网络上线消息中包含的用户标识确定与用户标识对应的云业务标识,然后根据云业务标识为目标用户分配相应的云资源。由此,由于是在获取到目标用户的网络上线消息之后,再根据网络上线消息中包含的目标用户的标识来为目标用户配置云资源,所以能够避免目标用户处于不在线的状态的情况下,为目标用户配置云资源所导致的云资源的浪费。A cloud resource configuration method, device, electronic device, computer-readable storage medium, and computer program product provided by embodiments of the present disclosure obtain the network online message of the target user, and then determine the target user's network online message based on the user identification contained in the network online message. Cloud service identification corresponding to the user identification, and then allocate corresponding cloud resources to the target user based on the cloud service identification. Therefore, since the target user's network online message is obtained, the cloud resources are configured for the target user based on the target user's identification contained in the network online message, so it is possible to avoid the situation where the target user is offline. The waste of cloud resources caused by configuring cloud resources for target users.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。 It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only, and do not limit the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起设置为解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description, serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.
图1示出本公开实施例中一种云资源配置系统结构的示意图;Figure 1 shows a schematic diagram of the structure of a cloud resource configuration system in an embodiment of the present disclosure;
图2示出本公开实施例中另一种云资源配置系统结构的示意图;Figure 2 shows a schematic diagram of the structure of another cloud resource configuration system in an embodiment of the present disclosure;
图3示出本公开实施例中一种云资源配置方法流程图;Figure 3 shows a flow chart of a cloud resource configuration method in an embodiment of the present disclosure;
图4示出本公开实施例中另一种云资源配置方法流程图;Figure 4 shows a flow chart of another cloud resource configuration method in an embodiment of the present disclosure;
图5示出本公开实施例中再一种云资源配置方法流程图;Figure 5 shows a flow chart of yet another cloud resource configuration method in an embodiment of the present disclosure;
图6示出本公开实施例中又一种云资源配置方法流程图;Figure 6 shows a flow chart of yet another cloud resource configuration method in an embodiment of the present disclosure;
图7示出本公开实施例中又一种云资源配置方法信令图;Figure 7 shows a signaling diagram of yet another cloud resource configuration method in an embodiment of the present disclosure;
图8示出本公开实施例中一种云资源配置装置示意图;Figure 8 shows a schematic diagram of a cloud resource configuration device in an embodiment of the present disclosure;
图9示出本公开实施例中一种电子设备的结构框图。Figure 9 shows a structural block diagram of an electronic device in an embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concepts of the example embodiments. To those skilled in the art. The described features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and/or processor devices and/or microcontroller devices.
应当理解,本公开的方法实施方式中记载的各个步骤可以按照不同的顺序执行,和/或并行执行。此外,方法实施方式可以包括附加的步骤和/或省略执行示出的步骤。本公开的范围在此方面不受限制。It should be understood that various steps described in the method implementations of the present disclosure may be executed in different orders and/or in parallel. Furthermore, method embodiments may include additional steps and/or omit performance of illustrated steps. The scope of the present disclosure is not limited in this regard.
需要注意,本公开中提及的“第一”、“第二”等概念仅设置为对不同的装置、模块或单元进行区分,并非设置为限定这些装置、模块或单元所执行的功能的顺序或者相互依存关系。It should be noted that concepts such as “first” and “second” mentioned in this disclosure are only set up to distinguish different devices, modules or units, and are not set up to limit the order of functions performed by these devices, modules or units. Or interdependence.
需要注意,本公开中提及的“一个”、“多个”的修饰是示意性而非限制性的,本领域技术人员应当理解,除非在上下文另有明确指出,否则应该理解为“一个或多 个”。It should be noted that the modifications of "one" and "plurality" mentioned in this disclosure are illustrative and not restrictive. Those skilled in the art will understand that unless the context clearly indicates otherwise, it should be understood as "one or many indivual".
为了解决上述问题,本公开提供了一种云资源配置方法、系统、装置、设备及存储介质。In order to solve the above problems, the present disclosure provides a cloud resource configuration method, system, device, equipment and storage medium.
下面,首先对本公开提供的云资源配置系统进行说明。Below, the cloud resource configuration system provided by the present disclosure is first described.
图1示出了本公开实施例中一种云资源配置系统架构图,如图1所示,本公开实施例中的云资源配置系统10可以包括:Figure 1 shows an architecture diagram of a cloud resource configuration system in an embodiment of the present disclosure. As shown in Figure 1, the cloud resource configuration system 10 in an embodiment of the present disclosure may include:
云资源配置装置102以及接入网关104;Cloud resource configuration device 102 and access gateway 104;
接入网关104设置为向云资源配置装置102发送目标用户网络上线消息,其中,网络上线消息中包含:目标用户的用户标识;The access gateway 104 is configured to send a target user network online message to the cloud resource configuration device 102, where the network online message includes: the user identification of the target user;
云资源配置装置102设置为获取目标用户的网络上线消息,基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识以及根据云业务标识,为目标用户分配相应的云资源。The cloud resource configuration device 102 is configured to obtain the network online message of the target user, and determine the cloud service identification of the target user based on the user identification of the target user and the cloud service identification of the target user based on the pre-stored correspondence between the plurality of user identifications and the plurality of cloud service identifications. Cloud business identifier, allocate corresponding cloud resources to target users.
需要说明的是,接入网关104可以包括传统网络接入业务中的接入网关104。其中,接入网关104用户根据目标用户的认证结果完成地址分配和用户授权。It should be noted that the access gateway 104 may include the access gateway 104 in the traditional network access service. Among them, the access gateway 104 user completes address allocation and user authorization based on the authentication result of the target user.
云资源可以是云计算相关资源网站的整合,云计算可以是将计算元件在虚拟的而不是真实的环境上运行,是把物理资源转化为逻辑上可管理的资源的技术。在云计算平台,服务器设备、网络、存储设备等都被虚拟化成一个资源池来对云资源进行统一灵活的分配。Cloud resources can be the integration of cloud computing-related resource websites. Cloud computing can be a technology that runs computing components in a virtual rather than a real environment. It is a technology that converts physical resources into logically manageable resources. In cloud computing platforms, server equipment, networks, storage devices, etc. are virtualized into a resource pool to uniformly and flexibly allocate cloud resources.
接入网关104与云资源之间可以通过有线网络或无线网络连接。The access gateway 104 can be connected to the cloud resources through a wired network or a wireless network.
可选地,上述的无线网络或有线网络使用标准通信技术和/或协议。网络通常为因特网、但也可以是任何网络,包括但不限于局域网(Local Area Network,LAN)、城域网(Metropolitan Area Network,MAN)、广域网(Wide Area Network,WAN)、移动、有线或者无线网络、专用网络或者虚拟专用网络的任何组合)。Optionally, the above-mentioned wireless network or wired network uses standard communication technologies and/or protocols. The network is usually the Internet, but can also be any network, including but not limited to Local Area Network (LAN), Metropolitan Area Network (MAN), Wide Area Network (Wide Area Network, WAN), mobile, wired or wireless network, private network, or virtual private network).
在一些实施例中,使用包括超文本标记语言(Hyper Text Mark-up Language,HTML)、可扩展标记语言(Extensible MarkupLanguage,XML)等的技术和/或格式来代表通过网络交换的数据。此外还可以使用诸如安全套接字层(Secure Socket Layer,SSL)、传输层安全(Transport Layer Security,TLS)、虚拟专用网络(Virtual Private Network,VPN)、网际协议安全(Internet ProtocolSecurity,IPsec)等常规加密技术来加密所有或者一些链路。在另一些实施例中,还可以使用定制和/或专用数据通信技术取代或者补充上述数据通信技术。In some embodiments, data exchanged over the network is represented using technologies and/or formats including HyperText Mark-up Language (HTML), Extensible Markup Language (XML), etc. In addition, you can also use things such as Secure Socket Layer (Secure Socket Layer, SSL), Transport Layer Security (Transport Layer Security, TLS), Virtual Private Network (Virtual Private Network, VPN), Internet Protocol Security (Internet Protocol Security, IPsec), etc. Conventional encryption techniques to encrypt all or some links. In other embodiments, customized and/or dedicated data communication technologies may also be used in place of or in addition to the above-described data communication technologies.
本公开的实施例所提供的云资源配置系统中,通过获取接入网发送的目标用户的网络上线消息,然后根据网络上线消息中包含的用户标识确定与用户标识对应的云业务标识,然后根据云业务标识为目标用户分配相应的云资源。由此,在相关技术中,用户网络上线的过程与云业务上线、分配是独立的。本申请的接入网关通过识别用户接入网络的上线消息,将用户上线和云资源的分配过程紧密衔接起来,并且由于本公 开的实施例是在获取到目标用户的上线消息之后,再根据上线消息中包含的目标用户的标识来为目标用户配置云资源,所以能够避免目标用户处于不在线的状态的情况下,为目标用户配置云资源所导致的云资源的浪费。In the cloud resource configuration system provided by the embodiments of the present disclosure, the network online message of the target user sent by the access network is obtained, and then the cloud service identifier corresponding to the user identifier is determined based on the user identifier contained in the network online message, and then the cloud service identifier is determined based on the user identifier. The cloud service identifier allocates corresponding cloud resources to target users. Therefore, in related technologies, the process of user network online is independent from cloud service online and distribution. The access gateway of this application closely connects the user online and cloud resource allocation processes by identifying the user's online access message. The preferred embodiment is to configure cloud resources for the target user based on the target user's identification contained in the online message after obtaining the target user's online message. Therefore, it can avoid the target user being offline. The waste of cloud resources caused by users configuring cloud resources.
基于相同的发明构思,本公开实施例提供了另一种云资源配置系统,如图2所示,另一种云资源配置系统20与上述实施例中的云资源配置系统10的区别在于,云资源配置装置102可以包括:Based on the same inventive concept, an embodiment of the present disclosure provides another cloud resource configuration system. As shown in Figure 2, the difference between another cloud resource configuration system 20 and the cloud resource configuration system 10 in the above embodiment is that the cloud resource configuration system 20 is different from the cloud resource configuration system 10 in the above embodiment. The resource configuration device 102 may include:
云资源策略管理模块1021,设置为获取接入网关104发送的目标用户的网络上线消息,并根据网络上线消息中包含的用户的标识生成云资源策略,将云资源策略发送至云业务管理模块1022,以及在接收到云业务管理模块发送的云业务标识的情况下,将云业务标识发送至接入网关104;The cloud resource policy management module 1021 is configured to obtain the network online message of the target user sent by the access gateway 104, generate a cloud resource policy based on the user's identity contained in the network online message, and send the cloud resource policy to the cloud business management module 1022 , and upon receiving the cloud service identifier sent by the cloud service management module, send the cloud service identifier to the access gateway 104;
云业务管理模块1022,设置为根据云资源策略开通对应的云业务,将云业务对应的云业务标识发送至云资源策略管理模块1021。The cloud service management module 1022 is configured to activate the corresponding cloud service according to the cloud resource policy, and send the cloud service identifier corresponding to the cloud service to the cloud resource policy management module 1021.
基于相同的发明构思,本公开实施例提供了一种云资源配置方法,原则上,该方法可以由任意具备计算处理能力的电子设备执行,本公开不作具体限定。Based on the same inventive concept, embodiments of the present disclosure provide a cloud resource configuration method. In principle, this method can be executed by any electronic device with computing processing capabilities, and the disclosure does not specifically limit it.
图3示出了本公开实施例提供的云资源配置方法流程图,如图3所示,本公开实施例提供的云资源配置方法可以包括:Figure 3 shows a flow chart of a cloud resource configuration method provided by an embodiment of the present disclosure. As shown in Figure 3, the cloud resource configuration method provided by an embodiment of the present disclosure may include:
S302,获取目标用户的网络上线消息,其中,网络上线消息中包含:目标用户的用户标识。S302: Obtain the network online message of the target user, where the network online message includes: the user ID of the target user.
需要说明的是,目标用户的网络上线消息可以由任意具备信息传输能力的设备发送至云资源配置装置。It should be noted that the target user's network online message can be sent to the cloud resource configuration device by any device with information transmission capabilities.
网络上线消息可以是用户上线传统网络的消息。The network online message may be a message that the user goes online to a traditional network.
用户标识可以是能够将目标用户区别于其他用户的任意标识。The user ID can be any identifier that distinguishes the target user from other users.
示例性的,用户标识可以包括目标用户的电话号码、身份证号码以及目标用户设备通过加密生成的信息。For example, the user identification may include the target user's phone number, ID number, and information generated by encryption on the target user's device.
S304,基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识。S304: Based on the pre-stored correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user.
需要说明的是,云业务可以有多个。云业务标识可以是将当前云业务区别于其他云业务的任意的信息。It should be noted that there can be multiple cloud services. The cloud service identifier may be any information that distinguishes the current cloud service from other cloud services.
示例性的,云业务标识可以包括云业务的业务ID、业务名称以及业务的版本号中的至少一个。For example, the cloud service identifier may include at least one of a service ID, a service name, and a service version number of the cloud service.
多个用户标识与多个云业务标识之间的对应关系可以是在目标用户在对云业务进行注册的过程中由云资源配置装置确定的。The correspondence between multiple user identifiers and multiple cloud service identifiers may be determined by the cloud resource configuration device during the process of the target user registering the cloud service.
在一些实施例中,获取目标用户的网络上线消息,包括:In some embodiments, obtaining the target user's network online message includes:
获取接入网关发送的目标用户上线网络的消息。Obtain the message sent by the access gateway that the target user has gone online.
本公开实施例中,通过利用接入网关来发送目标用户上线网络的消息。由于是使 用原有的装置来完成上线网络的消息的发送,所以能够避免由于增加新的装置而导致的资源浪费的问题。In the embodiment of the present disclosure, the access gateway is used to send a message that the target user is online. Because it is used The original device is used to complete the sending of messages on the online network, so the problem of resource waste caused by adding new devices can be avoided.
在一些实施例中,S304具体可以包括:In some embodiments, S304 may specifically include:
云资源配置装置在接收到目标用户的网络上线消息之后,根据网络上线消息中的用户标识对预先存储的多个用户标识与多个云业务标识之间的对应关系进行匹配,得到用户标识对应的用户标识与云业务标识之间的对应关系,然后根据上述用户标识以及用户标识与云业务标识之间的对应关系确定与目标用户对应的云业务标识。After receiving the network online message of the target user, the cloud resource configuration device matches the correspondence between the multiple pre-stored user identifiers and the multiple cloud service identifiers according to the user identifier in the network online message, and obtains the corresponding user identifier. Correspondence between the user identification and the cloud service identification, and then determine the cloud service identification corresponding to the target user based on the above user identification and the correspondence between the user identification and the cloud service identification.
S306,根据云业务标识,为目标用户分配相应的云资源。S306: Allocate corresponding cloud resources to the target user according to the cloud service identifier.
需要说明的是,云资源包括与云业务标识对应的云计算资源。It should be noted that cloud resources include cloud computing resources corresponding to cloud business identifiers.
本公开的实施例所提供的云资源配置方法中,通过获取目标用户的网络上线消息,然后根据网络上线消息中包含的用户标识确定与用户标识对应的云业务标识,然后根据云业务标识为目标用户分配相应的云资源。由此,由于是在获取到目标用户的网络上线消息之后,再根据网络上线消息中包含的目标用户的标识来为目标用户配置云资源,所以能够避免目标用户处于不在线的状态的情况下,为目标用户配置云资源所导致的云资源的浪费。In the cloud resource configuration method provided by the embodiments of the present disclosure, the network online message of the target user is obtained, and then the cloud service identifier corresponding to the user identifier is determined based on the user identifier contained in the network online message, and then the target user is determined based on the cloud service identifier. Users allocate corresponding cloud resources. Therefore, since the target user's network online message is obtained, the cloud resources are configured for the target user based on the target user's identification contained in the network online message, so it is possible to avoid the situation where the target user is offline. The waste of cloud resources caused by configuring cloud resources for target users.
基于相同的发明构思,本公开实施例提供了另一种云资源配置方法,原则上,该方法可以由任意具备计算机处理能力的电子设备执行。Based on the same inventive concept, embodiments of the present disclosure provide another cloud resource configuration method. In principle, this method can be executed by any electronic device with computer processing capabilities.
图4示出了本公开实施例提供的另一种云资源配置方法的流程图,如图4所示,本公开实施例与上述实施例中的一种云资源配置方法的区别在于,上述实施例中的S306可以包括:Figure 4 shows a flow chart of another cloud resource configuration method provided by an embodiment of the present disclosure. As shown in Figure 4, the difference between the embodiment of the present disclosure and the cloud resource configuration method in the above embodiment is that the above implementation S306 in the example may include:
S402,根据云业务标识确定云业务标识对应的云资源。S402: Determine the cloud resource corresponding to the cloud service identifier according to the cloud service identifier.
S404,根据云资源确定云资源对应的地址;S404, determine the address corresponding to the cloud resource according to the cloud resource;
需要说明的是,云资源可以包括多个云业务,云资源对应的地址可以包括多个云业务对应的地址。It should be noted that cloud resources may include multiple cloud services, and addresses corresponding to cloud resources may include addresses corresponding to multiple cloud services.
作为一个示例,可以由云资源配置装置中的云业务管理模块确定云资源对应的地址。As an example, the address corresponding to the cloud resource may be determined by the cloud service management module in the cloud resource configuration device.
S406,将云资源对应的地址以及云资源开通成功消息发送至接入网关,以使接入网关在确定云资源开通成功后,根据云资源对应的地址与云资源所在的云资源池建立连接。S406: Send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway establishes a connection with the cloud resource pool where the cloud resource is located based on the address corresponding to the cloud resource.
需要说明的是,云资源池包含多个云资源,每个云资源对应一个地址,接入网关可以根据获取的云资源的地址与云资源所在的云资源池建立连接。It should be noted that the cloud resource pool contains multiple cloud resources, and each cloud resource corresponds to an address. The access gateway can establish a connection with the cloud resource pool where the cloud resource is located based on the obtained address of the cloud resource.
本公开实施例提供的云资源配置方法中,由于是利用传统网络中原有的接入网关完成云资源的开通,所以能够避免由于在云资源配置的过程中增加元器件所导致的资源的浪费的问题。In the cloud resource configuration method provided by the embodiments of the present disclosure, since the original access gateway in the traditional network is used to complete the activation of cloud resources, it is possible to avoid the waste of resources caused by adding components in the process of cloud resource configuration. question.
基于相同的发明构思,本公开实施例提供了另一种云资源配置方法,原则上,该 方法可以由任意具备计算机处理能力的电子设备执行。Based on the same inventive concept, the embodiment of the present disclosure provides another cloud resource configuration method. In principle, the The method can be performed by any electronic device with computer processing capabilities.
图5示出了本公开实施例提供的另一种云资源配置方法的流程图,如图5所示,本公开实施例与上述实施例中的一种云资源配置方法的区别在于,本公开实施例提供的另一种云资源配置方法在S302之前,还可以包括:Figure 5 shows a flow chart of another cloud resource configuration method provided by an embodiment of the present disclosure. As shown in Figure 5, the difference between the embodiment of the present disclosure and the cloud resource configuration method in the above embodiment is that the present disclosure Another cloud resource configuration method provided by the embodiment may also include: before S302:
S502,获取多个用户的云业务申请消息,其中,每个用户的云业务申请消息包括每个用户的用户标识以及每个用户申请的云业务标识。S502: Obtain cloud service application messages of multiple users, where each user's cloud service application message includes the user ID of each user and the cloud service ID applied for by each user.
需要说明的是,云业务申请消息可以包括由目标用户自主发起的,设置为注册云业务的申请消息。It should be noted that the cloud service application message may include an application message independently initiated by the target user and set to register the cloud service.
云业务申请消息可以是目标用户在完成对普通网络业务注册之后,向云资源配置装置发起的申请消息。The cloud service application message may be an application message initiated by the target user to the cloud resource configuration device after completing the registration of the ordinary network service.
在一些实施例中,S502可以包括:In some embodiments, S502 may include:
在目标用户完成普通网络业务的注册之后,由目标用户将云业务申请消息发送至接入网关,接入网关在接收到目标用户的云业务申请消息之后,将云业务申请消息发送至云资源配置装置。After the target user completes the registration of the ordinary network service, the target user sends the cloud service application message to the access gateway. After receiving the cloud service application message from the target user, the access gateway sends the cloud service application message to the cloud resource configuration device.
S504,根据多个用户的云业务申请消息,建立多个用户标识与多个云业务标识之间的对应关系。S504: Establish corresponding relationships between multiple user identifiers and multiple cloud service identifiers based on multiple users' cloud service application messages.
需要说明的是,每个云业务申请消息均包括目标用户的用户标识以及目标用户想要开通的云业务的云业务标识,云业务标识可以有多个。It should be noted that each cloud service application message includes the user ID of the target user and the cloud service ID of the cloud service that the target user wants to activate. There can be multiple cloud service IDs.
在一些实施例中,云资源配置装置包括云资源策略管理模块、云业务管理模块,S504具体可以包括:In some embodiments, the cloud resource configuration device includes a cloud resource policy management module and a cloud service management module. S504 may specifically include:
云资源策略管理模块根据接收到的云业务申请消息确定云资源配置策略,然后将云资源配置策略发送至云业务管理模块,由云业务管理模块根据上述云业务标识开通对应的云业务,完成云业务的初始化。然后云业务管理模块将开通完成的消息发送至云资源策略管理模块,云资源策略管理模块建立用户标识与目标用户开通的云业务的云业务标识之间的对应关系。The cloud resource policy management module determines the cloud resource configuration policy based on the received cloud service application message, and then sends the cloud resource configuration policy to the cloud service management module. The cloud service management module activates the corresponding cloud service according to the above cloud service identification to complete the cloud service. Business initialization. Then the cloud service management module sends the activation completion message to the cloud resource policy management module, and the cloud resource policy management module establishes a corresponding relationship between the user identifier and the cloud service identifier of the cloud service activated by the target user.
S506,存储多个用户标识与多个云业务标识之间的对应关系。S506: Store correspondences between multiple user identifiers and multiple cloud service identifiers.
本公开实施例提供的云资源配置方法中,由于是配置了用户标识与云业务标识之间的对应关系,所以可以在之后目标用户登录的过程中,通过预先建立的对应关系快速的确定目标用户需要配置的云业务。提高了云业务使用的效率。In the cloud resource configuration method provided by the embodiment of the present disclosure, since the corresponding relationship between the user identification and the cloud service identification is configured, the target user can be quickly determined through the pre-established corresponding relationship during the subsequent login process of the target user. Cloud services that need to be configured. Improved the efficiency of cloud business use.
基于相同的发明构思,本公开实施例提供了再一种云资源配置方法,原则上,该方法可以由任意具备计算机处理能力的电子设备执行。Based on the same inventive concept, embodiments of the present disclosure provide yet another cloud resource configuration method. In principle, this method can be executed by any electronic device with computer processing capabilities.
图6示出了本公开实施例提供的另一种云资源配置方法的流程图,如图6所示,本公开实施例与上述实施例中的一种云资源配置方法的区别在于,本公开实施例提供的再一种云资源配置方法在S306之后,还可以包括:Figure 6 shows a flow chart of another cloud resource configuration method provided by an embodiment of the present disclosure. As shown in Figure 6, the difference between the embodiment of the present disclosure and the cloud resource configuration method in the above embodiment is that the present disclosure Another cloud resource configuration method provided by the embodiment may further include: after S306:
S602,获取目标用户的网络下线消息,其中,网络下线消息包含:目标用户的用 户标识。S602: Obtain the target user's network offline message, where the network offline message includes: the target user's username and password. Account ID.
需要说明的是,目标用户的网络下线消息可以由任意具备信息传输能力的设备发送至云资源配置装置。It should be noted that the target user's network offline message can be sent to the cloud resource configuration device by any device with information transmission capabilities.
网络下线消息可以是用户下线传统网络的消息。The network offline message may be a message that the user is offline from the traditional network.
S604,基于多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识。S604: Based on the correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user.
需要说明的是,S604中确定云业务标识的方法与S304中确定云业务标识的方法相同,此处不再赘述。It should be noted that the method of determining the cloud service identifier in S604 is the same as the method of determining the cloud service identifier in S304, and will not be described again here.
S606,根据云业务标识释放云业务标识对应的云资源。S606: Release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
需要说明的是,释放云业务标识对应的云资源的方法与配置云资源的方法大致相同,其中,配置云资源的方法与释放云资源的方法的区别仅在于配置云资源是接入网关建立与云资源池的连接,而释放云资源是断开与云资源池的连接。It should be noted that the method of releasing the cloud resources corresponding to the cloud service identifier is roughly the same as the method of configuring the cloud resources. The only difference between the method of configuring the cloud resources and the method of releasing the cloud resources is that configuring the cloud resources is the step between the access gateway establishment and The connection to the cloud resource pool, and releasing cloud resources is to disconnect from the cloud resource pool.
本公开实施例提供的云资源配置方法中,通过获取目标用户的网络下线消息,然后根据网络下线消息中的目标用户的标识确定目标用户的云业务标识,然后根据目标用户的云业务标识释放云业务标识对应的云资源,由此避免了目标用户在未使用云资源的状态下,由于不能及时获知目标用户未使用云资源而保留目标用户的连接状态所导致的云资源浪费的问题。In the cloud resource configuration method provided by the embodiment of the present disclosure, the target user's network offline message is obtained, and then the target user's cloud service identifier is determined based on the target user's identifier in the network offline message, and then the target user's cloud service identifier is determined based on the target user's cloud service identifier. Release the cloud resources corresponding to the cloud service identifier, thereby avoiding the problem of wasting cloud resources due to the inability to know in time that the target user is not using cloud resources and retaining the connection status of the target user when the target user is not using cloud resources.
基于相同的发明构思,本公开实施例还提供了又一种云资源配置方法,图7示出了本公开实施例提供的云资源配置方法的信令图。Based on the same inventive concept, the embodiment of the present disclosure also provides yet another cloud resource configuration method. Figure 7 shows a signaling diagram of the cloud resource configuration method provided by the embodiment of the present disclosure.
如图7所示,云资源配置方法可以包括:As shown in Figure 7, cloud resource configuration methods may include:
S702,接入网关接收到目标用户上线的消息之后,将用户上线的消息发送至云资源策略管理模块,其中,用户上线的消息包括接入业务参数以及本地互通参数。S702: After receiving the online message of the target user, the access gateway sends the user online message to the cloud resource policy management module, where the user online message includes access service parameters and local interworking parameters.
需要说明的是,接入业务参数可以包括目标用户的标识、目标用户接入的地址、目标用户接入会话的地址,以及在线标识。It should be noted that the access service parameters may include the identification of the target user, the address of the target user's access, the address of the target user's access session, and the online identification.
互通参数可以包括互连方式、接入网关参数以及云资源池参数。Interoperability parameters may include interconnection methods, access gateway parameters, and cloud resource pool parameters.
互连方式可以包括接入网关与云资源池的连接方式,如互联网安全协议(Internet Protocol Security,IPSec)隧道,虚拟扩展局域网VxLAN。The interconnection method can include the connection method between the access gateway and the cloud resource pool, such as Internet Protocol Security (IPSec) tunnel and virtual extended LAN VxLAN.
互连方式可以是目标用户与接入网关连接的方式。The interconnection method can be the method in which the target user connects to the access gateway.
接入网关参数可以包括接入网关的地址,接入网关的接口。The access gateway parameters may include the address of the access gateway and the interface of the access gateway.
云资源池参数可以包括云资源池的地址,云资源池的接口。Cloud resource pool parameters may include the address of the cloud resource pool and the interface of the cloud resource pool.
S704,云资源策略管理模块在接收到用户上线的消息之后,根据用户上线的消息生成云资源策略;S704, after receiving the user's online message, the cloud resource policy management module generates a cloud resource policy based on the user's online message;
S706,云资源策略管理模块将生成的云资源策略发送至云业务管理模块;S706, the cloud resource policy management module sends the generated cloud resource policy to the cloud business management module;
S708,云业务管理模块根据云资源策略开通云业务;S708, the cloud service management module activates cloud services according to the cloud resource policy;
S710,云业务管理模块将开通的云业务的云业务标识发送至云资源策略管理模块; S710, the cloud service management module sends the cloud service identifier of the activated cloud service to the cloud resource policy management module;
S712,云资源策略管理模块根据云业务标识生成云资源开通结果;S712, the cloud resource policy management module generates a cloud resource activation result based on the cloud service identifier;
S714,云资源策略管理模块将云资源开通结果与互通配置发送至接入网关。S714: The cloud resource policy management module sends the cloud resource activation result and interoperability configuration to the access gateway.
需要说明的是,互通配置包括云资源池的地址以及云资源池的参数,接入网关可以根据互通配置完成与云资源池的连接。It should be noted that the interoperability configuration includes the address of the cloud resource pool and the parameters of the cloud resource pool. The access gateway can complete the connection with the cloud resource pool based on the interoperability configuration.
S716,接入网关根据互通配置完成接入网关侧的配置。S716: The access gateway completes the configuration on the access gateway side according to the interworking configuration.
在一些实施例中,目标用户在进行云资源的更新、开通或停止时。目标用户可以将云资源更改信令发送至云业务管理模块;In some embodiments, the target user updates, activates or stops cloud resources. The target user can send cloud resource change signaling to the cloud business management module;
云业务管理模块在接收到云资源更改信令之后根据云资源更改信令生成云业务参数以及云资源参数;After receiving the cloud resource change signaling, the cloud service management module generates cloud service parameters and cloud resource parameters according to the cloud resource change signaling;
需要说明的是云业务参数已经在上述实施例中进行了详细的说明,此处不再赘述。It should be noted that the cloud service parameters have been described in detail in the above embodiments and will not be described again here.
云资源参数可以包括云资源的类型和数量,示例性的,云资源的类型和数量可以是虚拟机、容器,虚拟容器的类型和数量。Cloud resource parameters may include the type and quantity of cloud resources. For example, the type and quantity of cloud resources may be virtual machines, containers, and the type and quantity of virtual containers.
云资源参数还可以包括:虚拟处理器、虚拟内存、虚拟存储等参数;云资源的部署要求,如云资源的亲和性;云资源的性能加速要求。Cloud resource parameters may also include: virtual processor, virtual memory, virtual storage and other parameters; cloud resource deployment requirements, such as cloud resource affinity; cloud resource performance acceleration requirements.
云业务管理模块将云业务参数以及云资源参数发送至云资源策略管理模块;The cloud business management module sends cloud business parameters and cloud resource parameters to the cloud resource policy management module;
云资源策略管理模块在接收到云业务参数以及云资源参数之后,根据云业务参数以及云资源参数完成云资源的更改;After receiving the cloud business parameters and cloud resource parameters, the cloud resource policy management module completes changes to the cloud resources based on the cloud business parameters and cloud resource parameters;
需要说明的是,云资源策略管理模块在接收到云业务参数以及云资源参数之后可以根据云业务参数以及云资源参数制定更改策略,然后将更改策略发送至接入网关以及云资源池,以使接入网关以及云资源池根据更改策略完成云资源配置的更改。然后由接入网关以及云资源池将更改完成信息发送至云资源策略管理模块。It should be noted that after receiving the cloud service parameters and cloud resource parameters, the cloud resource policy management module can formulate a change policy based on the cloud service parameters and cloud resource parameters, and then send the change policy to the access gateway and cloud resource pool to enable The access gateway and cloud resource pool complete changes to the cloud resource configuration according to the change policy. Then the access gateway and cloud resource pool send the change completion information to the cloud resource policy management module.
云资源策略管理模块将将云资源更改记录发送至云云业务管理模块;The cloud resource policy management module will send cloud resource change records to the cloud business management module;
需要说明的是,云资源策略管理模块根据更改完成信息生成云资源更改记录。It should be noted that the cloud resource policy management module generates a cloud resource change record based on the change completion information.
云业务管理模块将云资源更改记录进行存储。The cloud business management module stores cloud resource change records.
本公开实施例中,由于是将云资源的更改记录进行了存储,所以能够使得用户可以及时的对云资源的更改记录进行查询,提高了用户的体验。In this disclosed embodiment, since the change records of the cloud resources are stored, the user can query the change records of the cloud resources in a timely manner, thereby improving the user experience.
基于同一发明构思,本公开实施例中还提供了一种云资源配置装置,如下面的实施例。由于该装置实施例解决问题的原理与上述方法实施例相似,因此该装置实施例的实施可以参见上述方法实施例的实施,重复之处不再赘述。Based on the same inventive concept, embodiments of the present disclosure also provide a cloud resource configuration device, such as the following embodiments. Since the problem-solving principle of this device embodiment is similar to that of the above-mentioned method embodiment, the implementation of this device embodiment can refer to the implementation of the above-mentioned method embodiment, and repeated details will not be repeated.
图8示出本公开实施例中一种云资源配置装置示意图,如图8所示,该装置包括:Figure 8 shows a schematic diagram of a cloud resource configuration device in an embodiment of the present disclosure. As shown in Figure 8, the device includes:
第一获取模块802,设置为获取目标用户的网络上线消息,其中,网络上线消息中包含:目标用户的用户标识;The first obtaining module 802 is configured to obtain the network online message of the target user, where the network online message includes: the user identification of the target user;
第一确定模块804,设置为基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识;The first determination module 804 is configured to determine the cloud service identification of the target user according to the user identification of the target user based on the pre-stored correspondence between multiple user identifications and multiple cloud service identifications;
配置模块806,设置为根据云业务标识,为目标用户分配相应的云资源。 The configuration module 806 is configured to allocate corresponding cloud resources to the target user according to the cloud service identifier.
本公开的实施例所提供的云资源配置装置,通过第一获取模块获取目标用户的网络上线消息,然后由第一确定模块根据网络上线消息中包含的用户标识确定与用户标识对应的云业务标识,然后由配置模块根据云业务标识为目标用户分配相应的云资源。由此,由于是在获取到目标用户的网络上线消息之后,再根据网络上线消息中包含的目标用户的标识来为目标用户配置云资源,所以能够避免目标用户处于不在线的状态的情况下,为目标用户配置云资源所导致的云资源的浪费。The cloud resource configuration device provided by the embodiment of the present disclosure obtains the network online message of the target user through the first acquisition module, and then uses the first determination module to determine the cloud service identity corresponding to the user identity based on the user identity contained in the network online message. , and then the configuration module allocates corresponding cloud resources to the target user according to the cloud service identifier. Therefore, since the target user's network online message is obtained, the cloud resources are configured for the target user based on the target user's identification contained in the network online message, so it is possible to avoid the situation where the target user is offline. The waste of cloud resources caused by configuring cloud resources for target users.
在本公开实施例中,上述模块与对应的步骤所实现的示例和应用场景相同,但不限于上述方法实施例所公开的内容。需要说明的是,上述模块作为装置的一部分可以在诸如一组计算机可执行指令的计算机系统中执行。In the embodiments of the present disclosure, the examples and application scenarios implemented by the above-mentioned modules and corresponding steps are the same, but are not limited to the contents disclosed in the above-mentioned method embodiments. It should be noted that the above-mentioned modules, as part of the device, can be executed in a computer system such as a set of computer-executable instructions.
在本公开的一个实施例中,云资源配置装置800还包括:In one embodiment of the present disclosure, the cloud resource configuration device 800 further includes:
第二获取模块808,在获取目标用户的网络上线消息之前,设置为获取多个用户的云业务申请消息,其中,每个用户的云业务申请消息包括每个用户的用户标识以及每个用户申请的云业务标识;The second acquisition module 808, before acquiring the network online message of the target user, is configured to acquire the cloud service application messages of multiple users, where the cloud service application message of each user includes the user identification of each user and the application information of each user. Cloud business identification;
建立模块810,设置为根据多个用户的云业务申请消息,建立多个用户标识与多个云业务标识之间的对应关系;The establishment module 810 is configured to establish corresponding relationships between multiple user identifiers and multiple cloud service identifiers based on the cloud service application messages of multiple users;
存储模块812,设置为存储多个用户标识与多个云业务标识之间的对应关系。The storage module 812 is configured to store correspondence relationships between multiple user identifiers and multiple cloud service identifiers.
本公开实施例提供的云资源配置装置中,由于是配置了用户标识与云业务标识之间的对应关系,所以可以在之后目标用户登录的过程中,通过预先建立的对应关系快速的确定目标用户需要配置的云业务。提高了云业务使用的效率。In the cloud resource configuration device provided by the embodiment of the present disclosure, since the corresponding relationship between the user identification and the cloud service identification is configured, the target user can be quickly determined through the pre-established corresponding relationship during the subsequent login process of the target user. Cloud services that need to be configured. Improved the efficiency of cloud business use.
在本公开的一个实施例中,云资源配置装置800还包括:In one embodiment of the present disclosure, the cloud resource configuration device 800 further includes:
第三获取模块814,在根据云业务标识,为目标用户分配相应的云资源之后,设置为获取目标用户的网络下线消息,其中,网络下线消息包含:目标用户的用户标识;The third acquisition module 814, after allocating corresponding cloud resources to the target user according to the cloud service identification, is configured to obtain the network offline message of the target user, where the network offline message includes: the user identification of the target user;
第二确定模块816,基于多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识;The second determination module 816 determines the cloud service identifier of the target user according to the user identifier of the target user based on the correspondence between the multiple user identifiers and the multiple cloud service identifiers;
释放模块818,设置为根据云业务标识释放云业务标识对应的云资源。The release module 818 is configured to release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
本公开实施例提供的云资源配置装置中,通过获取目标用户的网络下线消息,然后根据网络下线消息中的目标用户的标识确定目标用户的云业务标识,然后根据目标用户的云业务标识释放云业务标识对应的云资源,由此避免了目标用户在未使用云资源的状态下,由于不能及时获知目标用户未使用云资源而保留目标用户的连接状态所导致的云资源浪费的问题。In the cloud resource configuration device provided by the embodiment of the present disclosure, the target user's network offline message is obtained, and then the target user's cloud service identifier is determined based on the target user's identifier in the network offline message, and then the target user's cloud service identifier is determined. Release the cloud resources corresponding to the cloud service identifier, thereby avoiding the problem of wasting cloud resources due to the inability to know in time that the target user is not using cloud resources and retaining the connection status of the target user when the target user is not using cloud resources.
在本公开的一个实施例中,第一获取模块802,包括:In one embodiment of the present disclosure, the first acquisition module 802 includes:
第一获取单元,设置为获取接入网关发送的目标用户上线网络的消息。The first acquisition unit is configured to acquire the message sent by the access gateway that the target user has gone online.
在本公开的一个实施例中,配置模块,包括:In one embodiment of the present disclosure, the configuration module includes:
第一确定单元,设置为根据云业务标识确定云业务标识对应的云资源;The first determining unit is configured to determine the cloud resource corresponding to the cloud service identifier according to the cloud service identifier;
第二确定单元,设置为根据云资源确定云资源对应的地址; The second determination unit is configured to determine the address corresponding to the cloud resource based on the cloud resource;
发送单元,设置为将云资源对应的地址以及云资源开通成功消息发送至接入网关,以使接入网关在确定云资源开通成功后,根据云资源对应的地址与云资源所在的云资源池建立连接。The sending unit is configured to send the address corresponding to the cloud resource and the cloud resource activation success message to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway can send the cloud resource corresponding address and the cloud resource pool where the cloud resource is located based on the address corresponding to the cloud resource and the cloud resource pool where the cloud resource is located. establish connection.
本公开实施例提供的云资源配置装置中,由于是利用传统网络中原有的接入网关完成云资源的开通,所以能够避免由于在云资源配置的过程中增加元器件所导致的资源的浪费的问题In the cloud resource configuration device provided by the embodiment of the present disclosure, since the original access gateway in the traditional network is used to complete the activation of cloud resources, it can avoid the waste of resources caused by adding components in the process of cloud resource configuration. question
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。Those skilled in the art will understand that various aspects of the present disclosure may be implemented as systems, methods, or program products. Therefore, various aspects of the present disclosure may be embodied in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, which may be collectively referred to herein as "Circuit", "Module" or "System".
下面参照图9来描述根据本公开的这种实施方式的电子设备900。图9显示的电子设备900仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An electronic device 900 according to this embodiment of the present disclosure is described below with reference to FIG. 9 . The electronic device 900 shown in FIG. 9 is only an example and should not impose any limitations on the functions and scope of use of the embodiments of the present disclosure.
如图9所示,电子设备900以通用计算设备的形式表现。电子设备900的组件可以包括但不限于:上述至少一个处理单元910、上述至少一个存储单元920、连接不同系统组件(包括存储单元920和处理单元910)的总线930。As shown in Figure 9, electronic device 900 is embodied in the form of a general computing device. The components of the electronic device 900 may include, but are not limited to: the above-mentioned at least one processing unit 910, the above-mentioned at least one storage unit 920, and a bus 930 connecting different system components (including the storage unit 920 and the processing unit 910).
其中,存储单元存储有程序代码,程序代码可以被处理单元910执行,使得处理单元910执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,处理单元910可以执行上述方法实施例的如下步骤:Wherein, the storage unit stores program code, and the program code can be executed by the processing unit 910, so that the processing unit 910 performs the steps according to various exemplary embodiments of the present disclosure described in the "Example Method" section of this specification. For example, the processing unit 910 can perform the following steps of the above method embodiment:
获取目标用户的网络上线消息,其中,网络上线消息中包含:目标用户的用户标识;Obtain the target user's network online message, where the network online message contains: the target user's user ID;
基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据目标用户的用户标识确定目标用户的云业务标识;Based on the pre-stored correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user;
根据云业务标识,为目标用户分配相应的云资源。According to the cloud service identification, allocate corresponding cloud resources to the target users.
存储单元920可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)9201和/或高速缓存存储单元9202,还可以进一步包括只读存储单元(ROM)9203。The storage unit 920 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 9201 and/or a cache storage unit 9202, and may further include a read-only storage unit (ROM) 9203.
存储单元920还可以包括具有一组(至少一个)程序模块9205的程序/实用工具9204,这样的程序模块9205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。Storage unit 920 may also include a program/utility 9204 having a set of (at least one) program modules 9205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, Each of these examples, or some combination, may include the implementation of a network environment.
总线930可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。Bus 930 may be a local area representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or using any of a variety of bus structures. bus.
电子设备900也可以与一个或多个外部设备940(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备900交互的设备通信,和 /或与使得该电子设备900能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口950进行。并且,电子设备900还可以通过网络适配器960与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器960通过总线930与电子设备900的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备900使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。Electronic device 900 may also communicate with one or more external devices 940 (e.g., keyboard, pointing device, Bluetooth device, etc.), and may also communicate with one or more devices that enable a user to interact with electronic device 900, and /or communicate with any device (eg, router, modem, etc.) that enables the electronic device 900 to communicate with one or more other computing devices. This communication may occur through an input/output (I/O) interface 950. Furthermore, the electronic device 900 may also communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) through the network adapter 960. As shown, network adapter 960 communicates with other modules of electronic device 900 via bus 930. It should be understood that, although not shown in the figures, other hardware and/or software modules may be used in conjunction with electronic device 900, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives And data backup storage system, etc.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。Through the above description of the embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, a network device, etc.) to execute a method according to an embodiment of the present disclosure.
在本公开的示例性实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质可以是可读信号介质或者可读存储介质。其上存储有能够实现本公开上述方法的程序产品。在一些可能的实施方式中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当程序产品在终端设备上运行时,程序代码设置为使终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, and the computer-readable storage medium may be a readable signal medium or a readable storage medium. Program products capable of implementing the above methods of the present disclosure are stored thereon. In some possible implementations, various aspects of the present disclosure can also be implemented in the form of a program product, which includes program code. When the program product is run on a terminal device, the program code is configured to cause the terminal device to execute the above-mentioned steps of this specification. The steps according to various exemplary embodiments of the present disclosure are described in the "Exemplary Methods" section.
本公开中的计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。More specific examples of computer-readable storage media in this disclosure may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard drives, random access memory (RAM), read only memory (ROM), Erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
在本公开中,计算机可读存储介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输设置为由指令执行系统、装置或者器件使用或者与其结合使用的程序。In this disclosure, a computer-readable storage medium may include a data signal propagated in baseband or as part of a carrier wave carrying readable program code therein. Such propagated data signals may take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium that can send, propagate, or transport a program configured for use by or in connection with an instruction execution system, apparatus, or device.
可选地,计算机可读存储介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Alternatively, program code embodied on a computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
在具体实施时,可以以一种或多种程序设计语言的任意组合来编写设置为执行本公开操作的程序代码,程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立 的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。During specific implementation, program code configured to perform the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and also includes conventional A procedural programming language—such as "C" or a similar programming language. The program code may execute entirely on the user's computing device, partially on the user's device, as a stand-alone The software package executes partially on the user's computing device and partially on a remote computing device, or entirely on the remote computing device or server. In situations involving remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device, such as provided by an Internet service. (business comes via Internet connection).
应当注意,尽管在上文详细描述中提及了设置为动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the device configured for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into being embodied by multiple modules or units.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Furthermore, although various steps of the methods of the present disclosure are depicted in the drawings in a specific order, this does not require or imply that the steps must be performed in that specific order, or that all of the illustrated steps must be performed to achieve the desired results. result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, etc.
通过以上实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。Through the description of the above embodiments, those skilled in the art can easily understand that the example embodiments described here can be implemented by software, or can be implemented by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, a network device, etc.) to execute a method according to an embodiment of the present disclosure.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机程序产品,该计算机程序产品包括:计算机程序,所述计算机程序被处理器执行时实现上述的云资源配置方法。In particular, according to embodiments of the present disclosure, the process described above with reference to the flow chart may be implemented as a computer program product. The computer program product includes: a computer program that implements the above-mentioned cloud resource configuration when executed by a processor. method.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由所附的权利要求指出。 Other embodiments of the disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the disclosure that follow the general principles of the disclosure and include common common sense or customary technical means in the technical field that are not disclosed in the disclosure. . It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

Claims (11)

  1. 一种云资源配置方法,包括:A cloud resource configuration method, including:
    获取目标用户的网络上线消息,其中,所述网络上线消息中包含:所述目标用户的用户标识;Obtain the network online message of the target user, wherein the network online message includes: the user identification of the target user;
    基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据所述目标用户的用户标识确定所述目标用户的云业务标识;Based on the pre-stored correspondence between multiple user identifiers and multiple cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user;
    根据所述云业务标识,为所述目标用户分配相应的云资源。According to the cloud service identifier, corresponding cloud resources are allocated to the target user.
  2. 根据权利要求1所述的方法,其中,在获取目标用户的网络上线消息之前,方法还包括:The method according to claim 1, wherein before obtaining the target user's network online message, the method further includes:
    获取多个用户的云业务申请消息,其中,每个用户的云业务申请消息包括每个用户的用户标识以及每个用户申请的云业务标识;Obtain the cloud service application messages of multiple users, where each user's cloud service application message includes the user ID of each user and the cloud service ID applied for by each user;
    根据所述多个用户的云业务申请消息,建立多个用户标识与多个云业务标识之间的对应关系;Establish corresponding relationships between multiple user identifiers and multiple cloud service identifiers according to the cloud service application messages of the multiple users;
    存储所述多个用户标识与多个云业务标识之间的对应关系。Correspondence relationships between the plurality of user identifiers and the plurality of cloud service identifiers are stored.
  3. 根据权利要求1所述的方法,其中,在根据所述云业务标识,为所述目标用户分配相应的云资源之后,方法还包括:The method according to claim 1, wherein, after allocating corresponding cloud resources to the target user according to the cloud service identifier, the method further includes:
    获取目标用户的网络下线消息,其中,所述网络下线消息包含:所述目标用户的用户标识;Obtain the network offline message of the target user, wherein the network offline message includes: the user identification of the target user;
    基于所述多个用户标识与多个云业务标识之间的对应关系,根据所述目标用户的用户标识确定所述目标用户的云业务标识;Based on the correspondence between the plurality of user identifiers and the plurality of cloud service identifiers, determine the cloud service identifier of the target user according to the user identifier of the target user;
    根据所述云业务标识释放所述云业务标识对应的云资源。Release the cloud resources corresponding to the cloud service identifier according to the cloud service identifier.
  4. 根据权利要求1所述的方法,其中,获取目标用户的网络上线消息,包括:The method according to claim 1, wherein obtaining the target user's network online message includes:
    获取接入网关发送的目标用户上线网络的消息。Obtain the message sent by the access gateway that the target user has gone online.
  5. 根据权利要求1所述的方法,其中,根据所述云业务标识,为所述目标用户分配相应的云资源,包括:The method according to claim 1, wherein allocating corresponding cloud resources to the target user according to the cloud service identifier includes:
    根据所述云业务标识确定所述云业务标识对应的云资源;Determine the cloud resource corresponding to the cloud service identifier according to the cloud service identifier;
    根据所述云资源确定所述云资源对应的地址;Determine the address corresponding to the cloud resource according to the cloud resource;
    将所述云资源对应的地址以及云资源开通成功消息发送至接入网关,以使所述接入网关在确定云资源开通成功后,根据所述云资源对应的地址与所述云资源所在的云资源池建立连接。The address corresponding to the cloud resource and the cloud resource activation success message are sent to the access gateway, so that after determining that the cloud resource is successfully activated, the access gateway can, according to the address corresponding to the cloud resource and the location where the cloud resource is located, Establish a connection to the cloud resource pool.
  6. 一种云资源配置系统,其中,包括:云资源配置装置以及接入网关;A cloud resource configuration system, which includes: a cloud resource configuration device and an access gateway;
    所述接入网关设置为向所述云资源配置装置发送目标用户网络上线消息,其中,所述网络上线消息中包含:所述目标用户的用户标识; The access gateway is configured to send a target user network online message to the cloud resource configuration device, wherein the network online message includes: the user identification of the target user;
    所述云资源配置装置设置为获取目标用户的网络上线消息,基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据所述目标用户的用户标识确定所述目标用户的云业务标识以及根据所述云业务标识,为所述目标用户分配相应的云资源。The cloud resource configuration device is configured to obtain the network online message of the target user, and determine the target user's identity based on the user identification of the target user based on the correspondence between the plurality of pre-stored user identifiers and the plurality of cloud service identifiers. Cloud service identifier and allocate corresponding cloud resources to the target user according to the cloud service identifier.
  7. 根据权利要求6所述的系统,其中,所述云资源配置装置包括:The system according to claim 6, wherein the cloud resource configuration device includes:
    云资源策略管理模块,设置为获取所述接入网关发送的目标用户的网络上线消息,并根据所述网络上线消息中包含的用户的标识生成云资源策略,将所述云资源策略发送至云业务管理模块,以及在接收到所述云业务管理模块发送的云业务标识的情况下,将所述云业务标识发送至所述接入网关;The cloud resource policy management module is configured to obtain the network online message of the target user sent by the access gateway, generate a cloud resource policy based on the user's identity contained in the network online message, and send the cloud resource policy to the cloud a service management module, and upon receiving the cloud service identifier sent by the cloud service management module, send the cloud service identifier to the access gateway;
    所述云业务管理模块,设置为根据所述云资源策略开通对应的云业务,将所述云业务对应的云业务标识发送至所述云资源策略管理模块。The cloud service management module is configured to activate the corresponding cloud service according to the cloud resource policy, and send the cloud service identifier corresponding to the cloud service to the cloud resource policy management module.
  8. 一种云资源配置装置,其中,包括:A cloud resource configuration device, which includes:
    第一获取模块,设置为获取目标用户的网络上线消息,其中,所述网络上线消息中包含:所述目标用户的用户标识;The first acquisition module is configured to obtain the network online message of the target user, wherein the network online message includes: the user identification of the target user;
    第一确定模块,设置为基于预先存储的多个用户标识与多个云业务标识之间的对应关系,根据所述目标用户的用户标识确定所述目标用户的云业务标识;The first determination module is configured to determine the cloud service identification of the target user according to the user identification of the target user based on the pre-stored correspondence between the plurality of user identifications and the plurality of cloud service identifications;
    配置模块,设置为根据所述云业务标识,为所述目标用户分配相应的云资源。The configuration module is configured to allocate corresponding cloud resources to the target user according to the cloud service identifier.
  9. 一种电子设备,包括:An electronic device including:
    处理器;以及processor; and
    存储器,设置为存储所述处理器的可执行指令;a memory configured to store executable instructions for said processor;
    其中,所述处理器配置为经由执行所述可执行指令来执行权利要求1~5中任意一项所述云资源配置方法。Wherein, the processor is configured to execute the cloud resource configuration method in any one of claims 1 to 5 by executing the executable instructions.
  10. 一种计算机可读存储介质,其上存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1~5中任意一项所述的云资源配置方法。A computer-readable storage medium on which a computer program is stored, wherein when the computer program is executed by a processor, the cloud resource configuration method described in any one of claims 1 to 5 is implemented.
  11. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现权利要求1~5中任意一项所述的云资源配置方法。 A computer program product, including a computer program, which when executed by a processor implements the cloud resource configuration method described in any one of claims 1 to 5.
PCT/CN2023/109389 2022-07-26 2023-07-26 Cloud resource configuration method and related device WO2024022400A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210885200.4 2022-07-26
CN202210885200.4A CN115277827A (en) 2022-07-26 2022-07-26 Cloud resource configuration method, system, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2024022400A1 true WO2024022400A1 (en) 2024-02-01

Family

ID=83769365

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/109389 WO2024022400A1 (en) 2022-07-26 2023-07-26 Cloud resource configuration method and related device

Country Status (2)

Country Link
CN (1) CN115277827A (en)
WO (1) WO2024022400A1 (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404738A (en) * 2010-09-14 2012-04-04 中国移动通信集团山东有限公司 Method, system and authentication server for being switched in and retreating from wireless local area network (WLAN)
CN102685725A (en) * 2012-05-11 2012-09-19 中国联合网络通信集团有限公司 Information receiving method, information sending method, devices, and system
CN104219334A (en) * 2013-05-30 2014-12-17 中国联合网络通信集团有限公司 User tracing method and device and broadband access server
US20150006733A1 (en) * 2013-06-28 2015-01-01 Verizon Patent And Licensing Inc. Policy-based session establishment and transfer in a virtualized/cloud environment
WO2018054157A1 (en) * 2016-09-26 2018-03-29 华为技术有限公司 Method, apparatus and system for releasing session resource
WO2019144826A1 (en) * 2018-01-24 2019-08-01 中兴通讯股份有限公司 Network identifier mapping method and system, terminal, and identification gateway
CN111881476A (en) * 2020-07-28 2020-11-03 平安科技(深圳)有限公司 Object storage control method and device, computer equipment and storage medium
CN113987300A (en) * 2021-09-26 2022-01-28 阿里巴巴(中国)有限公司 Label generation method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104463492B (en) * 2014-12-23 2017-12-26 国家电网公司 A kind of operation management method of power system cloud emulation platform
CN112260888B (en) * 2020-09-27 2022-07-12 北京天融信网络安全技术有限公司 Container cloud and resource management method of container cloud
CN114666159B (en) * 2022-04-20 2024-04-30 青岛聚好联科技有限公司 Cloud service system, method, device, equipment and medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404738A (en) * 2010-09-14 2012-04-04 中国移动通信集团山东有限公司 Method, system and authentication server for being switched in and retreating from wireless local area network (WLAN)
CN102685725A (en) * 2012-05-11 2012-09-19 中国联合网络通信集团有限公司 Information receiving method, information sending method, devices, and system
CN104219334A (en) * 2013-05-30 2014-12-17 中国联合网络通信集团有限公司 User tracing method and device and broadband access server
US20150006733A1 (en) * 2013-06-28 2015-01-01 Verizon Patent And Licensing Inc. Policy-based session establishment and transfer in a virtualized/cloud environment
WO2018054157A1 (en) * 2016-09-26 2018-03-29 华为技术有限公司 Method, apparatus and system for releasing session resource
WO2019144826A1 (en) * 2018-01-24 2019-08-01 中兴通讯股份有限公司 Network identifier mapping method and system, terminal, and identification gateway
CN111881476A (en) * 2020-07-28 2020-11-03 平安科技(深圳)有限公司 Object storage control method and device, computer equipment and storage medium
CN113987300A (en) * 2021-09-26 2022-01-28 阿里巴巴(中国)有限公司 Label generation method and device

Also Published As

Publication number Publication date
CN115277827A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
US10367647B2 (en) Certificate acquiring method and device
US9753786B2 (en) Client server communication system
JP5293580B2 (en) Web service system, web service method and program
WO2020143196A1 (en) Communication method and device between blockchain nodes, storage medium and electronic apparatus
US10645172B1 (en) Socket tunneling connections in a service provider environment
KR20140021677A (en) Method and apparatus for remote delivery of managed usb services via a mobile computing device
US9912663B2 (en) Enabling secure network mobile device communications
US11762748B2 (en) Test controller securely controlling a test platform to run test applications
WO2023179715A1 (en) Data channel construction method and apparatus
CN111726328B (en) Method, system and related device for remotely accessing a first device
US9760412B2 (en) Client server communication system
CN115150113A (en) Method for accessing intranet application and related equipment
CN110430478B (en) Networking communication method, device, terminal equipment and storage medium
WO2023138335A1 (en) Differentiated control method and apparatus for user terminal, and related device
WO2023246060A1 (en) User authentication and authorization method and apparatus, and medium and device
WO2024022400A1 (en) Cloud resource configuration method and related device
WO2020154141A1 (en) Computing system with gateway data transfer based upon device data flow characteristics and related methods
WO2014089968A1 (en) Virtual machine system data encryption method and device
US9794225B2 (en) Secure network communications in a mobile device over IPsec
WO2018120182A1 (en) Private information distribution method and device
CN115348310B (en) Reverse proxy method, device, system, electronic equipment and storage medium
WO2023241351A1 (en) Virtual machine monitoring method and apparatus, and storage medium
US11824917B2 (en) Computing system with data transfer based upon device data flow characteristics and related methods
CN114785612B (en) Cloud platform management method, device, equipment and medium
CN116566911A (en) Load balancing method, load balancing device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23845608

Country of ref document: EP

Kind code of ref document: A1