zettelkasten/OneNoteExport/Kommunikationstechnologie/Sharepoint/HOWTo's/29_DistributedCache Starten _ Stoppen.md
Ralf Koop 5a108aa2b4 .
2023-08-25 23:29:11 +02:00

2.5 KiB

DistributedCache Starten / Stoppen

Dienstag, 6. September 2016

16:03

 

DistributedCache starten:

Add-PSSnapin microsoft.share*

$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"

$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}

$serviceInstance.Provision()

 

DistributedCache stoppen:

Add-PSSnapin microsoft.share*

$instanceName ="SPDistributedCacheService Name=AppFabricCachingService"

$serviceInstance = Get-SPServiceInstance | ? {($_.service.tostring()) -eq $instanceName -and ($_.server.name) -eq $env:computername}

$serviceInstance.Unprovision()

 

 

DistributedCache auslesen / überprüfen:

 

Das folgende Skript liest einen Distributed Cache Host aus und liefert Informationen über die unterschiedlichen Caches, die Timer Jobs und weitere allgemeine Informationen über das System. Des Weiteren wird die AppFabric Konfiguration ausgelesen und die Cache Cluster Konfiguration exportiert. Hierbei wird auf dem Laufwerk D:\ ein Verzeichnis "\Distributed_Cache< SERVERNAME>" angelegt in dem die entsprechenden Ausgabedateien abgelegt werden.

Alternativ(?):

 

DistributedCache starten:

Add-PSSnapIn Microsoft.SharePoint.PowerShell -Verbose

Add-SPDistributedCacheServiceInstance -Verbose

 

DistributedCache stoppen:

Add-PSSnapIn Microsoft.SharePoint.PowerShell -Verbose

Stop-SPDistributedCacheServiceInstance -Graceful -Verbose

Remove-SPDistributedCacheServiceInstance

 

Computergenerierter Alternativtext: Parameter Graceful Erforderlich Optional Typ System.Mana gement.Auto matlon .Switc Beschreibung Gibt an, ob eine Instanz des verteilten Cache-Dienstes ordnungsgemäß beendet werden soll. {width="4.96875in" height="0.6666666666666666in"}

 

 

<<DC.ps1>>

 

-Verbose

 

Fehler im Analyser not enough Memory on Server :

 

Distributet Cache Server nutzt auf der SPP 890 MB Ram.

Dies kann man erhöhen :

 

Stop the Distributed Cache service on all cache hosts. To stop the Distributed Cache service, go to Services on Server in Central Administration, and Stop the Distributed Cache service on all cache hosts in the farm

 

Use-Cachecluster

Update-SPDistributedCacheSize -CacheSizeInMB 1600

 

Start SPDistributedCacheServiceInstanceon all cache hosts. To stop the Distributed Cache service, go to Services on Server in Central Administration,