- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
考虑类,利用 Apache Ignite.NET 库
public interface ICluster
{
void Join();
void Leave();
}
public class ApacheIgniteClusterImpl : ICluster
{
private IIgnite Ignite { get; set; }
private int MulticastPort { get; }
private int ThinClientPort { get; }
public ApacheIgniteClusterImpl(int multicastPort = 47401, int thinClientPort = 10800)
{
MulticastPort = multicastPort;
ThinClientPort = thinClientPort;
}
public void Join()
{
if (Ignite != null)
{
return;
}
var configuration = new IgniteConfiguration
{
ClientConnectorConfiguration = new ClientConnectorConfiguration
{
Port = ThinClientPort,
},
DiscoverySpi = new TcpDiscoverySpi
{
IpFinder = new TcpDiscoveryMulticastIpFinder()
{
MulticastPort = MulticastPort,
}
},
JvmOptions = new List<string>()
{
"-DIGNITE_NO_SHUTDOWN_HOOK=true",
},
};
// Start
Ignite = Ignition.Start(configuration);
}
public void Leave()
{
Ignition.Stop(null, true);
Ignite = null;
}
}
通常,在 .NET Standard 中,我们可以 Hook AppDomain.CurrentDomain.ProcessExit
我们可以做清理工作的事件。但是,一旦 JVM 由 Apache Ignite.NET 创建 AppDomain.CurrentDomain.ProcessExit
当我用 kill <pid>
杀死 MacOS 上的控制台应用程序时永远不会被触发.
我在调试时做了一些研究,发现它会在 private static Jvm CreateJvm(IgniteConfiguration cfg, ILogger log)
之后的某个地方发生。已被调用。
知道那里发生了什么,如果有机会我们可以连接到 AppDomain.CurrentDomain.ProcessExit
?
UPD:都不是AppDomain.CurrentDomain.DomainUnload
也不System.Runtime.Loader.AssemblyLoadContext.Unloading
也会起作用。
最佳答案
ProcessExit
is not guaranteed to be called .
我相信 Ignite.NET 与此无关。我已经检查过这个(没有引用或启动 Ignite),如果你强行终止进程,则不会调用处理程序。
关于c# - Apache Ignite.NET 和 AppDomain.CurrentDomain.ProcessExit,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52148621/
这就是我的代码中的全部内容。这只是使用 Ignite 的典型方式: Ignite ignite = Ignition.ignite(); 我看到的错误信息是: WARNING: An illegal
有时我会不断地对节点进行分段。它发生在一个大约有 40 个节点的集群中——它一次只发生在一个节点上。有几次它发生在正在进行一些繁重的 GC 工作时。另一方面,我看到类似的繁重的 GC 工作正在进行并且
我有 2 个服务器节点和一个客户端节点。我正在使用 TopologyValidator 来验证拓扑。 如果任何服务器节点离开集群,我想禁用所有操作。 TopologyValidator 仅禁用更新操作
我有一个用例,我必须为我的 ignite 集群支持多个持久性存储,例如缓存 A1 应该从数据库 db1 启动,缓存 B1 应该从数据库 db2 启动。这可以完成吗?。在 ignite 配置 XML 中
我对分区模式下的 Ignite Cache 有几个问题 1)当Ignite集群中的节点发生故障时,如果故障节点是某个 key 的主节点,那么该节点的备份是否会成为新的主节点? 2) 故障节点中的备份副
在页面 https://ignite.apache.org/features/datagrid.html我找到了以下信息: “与其他键值存储不同,Ignite 使用可插入哈希算法确定数据局部性。每个客
可以说我下面有一个对象Employee,它存储在ignite缓存中。 Employee{ int id; String name; List marksInorder;/
我正在尝试使用基于集群的执行器服务。 //获取启用集群的执行器服务。ExecutorService exec = ignite.executorService(); 是否有办法设置执行程序服务池中的线
我在 Linux 节点上的 Kubernetes 集群中运行 Apache Ignite .Net。 最近我将我的 ignite 2.8.1 集群更新到了 v2.9。更新后,作为集群一部分的某些服务无
我有一个 3 节点的 ignite 集群和 1 个创建缓存的客户端。在开发和测试过程中,我不得不多次停止集群或中断缓存构建,现在整个系统都崩溃了。只有一个节点启动,其他节点崩溃。客户端被阻止,它什么也
任何人都可以告诉我 Apache Ignite 中是否有可用的基于时间的触发策略? 我有一个对象在那个日期(时间戳)过期时有过期日期我想更新这个值并在缓存中覆盖它是否可以在 Apache Ignite
用例 这是我们正在研究的拓扑 Server - 1 --> marketData缓存,保存不同的股价信息 客户端 - 1 --> 将数据推送到缓存 Client - 2 --> 持续查询,监听市场上的
我无法理解 Apache Ignite 和 GridGain 平台之间的区别。他们是平等的?或者 GridGain 是 Apache Ignite 实现的标准? 最佳答案 来自 the website
我们正在探索在我们的项目中使用 Apache Ignite。基本上,我们有几十个 oracle 表。我们想将每个表加载到 Ignite Cache 中,然后在这些缓存之间进行连接。我们的表之间有很多连
我无法在 Quarkus 中找到 Apache Ignite 依赖项,也无法在任何有人将 Apache Ignite 与 Quarkus 结合使用的示例中找到它。如果 Quarkus 当前不支持 Ap
有没有人试过使用 IgniteSet 或类似的数据结构在连续查询上设置远程过滤器?没有太多关于 IgniteSet 如何工作的文档,因此这个问题。基本上我的用例如下: 我有一个使用 Ignite 实现
我在 Ignite 中创建了一个缓存,现在我正尝试通过 ignite 包中提供的 sqlline 查询它。在文档中,它只讨论创建表、索引、查询这些表等。但没有讨论以这种方式通过 ignite.getO
我编写了下面的代码来从 JSON 文件中读取数据并将其推送到 Ignite 分布式缓存中,这段代码工作正常,但是,创建“ContainerAgg”类的要求对我来说是个问题。我们的数据结构不是预定义的,
我正在寻找一种方法将具有给定键的所有实体从一个 Ignite 缓存复制到另一个。虽然不断获取新数据,但每 x 秒所有数据都必须复制到缓存 2。我尝试使用 EntryProcessor,因为我只需要就地
我们使用的是 Apache Ignite 2.9.0。它是一个带有 Zookeeper 发现的 5 节点集群。 我们通过从 Intellij 执行 DDL 语句在 Ignite 中创建表。然后我们可以
我是一名优秀的程序员,十分优秀!