Set-AFCacheHostConfiguration

Set-AFCacheHostConfiguration

Updates the configuration settings for a Cache host to the specified values.

Syntax

Parameter Set: HostParameters
Set-AFCacheHostConfiguration [-ComputerName] <String> [-CachePort] <Int32> [-ArbitrationPort <Int32> ] [-CacheSize <Int64> ] [-ClusterPort <Int32> ] [-HighWatermark <Int32> ] [-IsLeadHost <String> ] [-LowWatermark <Int32> ] [-RefreshNow] [-ReplicationPort <Int32> ] [ <CommonParameters>]

Parameters

-ArbitrationPort<Int32>

The Arbitration port number of the cache host.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CachePort<Int32>

The Cache port number of the cache host.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-CacheSize<Int64>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ClusterPort<Int32>

The Cluster port number of the cache host.

Aliases

none

Required?

false

Position?

named

Default Value

cache port number + 1

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ComputerName<String>

The name of the cache host.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-HighWatermark<Int32>

The high watermark percentage of memory, when eviction should begin evicting objects that have not yet expired.

Aliases

none

Required?

false

Position?

named

Default Value

90

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-IsLeadHost<String>

Specifies whether the given host is a lead host.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-LowWatermark<Int32>

The low watermark percentage of memory. After reaching the high watermark of memory, objects that have not yet expired are evicted until memory reaches this low watermark.

Aliases

none

Required?

false

Position?

named

Default Value

70

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RefreshNow

Updates the changes to the cache host if the cache cluster is running. The cache host itself must be down for any changes to be made.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ReplicationPort<Int32>

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Data.Caching.Commands.HostConfig

Examples

PS C:\>

Get-AFCacheHostConfiguration