Operation method and system for improving accurate statistics of activeness of cloud computer
By sending login and connection confirmation messages on the MQ client in the cloud computer terminal and triggering the MQ last words mechanism in abnormal situations, the problem of insufficient statistical accuracy of cloud computer activity is solved, real-time and accurate recording of active status is achieved, and refined management and operation of cloud computer services is supported.
Patent Information
- Application Number
- CN202510091795.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-05-02
- Estimated Expiration
- 2045-01-21
AI Technical Summary
The existing cloud computer activity statistics methods are insufficient in the face of abnormal situations such as network disconnection and power outage, and cannot update the status information of the cloud computer in a timely and effective manner, resulting in inaccurate activity statistics and affecting operation and maintenance decisions and operational results.
By sending login and connection confirmation messages on the MQ client in the cloud computer terminal, the connection relationship between the user and the cloud computer is confirmed using the user's basic information and the unique identifier of the cloud computer. When the cloud computer terminal is disconnected due to abnormal conditions, the MQ last word mechanism will be automatically triggered, and the last word message will be sent to update the link status of the cloud computer in real time and calculate the activity data.
It realizes real-time and accurate recording of cloud computer activity status in the event of abnormal situations such as network disconnection and power outage, improves the accuracy of cloud computer activity statistics, and provides reliable data support for the refined management and operation of cloud computer services.
Smart Images

Figure CN119922093A_ABST
Abstract
Description
Technical Field
[0001] The invention discloses an operation method and a system for improving accurate statistics of cloud computer activity, and relates to the technical field of cloud computing. Background Art
[0002] Cloud computing, also known as cloud computing services, includes cloud resources, transmission protocols and cloud terminals. It uses open cloud terminals to provide users with desktops, applications, hardware and other resources in an on-demand and elastically allocated service model through transmission protocols. Users do not need to consider building a complex IT architecture to achieve the function of single-machine multi-user.
[0003] With the rapid development of cloud computing technology, cloud computers, as a new computing service model, have been widely used due to their advantages such as high efficiency, flexibility, and on-demand resource allocation. However, in the operation and management of cloud computers, accurately counting the activity of cloud computers has become a major challenge. Existing statistical methods often rely on active user operations or regular heartbeat packet detection, but when encountering sudden abnormal situations such as network disconnection and power outages, the status information of cloud computers cannot be updated in a timely and effective manner, resulting in inaccurate activity statistics, which in turn affects operation and maintenance decisions and operational results. Summary of the invention
[0004] In view of the problem that the existing cloud computer activity statistics methods have insufficient statistical accuracy when facing abnormal situations such as network disconnection and power outage, the present invention provides an operation method and system for improving the accurate statistics of cloud computer activity, and a method and system that can record the activity status of cloud computers in real time and accurately to support the refined management and operation of cloud computer services.
[0005] The specific scheme proposed by the present invention is:
[0006] The present invention provides an operation method for improving the accurate statistics of cloud computer activity, comprising:
[0007] Step 1: When a user logs in to a cloud computer through a cloud computer terminal, the MQ client in the cloud computer terminal sends a login message to the cloud and the server deployed on the cloud. The login message contains the user's basic information, and the user's login behavior is identified by the user's basic information.
[0008] Step 2: After the user successfully connects to the cloud computer, the MQ client sends a connection confirmation message to the cloud and the server deployed on the cloud again. The connection confirmation message contains the user's basic information and the unique identifier of the cloud computer, and uses the unique identifier of the cloud computer to confirm the connection relationship between the user and the cloud computer;
[0009] Step 3: When the cloud computer terminal disconnects from the server due to an abnormal situation, the MQ last words mechanism is automatically triggered. According to the MQ last words mechanism, a preset last words message is received through the MQ server. The last words message contains the unique identifier of the cloud computer and the disconnection time information.
[0010] At the same time, after the cloud receives the will message, it updates the link status of the cloud computer in real time according to the type of the will message and calculates the activity data: analyzes the usage pattern of the cloud computer, including the distribution of user access time periods, commonly used applications or service types, and updates the activity statistics based on the analysis results.
[0011] Furthermore, the login message sent in step 1 of the operation method for improving the accurate statistics of cloud computer activity contains basic information of the user, and the basic information of the user includes the login timestamp and login IP address of the user.
[0012] Furthermore, the connection confirmation message sent in step 2 of the operational method for improving the accurate statistics of cloud computer activity includes the IP address, MAC address, and operating system information of the cloud computer, wherein the IP address and MAC address of the cloud computer are used to generate a unique identifier for the cloud computer.
[0013] Furthermore, in step 3 of the operational method for improving the accurate statistics of cloud computer activity, the last message received by the MQ server also includes the last activity status or error code of the cloud computer before disconnection, which is used to diagnose and solve potential cloud computer or service problems.
[0014] Furthermore, the message transmission process involved in the operational method for improving the accurate statistics of cloud computer activity is encrypted to ensure data security and privacy protection.
[0015] The present invention provides an operation system for improving the accurate statistics of cloud computer activity, including a cloud computer terminal management module, an abnormal disconnection management module, and a data storage module.
[0016] When a user logs in to a cloud computer through a cloud computer terminal, the cloud computer terminal management module sends a login message to the cloud and the server deployed on the cloud through the MQ client in the cloud computer terminal. The login message contains the user's basic information and uses the user's basic information to identify the user's login behavior;
[0017] When the user successfully connects to the cloud computer, the cloud computer terminal management module sends a connection confirmation message to the cloud and the MQ server deployed on the cloud again through the MQ client. The connection confirmation message contains the user's basic information and the cloud computer's unique identifier, and uses the cloud computer's unique identifier to confirm the connection relationship between the user and the cloud computer;
[0018] When the cloud computer terminal disconnects from the MQ server due to an abnormal situation, the abnormal disconnection management module automatically triggers the MQ last words mechanism. According to the MQ last words mechanism, a preset last words message is received through the MQ server. The last words message contains the unique identifier of the cloud computer and the disconnection time information.
[0019] At the same time, after the cloud receives the will message, the abnormal disconnection management module updates the connection status of the cloud computer in real time according to the type of the will message, and calculates the activity data: analyzes the usage pattern of the cloud computer, including the distribution of user access time periods and commonly used applications or service types, and the data storage module updates the activity statistics records according to the analysis results.
[0020] Furthermore, the login message sent by the cloud computer terminal management module of the operating system for improving the accurate statistics of cloud computer activity contains the user's basic information, and the user's basic information includes the user's login timestamp and login IP address.
[0021] Furthermore, the connection confirmation message sent by the cloud computer terminal management module of the operating system for improving the accurate statistics of cloud computer activity includes the IP address, MAC address, and operating system information of the cloud computer, wherein the IP address and MAC address of the cloud computer are used to generate a unique identifier for the cloud computer.
[0022] Furthermore, the abnormal disconnection management module of the operating system for improving the accurate statistics of cloud computer activity receives a last message through the MQ server, which also includes the last activity status or error code of the cloud computer before disconnection, which is used to diagnose and solve potential cloud computer or service problems.
[0023] Furthermore, the operating system for improving the accurate statistics of cloud computer activity also includes a security management module, which encrypts messages during the message transmission process to ensure data security and privacy protection.
[0024] The benefits of the present invention are:
[0025] It solves the problem of insufficient accuracy of cloud computer activity statistics during abnormal situations such as network outages and power outages, improves the accuracy of cloud computer activity statistics, and provides reliable data support for the precise operation and maintenance of cloud computer services. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic diagram of the application process of the method of the present invention. DETAILED DESCRIPTION
[0027] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.
[0028] Example 1
[0029] The present invention provides an operation method for improving the accurate statistics of cloud computer activity, comprising:
[0030] Step 1: When a user logs in to a cloud computer through a cloud computer terminal, a login message is sent to the cloud and the server deployed on the cloud through the MQ client in the cloud computer terminal. The login message contains the user's basic information, and the user's login behavior is identified by the user's basic information.
[0031] The sent login message contains the user's basic information, which includes the user's login timestamp and login IP address.
[0032] Step 2: After the user successfully connects to the cloud computer, a connection confirmation message is sent to the cloud and the server deployed on the cloud again through the MQ client. The connection confirmation message contains the user's basic information and the unique identifier of the cloud computer. The unique identifier of the cloud computer is used to confirm the connection relationship between the user and the cloud computer.
[0033] The connection confirmation message sent includes the IP address, MAC address, and operating system information of the cloud computer, wherein the IP address and MAC address of the cloud computer are used to generate a unique identifier of the cloud computer.
[0034] Step 3: When the cloud computer terminal disconnects from the server due to an abnormal situation, the MQ last words mechanism is automatically triggered. According to the MQ last words mechanism, a preset last words message is received through the MQ server. The last words message contains the unique identifier of the cloud computer and the disconnection time information.
[0035] At the same time, after the cloud receives the will message, it updates the link status of the cloud computer in real time according to the type of the will message and calculates the activity data: analyzes the usage pattern of the cloud computer, including the distribution of user access time periods, commonly used applications or service types, and updates the activity statistics records based on the analysis results.
[0036] The last message received through the MQ server also contains the last activity status or error code of the cloud computer before the connection was disconnected, which can be used to diagnose and solve potential cloud computer or service problems.
[0037] All message transmission processes involved are encrypted to ensure data security and privacy protection.
[0038] Example 2
[0039] The present invention provides an operation system for improving the accurate statistics of cloud computer activity, including a cloud computer terminal management module, an abnormal disconnection management module, and a data storage module.
[0040] When a user logs in to a cloud computer through a cloud computer terminal, the cloud computer terminal management module sends a login message to the cloud and the server deployed on the cloud through the MQ client in the cloud computer terminal. The login message contains the user's basic information and uses the user's basic information to identify the user's login behavior;
[0041] When the user successfully connects to the cloud computer, the cloud computer terminal management module sends a connection confirmation message to the cloud and the MQ server deployed on the cloud again through the MQ client. The connection confirmation message contains the user's basic information and the cloud computer's unique identifier, and uses the cloud computer's unique identifier to confirm the connection relationship between the user and the cloud computer;
[0042] When the cloud computer terminal disconnects from the MQ server due to an abnormal situation, the abnormal disconnection management module automatically triggers the MQ last words mechanism. According to the MQ last words mechanism, a preset last words message is received through the MQ server. The last words message contains the unique identifier of the cloud computer and the disconnection time information.
[0043] At the same time, after the cloud receives the will message, the abnormal disconnection management module updates the connection status of the cloud computer in real time according to the type of the will message, and calculates the activity data: analyzes the usage pattern of the cloud computer, including the distribution of user access time periods and commonly used applications or service types, and the data storage module updates the activity statistics records according to the analysis results.
[0044] As the information interaction and execution process between the modules in the above-mentioned system are based on the same concept as the embodiment of the method of the present invention, the specific contents can be found in the description of the embodiment of the method of the present invention and will not be repeated here.
[0045] Similarly, the system of the present invention solves the problem of insufficient statistical accuracy of cloud computer activity during abnormal situations such as network outages and power outages, improves the statistical accuracy of cloud computer activity, and provides reliable data support for the precise maintenance and operation of cloud computer services.
[0046] It should be noted that not all steps and modules in the above-mentioned processes and system structures are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as needed. The system structure described in the above-mentioned embodiments can be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by multiple physical entities, or some components in multiple independent devices may be implemented together.
[0047] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.
Claims
1. An operational method for improving the accurate statistics of cloud computer activity, characterized by: include: Step 1: When a user logs in to a cloud computer through a cloud computer terminal, the MQ client in the cloud computer terminal sends a login message to the cloud and the server deployed on the cloud. The login message contains the user's basic information, and the user's login behavior is identified by the user's basic information. Step 2: After the user successfully connects to the cloud computer, the MQ client sends a connection confirmation message to the cloud and the server deployed on the cloud again. The connection confirmation message contains the user's basic information and the unique identifier of the cloud computer, and uses the unique identifier of the cloud computer to confirm the connection relationship between the user and the cloud computer; Step 3: When the cloud computer terminal disconnects from the server due to an abnormal situation, the MQ last words mechanism is automatically triggered. According to the MQ last words mechanism, a preset last words message is received through the MQ server. The last words message contains the unique identifier of the cloud computer and the disconnection time information. At the same time, after the cloud receives the will message, it updates the link status of the cloud computer in real time according to the type of the will message and calculates the activity data: analyzes the usage pattern of the cloud computer, including the distribution of user access time periods, commonly used applications or service types, and updates the activity statistics based on the analysis results.
2. The method for improving the accurate statistics of cloud computer activity according to claim 1, characterized in that The login message sent in step 1 contains the basic information of the user, and the basic information of the user includes the login timestamp and login IP address of the user.
3. The method for improving the accurate statistics of cloud computer activity according to claim 1, characterized in that The connection confirmation message sent in step 2 includes the IP address, MAC address, and operating system information of the cloud computer, wherein the IP address and MAC address of the cloud computer are used to generate a unique identifier of the cloud computer.
4. The method for improving the accurate statistics of cloud computer activity according to claim 1, characterized in that The last message received by the MQ server in step 3 also includes the last activity status or error code of the cloud computer before disconnection, which is used to diagnose and solve potential cloud computer or service problems.
5. The method for improving the accurate statistics of cloud computer activity according to claim 1, characterized in that All message transmission processes involved are encrypted to ensure data security and privacy protection.
6. An operating system for improving the accurate statistics of cloud computer activity, characterized by Including cloud computer terminal management module, abnormal disconnection management module, data storage module When a user logs in to a cloud computer through a cloud computer terminal, the cloud computer terminal management module sends a login message to the cloud and the server deployed on the cloud through the MQ client in the cloud computer terminal. The login message contains the user's basic information and uses the user's basic information to identify the user's login behavior; When the user successfully connects to the cloud computer, the cloud computer terminal management module sends a connection confirmation message to the cloud and the MQ server deployed on the cloud again through the MQ client. The connection confirmation message contains the user's basic information and the cloud computer's unique identifier, and uses the cloud computer's unique identifier to confirm the connection relationship between the user and the cloud computer; When the cloud computer terminal disconnects from the MQ server due to an abnormal situation, the abnormal disconnection management module automatically triggers the MQ last words mechanism. According to the MQ last words mechanism, a preset last words message is received through the MQ server. The last words message contains the unique identifier of the cloud computer and the disconnection time information. At the same time, after the cloud receives the will message, the abnormal disconnection management module updates the connection status of the cloud computer in real time according to the type of the will message, and calculates the activity data: analyzes the usage pattern of the cloud computer, including the distribution of user access time periods and commonly used applications or service types, and the data storage module updates the activity statistics records according to the analysis results.
7. The operating system for improving the accurate statistics of cloud computer activity according to claim 6 is characterized by: The login message sent by the cloud computer terminal management module contains the user's basic information, and the user's basic information includes the user's login timestamp and login IP address.
8. The operating system for improving the accurate statistics of cloud computer activity according to claim 6 is characterized by: The connection confirmation message sent by the cloud computer terminal management module includes the IP address, MAC address, and operating system information of the cloud computer, wherein the IP address and MAC address of the cloud computer are used to generate a unique identifier of the cloud computer.
9. An operating system for improving the accurate statistics of cloud computer activity according to claim 6, characterized in that a last message received by the abnormal disconnection management module through the MQ server also includes the last activity status or error code of the cloud computer before disconnection, which is used to diagnose and solve potential cloud computer or service problems.
10. The operating system for improving the accurate statistics of cloud computer activity according to claim 6, characterized in that It also includes a security management module, which encrypts messages during the message transmission process to ensure data security and privacy protection.
Citation Information
Patent Citations
Statistical method and device for device activeness, electronic device and storage medium
CN116166711A
Data monitoring method and device, electronic equipment and storage medium
CN117119513A
Internet of Things management method, device and equipment based on MQTT protocol and storage medium
CN117176749A
MQTT and MDNS for availability of edge computing application
WO2024062274A1