Apache Ignite 集群设置
Apache Ignite cluster setup
我一直在尝试使用 Apache ignite 设置集群。这个集群将有缓存,也将实现服务网格。
我想根据节点启动和与集群的连接为每个节点动态分配角色。
例如,如果节点 1 已设置,则将其设置为缓存,如果我们有 2 个节点保存缓存,则将服务部署在第三个节点上。
所有节点的代码库都相同。
这可以实现吗?怎么做到的?
任何帮助将不胜感激。
是的,可以使用节点过滤器来完成:
https://www.gridgain.com/docs/latest/developers-guide/configuring-caches/managing-data-distribution
有一个 AttributeNodeFilter 无需额外编码即可完成此操作:
https://www.gridgain.com/docs/latest/developers-guide/configuring-caches/managing-data-distribution#filtering-nodes-by-attributes
Apache Ignite 假定所有节点都是同类的。你可以有节点属性,但依赖特定节点来完成特定任务并不常见。
您可以将自己的代码与 Apache Ignite(可嵌入)一起使用来实现该工作流。
我一直在尝试使用 Apache ignite 设置集群。这个集群将有缓存,也将实现服务网格。
我想根据节点启动和与集群的连接为每个节点动态分配角色。
例如,如果节点 1 已设置,则将其设置为缓存,如果我们有 2 个节点保存缓存,则将服务部署在第三个节点上。
所有节点的代码库都相同。
这可以实现吗?怎么做到的?
任何帮助将不胜感激。
是的,可以使用节点过滤器来完成: https://www.gridgain.com/docs/latest/developers-guide/configuring-caches/managing-data-distribution
有一个 AttributeNodeFilter 无需额外编码即可完成此操作: https://www.gridgain.com/docs/latest/developers-guide/configuring-caches/managing-data-distribution#filtering-nodes-by-attributes
Apache Ignite 假定所有节点都是同类的。你可以有节点属性,但依赖特定节点来完成特定任务并不常见。
您可以将自己的代码与 Apache Ignite(可嵌入)一起使用来实现该工作流。