本地开发 5 节点服务结构,具有 2 个前端节点和 3 个后端节点
Local dev 5 node service fabric, with 2 frontend and 3 backend nodes
我想用 2 个前端节点和 3 个后端节点配置我的 Service Fabric 安装,这样我就可以更紧密地复制我的生产环境。
我已按照此 post 中的步骤进行操作:
但是自从写这篇文章以来,配置似乎发生了一些变化。如果我仍然编辑配置,我会收到错误消息:
Dev
Cluster size 2 is not supported. Size should be either 1 or 5.
谁能告诉我是否有可能拥有一个具有 2 个前端节点和 3 个后端节点的本地 5 节点集群?
来自docs:
When developing applications, you often find yourself doing quick
iterations of writing code, debugging, changing code, and debugging.
To help optimize this process, the local cluster can run in two modes:
one-node or five-node. Both cluster modes have their benefits.
Five-node cluster mode enables you to work with a real cluster. You
can test failover scenarios, work with more instances and replicas of
your services. One-node cluster mode is optimized to do quick
deployment and registration of services, to help you quickly validate
code using the Service Fabric runtime.
因此,对于开发集群,您不能使用 2 种节点类型。
对于生产集群,您可以有 2 种节点类型。
但是,对于生产工作负载,您应该 运行 至少 5 primary nodes,用于故障转移和 DR 目的。
你可以做的是使用placement constraints来指定前端和后端服务。
请记住,这会限制 SF 平衡工作负载的选项。
我想用 2 个前端节点和 3 个后端节点配置我的 Service Fabric 安装,这样我就可以更紧密地复制我的生产环境。
我已按照此 post 中的步骤进行操作:
但是自从写这篇文章以来,配置似乎发生了一些变化。如果我仍然编辑配置,我会收到错误消息:
Dev Cluster size 2 is not supported. Size should be either 1 or 5.
谁能告诉我是否有可能拥有一个具有 2 个前端节点和 3 个后端节点的本地 5 节点集群?
来自docs:
When developing applications, you often find yourself doing quick iterations of writing code, debugging, changing code, and debugging. To help optimize this process, the local cluster can run in two modes: one-node or five-node. Both cluster modes have their benefits. Five-node cluster mode enables you to work with a real cluster. You can test failover scenarios, work with more instances and replicas of your services. One-node cluster mode is optimized to do quick deployment and registration of services, to help you quickly validate code using the Service Fabric runtime.
因此,对于开发集群,您不能使用 2 种节点类型。
对于生产集群,您可以有 2 种节点类型。 但是,对于生产工作负载,您应该 运行 至少 5 primary nodes,用于故障转移和 DR 目的。
你可以做的是使用placement constraints来指定前端和后端服务。 请记住,这会限制 SF 平衡工作负载的选项。