service-fabric-stateless

Service Fabric .net core app not .net core

不问归期 提交于 2020-01-25 07:50:07
问题 We are in the process of building an service fabric application and have run into a bit of a issue, whenever you user Visual studio to create a new service fabric app and you specify to use a .Net core app, the app/api that is create is a .Net framework app and not .Net core. <TargetFramework>net452</TargetFramework> Instead of: <TargetFramework>netcoreapp2.0</TargetFramework> Does anyone know the reason for this, or is this intended behavior? Regards 回答1: You need to use the preview tools to

Invoke same method on all active instances of a stateless service

喜欢而已 提交于 2020-01-06 11:49:36
问题 What is the best way to invoke the same method on all active instances of a stateless service in SFC? I mean doing something similar to below, just on ALL active instances: var service = ServiceProxy.Create<IMyService>("<my-service-uri>"); await service.MyServiceMethod(); 回答1: Unfortunately looks like there is no way to send remoting request to the particular service instance / replica. According to the documentation of ServiceProxy.Create method there is a very limited control over target

How to call a service fabric service from a Winform application?

允我心安 提交于 2020-01-05 04:19:15
问题 We have two Service Fabric stateless services. We have upgraded our service fabric runtime to the latest version and now want to use the latest V2(V2_1) runtime for communication. We have also upgraded the Service Fabric SDK to the latest version. MathService. It has two endpoints exposed to communication. EvilMathTeacherService. It calls those two endpoints to do some things. It also has an endpoint exposed. These two services can talk to each other using the latest V2(V2_1) runtime. We have

Service fabric rollback to previous version from visual stuido or service fabric explorer

隐身守侯 提交于 2019-12-25 04:06:47
问题 I have published service fabric application version 1.25.0 to the local cluster as well as a cluster in Azure through visual studio publish. All worked. Visual studio gives me the option to upgrade the application too. But I could not able to find how to rollback and publish the previous version of my application let's say 1.23.0 from visual studio. If it cannot be possible from the Visual studio is it possible to do it from service fabric explorer? I have seen posts like Azure Service Fabric

Prevent Visual Studio from rebuilding after packaging Service Fabric with diff packaging

╄→гoц情女王★ 提交于 2019-12-25 01:31:12
问题 I am having a lot of issues upgrading a Service Fabric application. My original question is here. I am raising a new one now as this relates specifically to diff packaging. I have modified my package to remove the services I don't want to touch. But when I publish via Visual Studio, it does a full build. If I try to run the PowerShell script on its own by right clicking on it, it does not work: Cannot validate argument on parameter 'PublishProfileFile'. The "Test-Path $_ -PathType Leaf"

Service Fabric Stateless Cluster has 5 nodes but app only has 1 instance

隐身守侯 提交于 2019-12-25 00:36:47
问题 I have a system that uses stateless services hosted in Service Fabric This is running in a local dev cluster with 5 nodes Some of my services have InstanceCount set to -1 I was expecting to see multiple instances of the host executables to show in task manager but I only see 1 This is making me think there is only 1 instance Am I doing something wrong? Paul 回答1: There is not enough information to determine what the actual problem here is, but based on your description I might suspect of two

Enable a Service Fabric Service to send PING to an external host (C#)

偶尔善良 提交于 2019-12-24 19:08:15
问题 I have a method in a Service Fabric Stateless Service (not an API) that sends a PING request to an external host. It works on my Local Service Fabric Cluster, but not on the actual cluster on Azure. I RDP'd to the cluster and pinged hosts, all of them resulted to "Request timed out". Anyone tried this before? I'm playing around the cluster's Firewall. 回答1: ICMP is blocked inside Azure. You can use PSPing to check connectivity though. More info here. Because the ICMP protocol is not permitted

More than one instance of stateless service per node

ぐ巨炮叔叔 提交于 2019-12-24 02:21:50
问题 My stateless service receives tasks from Service Bus queue and processes it. I'm trying now to find an optimal way to use resources of Service Fabric node as much as possible. So I see 2 approaches: 1) create several threads inside the service 2) create several instances of the service per node. I consider that the 2nd way is more safe and correct but when I specified InstanceCount = 5 for 1-node cluster I received a warning. Config.xml <?xml version="1.0" encoding="utf-8"?> <Application

Sending request to ASP.Net Core Web API running on a specific node in a Service Fabric Cluster

被刻印的时光 ゝ 提交于 2019-12-19 10:21:49
问题 I am working on a Service Fabric Application, in which I am running my Application that contains a bunch of ASP.NET Core Web APIs. Now when I run my application on my local service fabric cluster that is configured with 5 nodes, the application runs successfully and I am able to send post requests the exposed Web APIs. Actually I want to hit the code running on a same cluster node with different post requests to the exposed APIs on that particular node. For further explanation, for example