Developer Documentation Library > Interviewer - Server > Monitoring and tuning system performance > Load balancing interviewing engines > Examples of UNICOM Intelligence Interviewer load balancing algorithms > Setting PercentLoaded based on the number of concurrent interviews
 
Setting PercentLoaded based on the number of concurrent interviews
The following algorithm bases PercentLoaded on the number of interviews currently running, and allows 100 interviews to run concurrently. If you change the value of concurrentLimit and publish the change to the engine, the interview load should be redistributed across the cluster until PercentLoaded balances on all interviewing servers. (You could also use the ConnectionLimit in the registry for this. See Load balancing settings for more information.)
Dim NoOfInterviews, concurrentLimit
' Settable per interviewing server
concurrentLimit = 100
NoOfInterviews = (100 * Engine.CurrentInterviews) / concurrentLimit
PercentLoaded = NoOfInterviews
See also
Examples of UNICOM Intelligence Interviewer load balancing algorithms