在服务结构中部署多个应用程序的方案是什么? [英] What is the scenario for deploying multiple applications in service fabric?

查看:54
本文介绍了在服务结构中部署多个应用程序的方案是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据此页面,可以将服务结构中的节点类型视为类似于云服务中的角色.

As per this page, node types in service fabric can be seen as analogous to roles in cloud services.

如果是这种情况,那么我们如何考虑将多个应用程序部署到同一服务矩阵集群.例如.假设有2个应用程序:

If that is the case, then how do we think about deploying multiple applications to same service fabric cluster. E.g. let's say there are 2 applications:

  • 第一个只需要网络角色
  • 秒,需要1个Web角色和2个辅助角色.

问题:

  1. 然后我们是否创建具有3种节点类型(web-1,worker-1,worker-2)的服务矩阵集群,然后让两个应用程序的web角色共享web-1节点类型?

  1. Then do we create service fabric cluster with 3 node types (web-1, worker-1, worker-2) and then let web roles of both apps share web-1 node type?

如果两个应用的性能/可扩展性要求非常不同,例如App1 Web角色需要20个虚拟机,而App2 Web角色仅需要2个虚拟机?我们仍然必须将nodetype1的实例计数更改为20,对吗?

What if the performance/scalability requirements of both apps are very different e.g. App1 web role needs 20 VMs, whereas App2 web role only needs 2? We still have to change instance count of nodetype1 to 20, right?

服务结构如何将一个应用与另一个应用隔离?例如.App1开始获得大量流量,因此最终消耗了大部分CPU/内存,这不会影响App2吗?

And how does service fabric isolate one app from effect of another? E.g. App1 starts getting a lot of traffic, and hence ends up consuming most of the CPU/Memory, wouldn't it impact App2?

推荐答案

  1. 您将创建2个节点类型: Web Worker .Web节点类型上的服务将可以从Internet直接访问,而Worker节点类型中的服务则不能.这两个应用程序共享节点,因此它们可以最佳利用

  1. You would create 2 node types: Web and Worker. Services on the Web node type would be directly accessible from the internet and services in the Worker node type would not. Both applications share the nodes, so they can make optimal use of the available resources.

取决于应用程序的特性,您需要20到22个节点.如果其中一个占用大量内存,而另一个占用大量CPU,则可能无法使用20.如果它们都占用大量CPU,则可能需要22个节点.不是22种节点类型,而是22种节点(VM).

Depending on the application characteristics, you'd need 20 to 22 nodes. If one is memory heavy, and the other CPU heavy you might get away with using 20. If they are both CPU heavy, you'd likely need 22 nodes. So not 22 node types, but 22 nodes (VM's).

SF将执行容器资源治理,您可以限制影响一种服务可以在其他服务上使用.

SF will perform resource balancing to divide the workload across available nodes. By using Containers and resource governance, you can restrict the impact that one service can have on others.

这篇关于在服务结构中部署多个应用程序的方案是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆