TsgcWebSocketLoadBalancerServer속성 › Throttle

Throttle Property

로드 밸런서가 각 연결에서 읽거나 쓰는 대역폭(초당 비트)을 제한합니다.

구문

property Throttle: TsgcWSThrottle read GetThrottle write SetThrottle;

기본값

Enabled=False

설명

Throttle.EnabledTrue인 경우 로드 밸런서는 다운스트림 클라이언트와 등록된 백엔드 제어 채널을 모두 포함하여 모든 피어 소켓에서 데이터를 읽거나 쓰는 속도를 제한합니다. 단일 클라이언트가 업링크를 포화시키는 것을 방지하거나 개발 중에 저대역폭 시나리오를 시뮬레이션하는 데 사용하십시오. 스로틀링은 소켓 수준에서 적용되며 MaxConnections(동시 세션을 제한함)와 독립적입니다.

예제


oServer := TsgcWebSocketLoadBalancerServer.Create(nil);
oServer.Throttle.BitsPerSec := 65536;
oServer.Throttle.Enabled := true;
oServer.Active := true;

속성으로 돌아가기