大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。
Jetbrains全系列IDE稳定放心使用
最后配置情况,可以用Export-CacheClusterConfig 导出,修改后在import进去。注意这设置是三个机器都是leadHost=”true”,leadHostManagement=”false”,群集管理交给sql server
代码
xml version
=
“
1.0
“
encoding
=
“
utf-8
“
?>
<
configuration
>
<
configSections
>
<
section name
=
“
dataCache
“
type
=
“
Microsoft.ApplicationServer.Caching.DataCacheSection, Microsoft.ApplicationServer.Caching.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
“
/>
</
configSections
>
<
dataCache size
=
“
Small
“
>
<
caches
>
<
cache consistency
=
“
StrongConsistency
“
name
=
“
default
“
secondaries
=
“
1
“
>
<
policy
>
<
eviction type
=
“
Lru
“
/>
<
expiration defaultTTL
=
“
60
“
isExpirable
=
“
true
“
/>
</
policy
>
</
cache
>
<
cache consistency
=
“
StrongConsistency
“
name
=
“
issueweb
“
secondaries
=
“
1
“
>
<
policy
>
<
eviction type
=
“
Lru
“
/>
<
expiration defaultTTL
=
“
60
“
isExpirable
=
“
true
“
/>
</
policy
>
</
cache
>
</
caches
>
<
hosts
>
<
host replicationPort
=
“
22236
“
arbitrationPort
=
“
22235
“
clusterPort
=
“
22234
“
hostId
=
“
828916006
“
size
=
“
2559
“
leadHost
=
“
true
“
account
=
“
RDEV\SCMCORE$
“
cacheHostName
=
“
AppFabricCachingService
“
name
=
“
SCMCORE
“
cachePort
=
“
22233
“
/>
<
host replicationPort
=
“
22236
“
arbitrationPort
=
“
22235
“
clusterPort
=
“
22234
“
hostId
=
“
1688081450
“
size
=
“
2047
“
leadHost
=
“
true
“
account
=
“
RDEV\SCMCORE2$
“
cacheHostName
=
“
AppFabricCachingService
“
name
=
“
SCMCORE2
“
cachePort
=
“
22233
“
/>
<
host replicationPort
=
“
22236
“
arbitrationPort
=
“
22235
“
clusterPort
=
“
22234
“
hostId
=
“
242331826
“
size
=
“
2047
“
leadHost
=
“
true
“
account
=
“
RDEV\SCMCORE3$
“
cacheHostName
=
“
AppFabricCachingService
“
name
=
“
SCMCORE3
“
cachePort
=
“
22233
“
/>
</
hosts
>
<
advancedProperties
>
<
partitionStoreConnectionSettings leadHostManagement
=
“
false
“
/>
<
securityProperties
>
<
authorization
>
<
allow users
=
“
rdev\swordbuilder
“
/>
<
allow users
=
“
rdev\huangbiao
“
/>
<
allow users
=
“
NETWORK SERVICE
“
/>
</
authorization
>
</
securityProperties
>
</
advancedProperties
>
</
dataCache
>
</
configuration
>
leadHostManagement 群集级别设置 |
leadHost 缓存主机设置 |
设置组合说明 | 有效的缓存主机责任 |
---|---|---|---|
|
|
SQL Server 或自定义提供程序执行群集管理角色。这不是主要主机。 |
仅正常的缓存主机操作。 |
|
|
SQL Server 执行群集管理角色。如果您将 |
仅正常的缓存主机操作。 |
|
|
主要主机执行群集管理角色,但它不是主要主机。 |
仅正常的缓存主机操作。 |
|
|
主要主机执行群集管理角色。这是主要主机。 |
正常的缓存主机操作,并与其他主要主机一起管理群集。 |
缓存客户端安全设置
与缓存群集安全设置一样,缓存客户端可以使用 securityProperties
元素在应用程序配置文件中配置安全设置。或者,客户端可以采用编程方式将DataCacheSecurity 类和 DataCacheFactoryConfiguration 类的 SecurityProperties 属性结合使用来配置安全。有关详细信息,请参阅应用程序配置设置(Windows Server AppFabric 缓存)。
缓存客户端和缓存群集使用启用连接的安全设置,这一点非常重要。在下表中,列代表服务器安全设置,行代表客户端安全设置。每个组合列出“Pass”或“Fail”,取决于是否允许连接。
客户端设置 | Mode=None, ProtectionLevel=Any | Mode=Transport, ProtectionLevel=None | Mode=Transport, ProtectionLevel=Sign | Mode=Transport, ProtectionLevel=EncryptAndSign |
---|---|---|---|---|
None, Any |
Pass |
Fail |
Fail |
Fail |
Transport, None |
Fail |
Pass |
Fail |
Fail |
Transport, Sign |
Fail |
Pass |
Pass |
Fail |
Transport, EncryptAndSign |
Fail |
Pass |
Pass |
Pass |
IIS->应用程序池 ->高级设置->标识,可以设置web程序连接缓存服务器的用户
发布者:全栈程序员-用户IM,转载请注明出处:https://javaforall.cn/181191.html原文链接:https://javaforall.cn
【正版授权,激活自己账号】: Jetbrains全家桶Ide使用,1年售后保障,每天仅需1毛
【官方授权 正版激活】: 官方授权 正版激活 支持Jetbrains家族下所有IDE 使用个人JB账号...