Results 1 to 2 of 2

Thread: Redirect new connections based on current CPU load

  1. #1

    Default Redirect new connections based on current CPU load


    The need:

    When a new connection to a live stream arrives, query the server's current CPU load. If CPU load is >80%, redirect the new connection to another server.

    The reasons:

    1) Our Wowza servers are virtual and the amount of CPU they have at a given time can fluctuate. Therefore, we can't always assume that a server can handle a predetermined number of connections (an assumption made by the LoadBalancer module).

    2) Once we fill up our local Wowza servers with enough live connections to reach ~80% CPU utilization, we want to direct new connections to a CDN. Obviously we can't configure that CDN's servers to participate in a LoadBalancer configuration with our local servers.

    The questions:

    1) In our custom module, is there a command for querying the server's current CPU load? Since instantaneous CPU load may fluctuate, is there a way to query the average load over the past several seconds?

    2) What other thoughts or suggestions do you have on this approach?

    Thanks much!

  2. #2
    Join Date
    Dec 2007

Similar Threads

  1. Replies: 3
    Last Post: 07-17-2014, 08:54 AM
  2. Geo-based stream redirect
    By mikekoz in forum General Forum
    Replies: 2
    Last Post: 03-04-2014, 07:29 AM
  3. Litmit current connections on a certain domain/IP
    By Manaka in forum Server Administration Discussion
    Replies: 3
    Last Post: 05-28-2012, 08:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts