SharePointDsc icon indicating copy to clipboard operation
SharePointDsc copied to clipboard

SPDistributedCacheClientSetting: Missing SP2019 and SE Values

Open ChristophHannappel opened this issue 3 years ago • 5 comments

Problem description

The Ressource is missing the SP2019 and SPSE specific container Settings:

  • DistributedDbLevelFailoverCache
  • DistributedEdgeHeaderCache
  • DistributedFileStorePerformanceTraceCache
  • DistributedSPAbsBlobCache
  • DistributedSPCertificateValidatorCache
  • DistributedSPOAuthTokenCache
  • DistributedStopgapCache
  • DistributedStopgapCache

They are documented at SharePoint Server Subscription Edition and SharePoint Server 2019 PowerShell script

I'm happy to create a pull request, after I've done my other tasks :)

Verbose logs

N/A

DSC configuration

N/A

Suggested solution

Add the SP2019/SE specific Container like it has been done with SP2016

SharePoint version and build

N/A

Operating system the target node is running

N/A

PowerShell version and build the target node is running

N/A

SharePointDsc version

5.1.0

ChristophHannappel avatar Mar 16 '22 17:03 ChristophHannappel

Perfect, it is all yours! Just two comments:

  • You are mentioning DistributedStopgapCache twice
  • Settings DistributedUnifiedAppsCache and DistributedUnifiedAuditCache are missing from the above list, but are listed in the article

ykuijs avatar Mar 20 '22 20:03 ykuijs

Hi @ChristophHannappel, any idea when you are able to fix this issue?

ykuijs avatar May 13 '22 21:05 ykuijs

Hi @ykuijs since its mostly copy and paste ill think i can create a pull request until 20. May.

ChristophHannappel avatar May 14 '22 10:05 ChristophHannappel

For documentation purposes - I've compared the valid values for the ContainerType Parameter of the Get-SPDistributedCacheClientSetting between SharePoint Server 2016, 2019 and Subscription Edition. The new Cache Container are:

  • DistributedClientSideAppUpdateTimeCache
  • DistributedDbLevelFailoverCache
  • DistributedEdgeHeaderCache
  • DistributedFileStorePerformanceTraceCache
  • DistributedSPAbsBlobCache
  • DistributedSPCertificateValidatorCache
  • DistributedSPOAuthTokenCache
  • DistributedStopgapCache
  • DistributedUnifiedAppsCache
  • DistributedUnifiedAuditCache

@ykuijs The Cache DistributedClientSideAppUpdateTimeCache is not mentioned in the Script "SharePoint Server Subscription Edition and SharePoint Server 2019 PowerShell script" so I'm missing an abbreviation for the variable names. Based on the syntax of the existing variables my proposal is: DCSAUTC Does this work for you or do you have a different one?

ChristophHannappel avatar May 20 '22 14:05 ChristophHannappel

Also the Script example uses the variable DHSC twice. First for DistributedHealthScoreCache than later again for DistributedUnifiedAuditCache - which seems like a copy and paste error

#DistributedUnifiedAuditCache
$DHSC = Get-SPDistributedCacheClientSetting -ContainerType DistributedUnifiedAuditCache
$DHSC.MaxConnectionsToServer = 1
$DHSC.requestTimeout = "3000"
$DHSC.channelOpenTimeOut = "3000"
Set-SPDistributedCacheClientSetting -ContainerType DistributedUnifiedAuditCache $DHSC

Based on the naming scheme my proposal is DUAuC for DistributedUnifiedAuditCache since DUAC is already used for DistributedUnifiedAppsCache

ChristophHannappel avatar May 20 '22 15:05 ChristophHannappel