分布式缓存redis_rocksdb 分布式缓存

分布式缓存redis_rocksdb 分布式缓存WindowsServerAppFabric首页http://msdn.microsoft.com/zh-cn/windowsserver/ee695849(en-us).aspx高可用性(WindowsServerAppFabric缓存)http://msdn.microsoft.com/zh-cn/library/ee790974.aspx www.nhibe…

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用

Windows Server AppFabric首页
http://msdn.microsoft.com/zh-cn/windowsserver/ee695849(en-us).aspx
高可用性(Windows Server AppFabric 缓存)
http://msdn.microsoft.com/zh-cn/library/ee790974.aspx
 
www.nhibernate.org 去看NHIBERNATE的一些文档,中文资料在博客堂http://blog.joycode.com/ 、博客园http://www.cnblogs.com/、CSDN http://www.csdn.net 等上面找一下
 
 
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministra
tion> Export-CacheClusterConfig
 
位于命令管道位置 1 的 cmdlet Export-CacheClusterConfig
请为以下参数提供值:
File: c:\a.txt
 
<?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”>
                <policy>
                    <eviction type=”Lru” />
                    <expiration defaultTTL=”10″ isExpirable=”true” />
                </policy>
            </cache>
        </caches>
        <hosts>
            <host replicationPort=”22236″ arbitrationPort=”22235″ clusterPort=”22234″
                hostId=”1839725557″ size=”2047″ leadHost=”true” account=”RDEV\SCMCORE2$”
                cacheHostName=”AppFabricCachingService” name=”SCMCORE2″ cachePort=”22233″ />
        </hosts>
        <advancedProperties>
            <partitionStoreConnectionSettings leadHostManagement=”false” />
            <securityProperties mode=”None” protectionLevel=”None”>
                <authorization>
                    <allow users=”rdev\dingfengfeng” />
                    <allow users=”NT Authority\Network Service” />
                    <allow users=”rdev\tes” />
                </authorization>
            </securityProperties>
        </advancedProperties>
    </dataCache>
</configuration>
 
 
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministra
tion> Set-CacheClusterSecurity
 
位于命令管道位置 1 的 cmdlet Set-CacheClusterSecurity
请为以下参数提供值:
SecurityMode: Transport
ProtectionLevel: EncryptAndSign
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministra
tion> Start-CacheCluster
 
HostName : CachePort      Service Name            Service Status Version Info
——————–      ————            ————– ————
SCMCORE2:22233            AppFabricCachingService UP             1 [1,1][1,1]
 
 
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministra
tion> Get-CacheAllowedClientAccounts
rdev\dingfengfeng
NT Authority\Network Service
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministra
tion> Grant-CacheAllowedClientAccount
 
位于命令管道位置 1 的 cmdlet Grant-CacheAllowedClientAccount
请为以下参数提供值:
Account: rdev\huangbiao
 
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministra
tion> get-cachehostconfig
 
位于命令管道位置 1 的 cmdlet Get-CacheHostConfig
请为以下参数提供值:
HostName: scmcore
CachePort: 22233
 
 
HostName        : SCMCORE
ClusterPort     : 22234
CachePort       : 22233
ArbitrationPort : 22235
ReplicationPort : 22236
Size            : 2559 MB
ServiceName     : AppFabricCachingService
HighWatermark   : 90%
LowWatermark    : 70%
IsLeadHost      : True
 
 
 
PS C:\Windows\System32\WindowsPowerShell\v1.0\Modules\DistributedCacheAdministra
tion> get-cachehostconfig
 
位于命令管道位置 1 的 cmdlet Get-CacheHostConfig
请为以下参数提供值:
HostName: scmcore2
CachePort: 22233
 
 
HostName        : SCMCORE2
ClusterPort     : 22234
CachePort       : 22233
ArbitrationPort : 22235
ReplicationPort : 22236
Size            : 2047 MB
ServiceName     : AppFabricCachingService
HighWatermark   : 90%
LowWatermark    : 70%
IsLeadHost      : False
 
 
设置高可用性集群
Set-CacheConfig -CacheName NamedCache1 -TimeToLive 30 Secondaries 1
注意:仅运行 Windows Server 的 Enterprise 或 DataCenter 版本的缓存主机支持此功能;且缓存主要主机不能少于三台,微软的说法是少于为了缓存群集保持可用,大多数主
 
要主机必须保持可用。测试情况是主要主机为两台时,有一台当机,整个缓存就不可用了。

最后配置情况,可以用Export-CacheClusterConfig 导出,修改后在import进去。注意这设置是三个机器都是leadHost=”true”,leadHostManagement=”false”,群集管理交给sql server

分布式缓存redis_rocksdb 分布式缓存
分布式缓存redis_rocksdb 分布式缓存
代码

<?
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 缓存主机设置 设置组合说明 有效的缓存主机责任

false

false

SQL Server 或自定义提供程序执行群集管理角色。这不是主要主机。

仅正常的缓存主机操作。

false

true

SQL Server 执行群集管理角色。如果您将 leadHostManagement 设置更改为 true,则它是主要主机。

仅正常的缓存主机操作。

true

false

主要主机执行群集管理角色,但它不是主要主机。

仅正常的缓存主机操作。

true

true

主要主机执行群集管理角色。这是主要主机。

正常的缓存主机操作,并与其他主要主机一起管理群集。

 

缓存客户端安全设置

与缓存群集安全设置一样,缓存客户端可以使用 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程序连接缓存服务器的用户

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/181191.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • android轮播图实现_ajax异步加载

    android轮播图实现_ajax异步加载这个图片异步加载并缓存的类已经被很多开发者所使用,是最常用的几个开源库之一,主流的应用,随便反编译几个火的项目,都可以见到它的身影。    可是有的人并不知道如何去使用这库如何进行配置,网上查到的信息对于刚接触的人来说可能太少了,下面我就把我使用过程中所知道的写了下来,希望可以帮助自己和别人更深入了解这个库的使用和配置。     GITHUB上的下载路径为:https:/

    2022年10月27日
    0
  • Github搭建个人博客(2019最新版,亲测)

    Github搭建个人博客(2019最新版,亲测)版权声明:本文为徐代龙原创文章,未经徐代龙允许不得转载。https://blog.csdn.net/xudailong_blog/article/details/78762262(一)前言:建议:慢慢看,也就这一篇用心了点写说来话长,一把辛酸泪,可算是弄好了。1起因:在很早很早,大一的时候,估计快记不得日子了,那时候来到PC吧创业团队,一个大一级的学长通过…

    2022年5月27日
    30
  • setrequestproperty()怎么使用_url主要功能

    setrequestproperty()怎么使用_url主要功能设置头信息的,比如格式,UA等,不设置自然有默认的,一般的请求倒不需要去设置,可以去看看android里的DefaultHttpClient里也有设置头信息的setRequestProperty 主要是用来设置下面的功能Javacode?12connection.setRequestProperty(“Con

    2022年9月4日
    2
  • 嵌套评论的数据库表设计

    嵌套评论的数据库表设计

    2021年6月20日
    120
  • 使用cdn实现免备案_阿里云备案的域名可以在腾讯云用吗

    使用cdn实现免备案_阿里云备案的域名可以在腾讯云用吗昨晚在QQ群看到的,目前可以白嫖!无视阿里云给你分配的cname地址域名直接解析到发的那些cname地址上面就可以使用了!添加CDN,加速区域选择“全球(不含中国大陆)”,然后把域名解析到阿里云国内CDN节点IP上。注意:知道的人多了或者也许会失效!这是我的网站测试的结果可以访问看一下速度:爱云影视…

    2022年9月11日
    0
  • Docker安装配置教程[通俗易懂]

    Docker安装配置教程[通俗易懂]之前docker很久就写了笔记了。后面因为家里有事,耽搁了一年。现在把这部分笔记重新上传一下。大家看看。Docker要求:lunix内核,要求3.8以上centos7Docker是一个进程,一启动就两个进程,一个服务,一个守护进程。占用资源就非常少,启动速度非常快,1s。一台机器上vm,3到10个实例。docker100到10000。1.核心概念:1)镜像images,事先做好一…

    2022年10月10日
    0

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号