An operation method and system for improving the accuracy of cloud computer activity statistics
By using the MQ last test mechanism and encryption, the problem of inaccurate activity statistics for cloud computers under abnormal conditions such as network outages and power outages is solved, achieving accurate statistics of cloud computer activity and data security, and supporting refined management of cloud computer services.
Patent Information
- Application Number
- CN202510091795.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-21
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2045-01-21
AI Technical Summary
Existing methods for measuring cloud PC activity lack sufficient accuracy when faced with abnormal situations such as network outages or power failures, leading to inaccurate operation and management.
The MQ will message mechanism records the activity status of cloud computers in real time. It generates unique identifiers using login and connection confirmation messages, and updates activity data, including user information and cloud computer status, in conjunction with will messages. The data is then encrypted to ensure data security.
It enables accurate statistics on cloud computer activity under abnormal conditions, provides reliable data support, and ensures the accuracy of operation and management and data security.
Smart Images

Figure CN119922093B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application discloses an operation method and system for improving accurate statistics of cloud computer activity, and relates to the technical field of cloud computing. BACKGROUND
[0002] Cloud computer, also known as cloud computer service, includes cloud resources, transmission protocols and cloud terminals. It uses an open cloud terminal to provide users with desktops, applications, hardware and other resources in a service mode of on-demand service and elastic distribution through transmission protocols. Users do not need to consider building complex IT architecture to realize single-machine multi-user functions.
[0003] With the rapid development of cloud computing technology, cloud computer, as a new type of computing service mode, has been widely used due to its advantages of high efficiency, flexibility and resource on-demand distribution. However, in the operation and management of cloud computer, accurate statistics of the activity of cloud computer has become a big challenge. Existing statistical methods often rely on user active operation or periodic heartbeat packet detection, but in the face of sudden abnormal situations such as network interruption and power failure, the state information of cloud computer cannot be updated in time and effectively, resulting in inaccurate activity statistics, which affects operation and maintenance decisions and operation effect. SUMMARY
[0004] The application provides an operation method and system for improving accurate statistics of cloud computer activity to solve the problem of insufficient statistical accuracy of existing cloud computer activity statistics methods in the face of abnormal situations such as network interruption and power failure, which can record the active state of cloud computer in real time and accurately to support fine management and operation of cloud computer service.
[0005] The specific scheme provided by the application is as follows:
[0006] The application provides an operation method for improving accurate statistics of cloud computer activity, comprising:
[0007] Step 1: When a user logs in to a cloud computer through a cloud computer terminal, an MQ client in the cloud computer terminal sends a login message to the cloud and a service deployed on the cloud, the login message containing the basic information of the user, and the login behavior of the user is identified by using the basic information of the user;
[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 service deployed on the cloud again, the connection confirmation message containing the basic information of the user and the unique identifier of the cloud computer, and the connection relationship between the user and the cloud computer is confirmed by using the unique identifier of the cloud computer;
[0009] Step 3: When the cloud computer terminal is disconnected from the service end due to abnormal conditions, the MQ message mechanism is triggered automatically, according to the MQ message mechanism, a preset message is received through the MQ service end, the message contains the unique identifier of the cloud computer and the disconnection time information,
[0010] At the same time, after the cloud end receives the message, it updates the link state of the cloud computer in real time according to the message type, calculates the activity data, analyzes the use mode of the cloud computer, analyzes the user access time distribution, commonly used application or service type, and updates the activity statistics record according to the analysis result.
[0011] Further, the login message sent in step 1 of the operation method for improving the accuracy of cloud computer activity statistics contains the basic information of the user, and the basic information of the user includes the login time stamp and login IP address of the user.
[0012] Further, the connection confirmation message sent in step 2 of the operation method for improving the accuracy of cloud computer activity statistics contains the IP address, MAC address and operating system information of the cloud computer, wherein the unique identifier of the cloud computer is generated by using the IP address and MAC address of the cloud computer.
[0013] Further, the message received by the MQ service end in step 3 of the operation method for improving the accuracy of cloud computer activity statistics also contains the last active state or error code of the cloud computer before disconnection, which is used for diagnosing and solving potential cloud computer or service problems.
[0014] Further, the message transmission process involved in the operation method for improving the accuracy of cloud computer activity statistics is encrypted to ensure the security and privacy protection of data.
[0015] The application provides an operation system for improving the accuracy of cloud computer activity statistics, which comprises a cloud computer terminal management module, an abnormal disconnection management module and a data storage module
[0016] When the user logs in to the cloud computer through the cloud computer terminal, the cloud computer terminal management module sends a login message to the cloud end and the service end deployed in the cloud end through the MQ client in the cloud computer terminal, and the login message contains the basic information of the user, which is used to identify the login behavior of the user;
[0017] When the user successfully connects to the cloud computer, the cloud computer terminal management module sends a connection confirmation message to the cloud end and the MQ service end deployed in the cloud end through the MQ client again, and the connection confirmation message contains the basic information of the user and the unique identifier of the cloud computer, which is used to confirm the connection relationship between the user and the cloud computer;
[0018] When the cloud computer terminal is disconnected from the MQ server due to abnormal conditions, the abnormal disconnection management module automatically triggers the MQ last message mechanism, according to the MQ last message mechanism, a preset last message is received through the MQ server, the last message contains the unique identifier of the cloud computer and the disconnection time information,
[0019] At the same time, after the cloud receives the last message, the abnormal disconnection management module updates the link state of the cloud computer in real time according to the type of the last message, calculates the activity data: analyzes the use mode of the cloud computer, analyzes the user access time period distribution, commonly used application or service type, and the data storage module updates the activity statistical record according to the analysis result.
[0020] Further, the login message sent by the cloud computer terminal management module of the operation system for improving the accuracy of cloud computer activity statistics contains the basic information of the user, and the basic information of the user includes the login time stamp and login IP address of the user.
[0021] Further, the connection confirmation message sent by the cloud computer terminal management module of the operation system for improving the accuracy of cloud computer activity statistics contains the IP address, MAC address and operating system information of the cloud computer, wherein the unique identifier of the cloud computer is generated by using the IP address and MAC address of the cloud computer.
[0022] Further, the last message received by the abnormal disconnection management module of the operation system for improving the accuracy of cloud computer activity statistics through the MQ server also contains the last active state or error code of the cloud computer before disconnection, which is used for diagnosing and solving potential cloud computer or service problems.
[0023] Further, the operation system for improving the accuracy of cloud computer activity statistics also comprises a security management module, which encrypts the messages in the message transmission process to ensure the security and privacy protection of the data.
[0024] The present application has the advantages of:
[0025] The problem of insufficient accuracy of cloud computer activity statistics in abnormal conditions such as network disconnection and power failure is solved, the accuracy of cloud computer activity statistics is improved, and reliable data support is provided for accurate operation and maintenance and accurate operation of cloud computer services. BRIEF DESCRIPTION OF DRAWINGS
[0026] Figure 1 is a flowchart of the application method. DETAILED DESCRIPTION
[0027] The present application will be further described below in conjunction with the drawings and specific embodiments, so that those skilled in the art can better understand the present application and implement it, but the embodiments are not limiting to the present application.
[0028] Embodiment 1
[0029] The application provides an operation method for improving the accurate statistics of cloud computer activity, comprising:
[0030] Step 1: When a user logs in to the cloud computer through the cloud computer terminal, an MQ client in the cloud computer terminal sends a login message to the cloud and the server deployed in the cloud, the login message containing the basic information of the user, and the login behavior of the user is identified by using the basic information of the user.
[0031] The sent login message contains the basic information of the user, and the basic information of the user includes the login timestamp and the login IP address of the user.
[0032] 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 in the cloud again, the connection confirmation message containing the basic information of the user and the unique identifier of the cloud computer, and the connection relationship between the user and the cloud computer is confirmed by using the unique identifier of the cloud computer.
[0033] The sent connection confirmation message contains the IP address, MAC address and operating system information of the cloud computer, wherein the unique identifier of the cloud computer is generated by using the IP address and MAC address of the cloud computer.
[0034] Step 3: When the cloud computer terminal is disconnected from the server due to abnormal conditions, the MQ message mechanism is automatically triggered, according to the MQ message mechanism, a preset message is received through the MQ server, the message contains the unique identifier of the cloud computer and the disconnection time information,
[0035] At the same time, the cloud receives the message, updates the link state of the cloud computer in real time according to the message type, calculates the activity data: analyzes the use mode of the cloud computer, analyzes the user access time period distribution, commonly used application or service type, and updates the activity statistics record according to the analysis result.
[0036] The message received by the MQ server also contains the last activity state or error code of the cloud computer before disconnection, which is used for diagnosing and solving potential cloud computer or service problems.
[0037] The message transmission process is encrypted to ensure the security and privacy protection of the data.
[0038] Embodiment 2
[0039] The application provides an operation system for improving the accurate statistics of cloud computer activity, comprising a cloud computer terminal management module, an abnormal disconnection management module and a data storage module
[0040] When the user logs in the cloud computer through the cloud computer terminal, the cloud computer terminal management module sends a login message to the cloud and the server deployed in the cloud through the MQ client in the cloud computer terminal, and the login message contains the basic information of the user, and the login behavior of the user is identified by using the basic information of the user;
[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 in the cloud through the MQ client again, and the connection confirmation message contains the basic information of the user and the unique identifier of the cloud computer, and the connection relationship between the user and the cloud computer is confirmed by using the unique identifier of the cloud computer;
[0042] When the cloud computer terminal is disconnected from the MQ server due to abnormal conditions, the abnormal disconnection management module automatically triggers the MQ will message mechanism, and according to the MQ will message mechanism, a preset will message is received through the MQ server, and the will 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 link state of the cloud computer in real time according to the type of the will message, calculates the activity data, analyzes the use mode of the cloud computer, analyzes the user access time period distribution, commonly used application or service type, and the data storage module updates the activity statistical record according to the analysis result.
[0044] The information interaction and execution process between the modules in the above system are based on the same concept as the method embodiments of the present application, and the specific content can be referred to the description in the method embodiments of the present application, which will not be repeated here.
[0045] Similarly, the system of the present application solves the problem of insufficient accuracy of cloud computer activity statistics in abnormal conditions such as network disconnection and power failure, improves the accuracy of cloud computer activity statistics, and provides reliable data support for precise operation and maintenance and accurate operation of cloud computer services.
[0046] It should be noted that not all steps and modules in the above 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 each of the above embodiments can be a physical structure or a logical structure, that is, some modules can be implemented by the same physical entity, or some modules can be implemented by multiple physical entities, or can be implemented by some components in multiple independent devices.
[0047] The above-described embodiments are merely preferred embodiments of the present application, and the protection scope of the present application is not limited thereto. Any equivalent substitutions or transformations made by those skilled in the art based on the present application are within the protection scope of the present application. The protection scope of the present application is subject to the claims.
Claims
1. An operation method for improving the accuracy of cloud computer activity statistics, characterized in that Comprise: Step 1: When the user logs in to the cloud computer through the cloud computer terminal, send a login message to the cloud and the service end deployed in the cloud through the MQ client in the cloud computer terminal, the login message contains the basic information of the user, and the login behavior of the user is identified by using the basic information of the user; Step 2: When the user successfully connects to the cloud computer, send a connection confirmation message to the cloud and the service end deployed in the cloud through the MQ client again, the connection confirmation message contains the basic information of the user and the unique identifier of the cloud computer, and the connection relationship between the user and the cloud computer is confirmed by using the unique identifier of the cloud computer; Step 3: When the cloud computer terminal is disconnected from the service end due to abnormal conditions, the MQ will automatically trigger the mechanism, according to the MQ will message mechanism, through the MQ service end receives a preset will message, the will message contains the unique identifier of the cloud computer and the disconnection time information, At the same time, the cloud receives the will message, and updates the link state of the cloud computer according to the type of the will message, calculates the activity data: analyzes the use mode of the cloud computer, analyzes the user access time period distribution, commonly used application or service type, and updates the activity statistical record according to the analysis result.
2. The operation method for improving the accuracy of cloud computer activity statistics 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 operational method for improving the accuracy of cloud computer activity statistics according to claim 1, characterized in that: The connection confirmation message sent in step 2 contains the IP address, MAC address and operating system information of the cloud computer, wherein the unique identifier of the cloud computer is generated by using the IP address and MAC address of the cloud computer.
4. The operational method for improving the accuracy of cloud computer activity statistics according to claim 1, characterized in that: The will message received by the MQ service end in step 3 also contains the last active state or error code of the cloud computer before disconnection, which is used for diagnosing and solving potential cloud computer or service problems.
5. The operational method for improving the accuracy of cloud computer activity statistics according to claim 1, characterized in that: The message transmission process is encrypted to ensure the security and privacy protection of the data.
6. An operation system for improving the accuracy of cloud computer activity statistics, characterized in that Comprise cloud computer terminal management module, abnormal disconnection management module, data storage module When the user logs in to the cloud computer through the cloud computer terminal, the cloud computer terminal management module sends a login message to the cloud and the service end deployed in the cloud through the MQ client in the cloud computer terminal, the login message contains the basic information of the user, and the login behavior of the user is identified by using the basic information of the user; 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 service end deployed in the cloud through the MQ client again, the connection confirmation message contains the basic information of the user and the unique identifier of the cloud computer, and the connection relationship between the user and the cloud computer is confirmed by using the unique identifier of the cloud computer; When the cloud computer terminal is disconnected from the MQ service end due to abnormal conditions, the abnormal disconnection management module automatically triggers the MQ will message mechanism, according to the MQ will message mechanism, through the MQ service end receives a preset will message, the will message contains the unique identifier of the cloud computer and the disconnection time information, Meanwhile, the cloud receives the last message, the abnormal disconnection management module updates the link state of the cloud computer according to the last message type in real time, calculates the activity data: analyzes the use mode of the cloud computer, analyzes the user access time distribution, commonly used application or service type, and the data storage module updates the activity statistical record according to the analysis result.
7. The operation system of claim 6, wherein the operation system further comprises: a cloud computer active degree precision statistics improving unit. The login message sent by the cloud computer terminal management module contains the basic information of the user, and the basic information of the user includes the login timestamp and the login IP address of the user.
8. The operation system of claim 6, wherein the operation system further comprises: a cloud computer active degree precision statistics improving unit. The connection confirmation message sent by the cloud computer terminal management module contains the IP address, MAC address and operating system information of the cloud computer, wherein the unique identifier of the cloud computer is generated by using the IP address and MAC address of the cloud computer.
9. The operation system for improving the accuracy of cloud computer activity statistics according to claim 6, characterized in that the abnormal disconnection management module receives a last message through the MQ service end, which also contains the last active state or error code of the cloud computer before disconnection, for diagnosing and solving potential cloud computer or service problems.
10. The operation system of claim 6, wherein the operation system further comprises: a cloud computer active degree precision statistics improving unit. It also includes a security management module, which encrypts the messages in 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