首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NCache -无法启动缓存。未注册ErrorL指定的缓存

NCache -无法启动缓存。未注册ErrorL指定的缓存
EN

Stack Overflow用户
提问于 2020-06-24 10:35:10
回答 1查看 172关注 0票数 0

我正在尝试使用NCache开源。我已经在我的本地机器上安装了它。我已经按照指示编辑了config.ncconf文件。已使用Restart-Service命令重新启动服务。

代码语言:javascript
复制
<cache-config cache-name="myreplicatedcache">
<cache-settings inproc="False">
 <logging enable-logs="True" trace-errors="True" trace-debug="False" log-path=""/>
 <performance-counters enable-counters="True" snmp-port="0"/>
 <cache-notifications item-remove="False" item-add="False" item-update="False"/>
 <cleanup interval="15sec"/>
 <storage type="heap" cache-size="1024mb"/>
 <eviction-policy default-priority="normal" eviction-ratio="5%"/>
 <cache-topology topology="replicated">
   <cluster-settings operation-timeout="60sec" 
       stats-repl-interval="600sec" use-heart-beat="False">
     <cluster-connection-settings port-range="1" connection-retries="2" 
                   connection-retry-interval="10secs" cluster-port="7804"/>
   </cluster-settings>
 </cache-topology>
 <client-death-detection enable="False" grace-interval="60sec"/>
</cache-settings>
<cache-deployment>
 <servers>
   <server-node ip="192.168.0.101"/>
 </servers>
</cache-deployment>
</cache-config>

尽管如此,我仍然无法启动我注册的新缓存。我遇到-“指定的缓存未注册”。我不确定为什么会发生这种情况,因为我确定它是注册的。下面是它看起来的样子:

EN

回答 1

Stack Overflow用户

发布于 2020-07-09 23:18:30

端口是否打开并允许流量?您可以尝试关闭windows防火墙,如果可行,则定义允许通信的规则。

您还可以尝试使用分区缓存配置

代码语言:javascript
复制
<cache-config cache-name="myPartitionedCache" alias="" config-id="44fb997a-f6a7-433b-9439-7ef9de9f47c7" config-version="0">
    <cache-settings inproc="False">
      <logging enable-logs="True" trace-errors="True" trace-debug="False" log-path=""/>
      <performance-counters enable-counters="True" snmp-port="0"/>
      <cache-notifications item-remove="False" item-add="False" item-update="False"/>
      <cleanup interval="15sec"/>
      <storage type="heap" cache-size="1024mb"/>
      <eviction-policy default-priority="normal" eviction-ratio="5%"/>
      <cache-topology topology="partitioned">
        <cluster-settings operation-timeout="60sec" stats-repl-interval="60sec" use-heart-beat="False">
          <cluster-connection-settings port-range="1" connection-retries="2" connection-retry-interval="2secs" cluster-port="7801"/>
        </cluster-settings>
      </cache-topology>
      <client-death-detection enable="False" grace-interval="60sec"/>
    </cache-settings>
    <cache-deployment>
      <servers>
        <server-node ip="yourIPHere"/>

      </servers>
    </cache-deployment>
  </cache-config>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62546705

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档