azure-service-fabric

Downsides of CommitAsync() w/o any changes to collection

笑着哭i 提交于 2019-12-02 12:04:25
All the samples usually demonstrate some sort of change to reliable collections with CommitAsync() or rollback in case of a failure. My code is using TryRemoveAsync() , so failure is not a concern (will be retried later). Is there a significant downside to invoking tx.CommitAsync() when no changes to reliable collections where performed? Whenever you open a Transaction and execute commands against a collection, these commands acquire locks in the TStore(Collection) and are recorded to the transaction temporary dictionary(Change tracking) and also to the transaction logs, the replicator then

OpenIddict: 401 errors when two or more service instance count

一世执手 提交于 2019-12-02 09:44:13
问题 I have a .NET Core application with Angular2 UI running in a Service Fabric Cluster that I secured using OpenIddict. I followed this example: https://github.com/openiddict/openiddict-samples/tree/master/samples/RefreshFlow It works great when I only have one instance of the stateless .NET Core application. When I increase the instance count to two, the authentication fails and I get a bunch of 401 errors. It seems that the token I receive is only good for that particular instance and is

Service Fabric Cluster Custom endpoints vs Application start and end ports

隐身守侯 提交于 2019-12-02 09:42:09
This screenshot was taken while creating a cluster on the Azure portal. As given in the picture below, what is the difference between Custom endpoint and application start-end port range? Why is one called an endpoint and the other called a port? The custom endpoints help says "Custom endpoints allow for connections to applications running on this node type. Enter endpoints separated by a comma." . In the documentation here and here it is explained in a very clear way, Custom endpoints : This field allows you to enter a comma-separated list of ports that you want to expose through the Azure

Calling services from other application in the cluster

北城余情 提交于 2019-12-02 05:00:46
问题 Is it possible to call services or actors from one application to another in a Service Fabric Cluster ? When I tryed (using ActorProxy.Create with the proper Uri), I got a "No MethodDispatcher is found for interface" 回答1: Yes, it is possible . As long as you have the right Uri to the Service (or ActorService) and you have access to the assembly with the interface defining your service or actor the it should not be much different than calling the Service/Actor from within the same application.

OpenIddict: 401 errors when two or more service instance count

空扰寡人 提交于 2019-12-02 04:09:55
I have a .NET Core application with Angular2 UI running in a Service Fabric Cluster that I secured using OpenIddict. I followed this example: https://github.com/openiddict/openiddict-samples/tree/master/samples/RefreshFlow It works great when I only have one instance of the stateless .NET Core application. When I increase the instance count to two, the authentication fails and I get a bunch of 401 errors. It seems that the token I receive is only good for that particular instance and is rejected on the other instance. I think I understand why this is happening, but I’m not sure how to address

Cannot debug project after upgrading to Service Fabric SDK v2.3.301

与世无争的帅哥 提交于 2019-12-02 02:35:07
问题 Recently upgraded to Service Fabric SDK v2.3.301, but for some reason my project got corrupted. I cannot debug the project, I get the following error: "A project with an Output Type of Class Library cannot be started." It seems that the solution now fails to recognize the Service Fabric App. Yet I am able to deploy to my local cluster. Anyone had similar issues while upgrading to the new SDK? Thanks PS Just in case, the service fabric app is the already set as startup project :o) 回答1: We have

Application Insights in Service Fabric?

淺唱寂寞╮ 提交于 2019-12-02 02:18:54
问题 I need to add performance logging in a Azure Service Fabric application I'm developing. I've tried to follow the following guide which seems quite straightforward and easy: https://github.com/Microsoft/azure-content/blob/master/articles/service-fabric/service-fabric-diagnostics-application-insights-setup.md Yet, I'm unable to find the package Microsoft.ServiceFabric.Telemetry.ApplicationInsights on NuGet. Since that article is from last year maybe things have changed quite a bit, but I'm not

Application Insights in Service Fabric?

余生颓废 提交于 2019-12-02 00:54:41
I need to add performance logging in a Azure Service Fabric application I'm developing. I've tried to follow the following guide which seems quite straightforward and easy: https://github.com/Microsoft/azure-content/blob/master/articles/service-fabric/service-fabric-diagnostics-application-insights-setup.md Yet, I'm unable to find the package Microsoft.ServiceFabric.Telemetry.ApplicationInsights on NuGet. Since that article is from last year maybe things have changed quite a bit, but I'm not sure whether configuring Insights for aan Azure Service Fabric app is quite different from any ASP.Net

Prevent visual studio shutting down service fabric services

China☆狼群 提交于 2019-12-01 19:25:54
问题 When I run my service fabric service in visual studio it deploys to the service fabric as expected. When I stop debugging in visual studio, visual studio then unprovisions the service fabric service. Is there any way to prevent this behaviour? I would prefer it if visual studio left the service running in service fabric. Thanks, Slicc 回答1: There are two ways this can be done: Launch your app from VS without the debugger attached (Debug -> Start Without Debugging [Ctrl+F5]). Obviously, this

Hosting console application in public service fabric cluster

半腔热情 提交于 2019-12-01 17:33:08
I am trying to deploy a console application to service fabric. I was able to successfully deploy and run the application in local service fabric cluster. But when I am trying with public service fabric cluster, I am seeing below warning in service fabric explorer and the application is not running. Unhealthy event: SourceId='System.Hosting', Property='CodePackageActivation:C:EntryPoint', HealthState='Warning', ConsiderWarningAsError=false.There was an error during CodePackage activation.The service host terminated with exit code: 3762504530 The most common explanation for code the runs locally