azure-service-fabric

Service Fabric - how to gracefully fail an app

左心房为你撑大大i 提交于 2019-12-12 18:12:50
问题 I have a set of stateless and stateful services in an app. Obviously I'd like them to run perfectly but there are instances where my app knows it cannot recover from a failure. For example, if it cannot load its configuration settings from KeyVault (and its failover copies), then there is no point going any further. So question is, how to tell service fabric to give up the whole app? I have tried Partition.ReportFault(FaultType.Permenant) but bless it, it tries to start a new partition. :-)

Service Fabric Application vmImageSku

馋奶兔 提交于 2019-12-12 16:04:01
问题 When you deploy a Service Fabric Cluster as an ARM template you have the option of specify Windows Version (OS) of the Virtual Machine via the VmImageSku parameter. It is per default set to "2012-R2-Datacenter". I have not been able to find any examples of other values for this. My real question is can a Service Fabric Cluster be deployed to a Server Core? "vmImagePublisher": { "type": "string", "defaultValue": "MicrosoftWindowsServer", "metadata": { "description": "VM image Publisher" } },

Run Service Fabric App under Group Managed Service Account (gMSA)

十年热恋 提交于 2019-12-12 12:16:53
问题 I'm testing using a gMSA account to run an SF app, instead of NETWORKSERVICE. Following the instructions from here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-runas-security Created the gMSA on the domain controller using the powershell cmdlet: New-ADServiceAccount -name MySA$ -DnsHostName MySA.contoso -ServicePrincipalNames http/MySA.contoso -PrincipalsAllowedToRetrieveManagedPassword Node0Machine$, Node1Machine$, Node2Machine$ Install-AdServiceAccount

many log files on azure service fabric

拟墨画扇 提交于 2019-12-12 10:57:35
问题 I have a azure service fabric development cluster running locally with two applications. After a two week holiday I come back and see that my hard drive is completely full, consequently nothing really works anymore. the sfdevcluster\log\traces folder has many *.etl files all larger than 100MB. And all kinds of other log files > 250 MB are present So my questions: how to disable tracing/logging on azure service fabric and are there tools to administer log files? 回答1: This turned out to be a

Azure Service Fabric Actors - unhandled exceptions?

谁说我不能喝 提交于 2019-12-12 07:12:49
问题 Right now our ASF cluster is running: Web API project - stateless and public facing Actor project - mostly volatile, keeping data in memory, used by certain APIs We are trying out Application Insights, and I can setup unhandled error tracking like their docs here have for our Web API project. Issue is, I want this for our Actor project as well. Is there a global place for catching unhandled errors within an Actor? I know it's new, and maybe that is why I can't find documentation on this.

Service fabric more than one communication listener for service remoting

情到浓时终转凉″ 提交于 2019-12-12 06:47:06
问题 I am developing few micro services using Azure Service Fabric. I have some use cases which need the communication between micro services and I read about service remoting https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-remoting. I just wanted to know is it possible to support more than one listeners in a SF application. E.g. I have an existing stateless web api SF application which is having a listener like below protected override

Manual rollback of an application / service

99封情书 提交于 2019-12-12 06:36:50
问题 I have a Service Fabric application with a few services underneath it. They are all currently sitting at version 1.0.0. I deploy an update out to the cluster for version 2.0.0. Everything is running fine and the deployment succeeds. I notice a very large but in the version. Is there a way to manually rollback to version 1.0.0? The only thing I have found is automatic rollback during an upgrade. 回答1: Matt's answer is correct, but I'll elaborate a bit on it here. The key is in understanding the

Cant publish to service fabric local cluster on another machine

半世苍凉 提交于 2019-12-12 05:37:36
问题 I installed a local cluster to my development machine today to have a play. However when uploading some guest exe's the fabric crashes. I even tested just loading simple old notepad.exe, but alas the same crash. As a further test I pushed the notepad.exe to the public party cluster and it ran just fine. This post gives a similar error, and as per the comments I suspect it is a Windows 7 issue. So next idea was to install a local cluster on a new Windows server VM, and attempt to publish to

How to Execute Service Fabric Powershell commands from c#?

我们两清 提交于 2019-12-12 05:26:46
问题 I used the "System.Management.Automation.dll" for executing PowerShell Commands from C# code. But I could not execute the Service Fabric Commands. When I execute the Service Fabric commands i get the following error The specified module 'ServiceFabric' was not loaded because no valid module file was found in any module directory The term 'Connect-ServiceFabricCluster' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a

Setup a Azure Service Fabric Listener for Service Bus Relay Binding

依然范特西╮ 提交于 2019-12-12 04:36:56
问题 I want to setup a Azure Service Bus Relay between my Service Fabric cluster hosted in Azure and my Private Network. I can't get the configuration of the Service Bus Relay to work from a Service Fabric WCF service. protected override IEnumerable<ServiceInstanceListener> CreateServiceInstanceListeners() { return new[] { // Standard WCF Listener new ServiceInstanceListener(context => new WcfCommunicationListener<IFooService>( wcfServiceObject: this, serviceContext: context, endpointResourceName: