Share via


LoadFactor Property of the IFPCServer Interface

The LoadFactor property gets or sets the load factor of the server.

C++

HRESULT put_LoadFactor(
    long lLoadFactor
);
HRESULT get_LoadFactor(
    long* plLoadFactor
);

Parameters

  • lLoadFactor
    A 32-bit integer that specifies the load factor of the server.

  • plLoadFactor
    Pointer to a variable that on return receives a 32-bit integer specifying the load factor of the server.

Return Value

These property methods return S_OK if the call is successful; otherwise, they return an error code.

Visual Basic

Property LoadFactor As Long

Property Value

A 32-bit integer that specifies the load factor of the server.

Remarks

This property is read/write. Its default value is 100, and it must be equal to or greater than 1.

When the Cache Array Routing Protocol (CARP) is enabled in an array with multiple Forefront TMG computers, the load factor assigned to each array member is a relative number that determines the distribution of client Web requests and cached objects among the array members by the CARP algorithm. For more information, see Cache Array Routing Protocol.

CARP is enabled for Web requests coming from a particular network when the ResolveInArray property of the network's listener is set to True (VARIANT_TRUE in C++). However, no objects are cached on any server in the array unless the CacheLimitInMegs property of at least one cache drive of at least one server belonging to the array is set to a nonzero value.

Requirements

Client Requires Windows 7 or Windows Vista.
Server Requires Windows Server 2008 R2 or Windows Server 2008 x64 Edition with SP2.
Version Requires Forefront Threat Management Gateway (TMG) 2010.
IDL

Declared in Msfpccom.idl.

DLL

Requires Msfpccom.dll.

See Also

FPCServer

Send comments about this topic to Microsoft

Build date: 6/30/2010