How to Optimize Test Monitoring with Poling and Web Sockets

This article explains how to enable and configure Poling and Web Sockets, two methods that keep the server and client in sync during tests.

Understanding Web Sockets and Polling #

Web Sockets and Polling settings are pivotal for ensuring real-time updates and data retrieval within specific monitoring dashboard features, including:

  • Pause/Resume attempts.
  • Adding extra time to an attempt.

Here, we delve into the two synchronization methods:

  1. Web Sockets: This method involves the server instantly pushing events to the client. However, network settings may occasionally block web sockets. In such cases, it’s prudent to use polling alongside web sockets.
  2. Polling: With polling, the client periodically checks for new server events at specified intervals. This method ensures event delivery even when web sockets are obstructed.

Configuring Web Sockets and Polling #

To configure Web Sockets and Polling effectively, follow these streamlined steps:

  1. Click on the System page and select Settings and customization.
  2. Navigate to the System preferences tab.
  3. Scroll down and select the Web sockets and polling.
  4. Web sockets enabled – Enable this option when monitoring is in use. If not, it’s wise to disable it to avoid impacting system performance and capacity.
  5. Polling enabled – Similar to Web sockets, activate polling if monitoring is enabled. For non-monitoring scenarios, disabling polling prevents any unintended performance impacts.
  6. Polling Interval – Specify how often the client checks for new server events. An ideal interval is greater than or equal to 30 seconds, ensuring optimal system performance.

By understanding and configuring Poling and Web sockets with precision, you can optimize your test monitoring, ensuring a seamless experience for both administrators and test-takers.

Powered by BetterDocs