简体   繁体   English

Infinispan 复制缓存 - 从所有实例中删除缓存

[英]Infinispan Replicated Cache - Remove cache from all instances

I have two instances of Infinispan replicated in two Kubernetes pods.我在两个 Kubernetes pod 中复制了两个 Infinispan 实例。 In Infinispan, I have one replicated cache C on both the instances.在 Infinispan 中,我在两个实例上都有一个复制缓存C

When I use the Infinispan Java API removeCache() on the cache C from an external Java application (registered to the C cache), I see that just 1/2 Infinispan pods remove that cache, while the other pod still contains it (and then, the application points now to that remaining replica). When I use the Infinispan Java API removeCache() on the cache C from an external Java application (registered to the C cache), I see that just 1/2 Infinispan pods remove that cache, while the other pod still contains it (and then ,应用程序现在指向剩余的副本)。

Is there a way to delete all the replicated caches through an Infinispan Java API?有没有办法通过 Infinispan Java API 删除所有复制的缓存? Or, a way to sync this API call through all the replicated caches?或者,通过所有复制的缓存同步这个 API 调用的方法?

If you use Infinispan 10 or better only caches created with the cli or other admin interface can be removed (persistent) from the configuration.如果您使用 Infinispan 10 或更高版本,则只能从配置中删除(持久)使用 cli 或其他管理界面创建的缓存。 If the server/conf/infinispan*.xml is used it will have no effect clusterwide and a restart will bring the cache back.如果使用 server/conf/infinispan*.xml 它将在集群范围内无效,并且重新启动将恢复缓存。

With the latest Infinispan version there should be no issue, if you any of the admin interfaces the cache will be created and removed cluster wide.使用最新的 Infinispan 版本应该没有问题,如果您使用任何管理界面,缓存将在集群范围内创建和删除。

Note that you can not modify caches here at the moment, this is a feature in future releases 13+请注意,您目前无法在此处修改缓存,这是未来版本 13+ 中的功能

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM