Service Fabric应用程序路由 [英] Service Fabric Application Routing

查看:70
本文介绍了Service Fabric应用程序路由的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我正在尝试了解如何充分利用应用程序的滚动升级。 

I'm trying to understand how to get the most out of the rolling upgrade for applications. 

例如,如果我有一个运行10个微服务的服务结构集群,我会发布一个新版本的微服务并将其部署到我的集群。我现在有MS v1.0和MS v2.0如何测试MS v2.0是否稳定并准备好替换MS v1.0。

For instance, if I have a service fabric cluster running 10 Microservices, I release a new version of a microservice and deploy this to my cluster. I now have MS v1.0 and MS v2.0 how do I test that the MS v2.0 is stable and ready to replace MS v1.0.

有没有办法路由MS V2.0的流量百分比在每10个请求中说1个?其他人如何做到这一点? 

Is there a way to route a percentage of traffic to MS V2.0 say 1 in every 10 requests? How do other people do this? 

任何建议都会非常感激

谢谢 

Thanks 

推荐答案

一般来说,如果你需要测试另一个版本的应用程序你将该应用程序部署到测试集群或本地环境,然后再发布到生产集群。 

Generally if you need to test another version of an application you would deploy that application to your test cluster or to your local environment before publishing to your production cluster. 

我不知道有什么方法可以升级某些节点然后路由流量仅限具有新版本的节点。如果您部署新版本的群集,它将按设计升级整个群集。 

I am not aware of any way to upgrade some of your nodes and then route traffic to only the nodes with a new version. If you deploy a new version of your cluster it will upgrade the entire cluster as designed. 

因此,您的最佳做法是在测试群集上彻底测试新版本然后,一旦确认部署到您的生产群集。

So best practices in your case would be to thoroughly test the new version on a test cluster and then once confirmed deploy to your production cluster.

我们有一些您可以查看的最佳实践视频和文档 

we have a few best practices videos and docs you can review 

https://docs.microsoft.com/en-us/azure/security/azure- service-fabric-security-best-practices



https://mva.microsoft.com/en-us/training-courses/azure-service-fabric-patterns-and-practices-16925 #!



https://azure.microsoft.com/en-us/resources/videos / ignite-2018-best-practices-for-azure-service-fabric-applications-and-clusters /

另外,在第一个链接上,如果你看一下左侧导航栏还有其他最佳实践文档

Also, on the first link, if you look to the left navigation bar there are additional best practices docs


这篇关于Service Fabric应用程序路由的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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