A pressure testing method, device and terminal equipment for message middleware
A message middleware and terminal technology, applied in the field of communication, can solve the problems that the message middleware cannot continue to run stably, and cannot detect the abnormality and loss of the message middleware, so as to avoid losses, increase the number of concurrency, and continue to operate stably.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as figure 1 As shown, this embodiment provides a method for stress testing message middleware, which can be applied to mobile phones, PCs, tablet computers, or other terminal devices containing message middleware. The pressure testing method for message middleware provided in this embodiment includes:
[0043] S101. During the process of producing and consuming information, disconnect the communication connection with the consumer terminal, increase the number of concurrency of the producer terminal, and continuously accumulate the consuming messages.
[0044] In a specific application, this method can be applied to a terminal device including any message middleware, such as ActiveMQ, RobbitMQ, kafka, redis and other message middleware. In the process of message middleware producing and consuming information in a normal state, the communication connection with the consumer terminal is disconnected, and the number of concurrency of the producer terminal is increase...
Embodiment 2
[0051] Such as figure 2 As shown, this embodiment is a further description of the method steps in the first embodiment. In this embodiment, the method further includes:
[0052] S104. Repeat the steps of disconnecting the communication connection with the consumer terminal in the process of producing and consuming information, increasing the number of concurrency of the producer terminal, so that the consumption messages continue to accumulate, and opening the communication connection with the consumer terminal .
[0053] In a specific application, the operation of step S101 in the first embodiment above is repeated, and the communication connection with the consumer terminal is opened.
[0054] S105. After a preset period of time, monitor the running status of the message middleware and the running status of the consumer terminal;
[0055]In a specific application, after a preset period of time, the running status of the message middleware and the consumer terminal is mon...
Embodiment 3
[0070] Such as image 3 As shown, this embodiment is a further description of the method steps in the first embodiment. In this embodiment, after the step S102, further include:
[0071] S201. If the running state of the message middleware is normal, disconnect the communication connection with the slave node.
[0072] In a specific application, in the process of producing and consuming information, the communication connection with the consumer terminal is disconnected, the number of concurrency of the producer terminal is increased, and the consumption messages are continuously piled up. After a preset period of time, the operation of the message middleware is monitored. If the status is normal, disconnect the communication connection with the slave node.
[0073] S202. Obtain the running status of the master node.
[0074] S203. If the running state of the master node is abnormal, determine that the master node is abnormal under pressure.
[0075] In a specific applicat...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


