azure-service-fabric

Service Fabric Deactivate (pause) vs Deactivate (restart)?

和自甴很熟 提交于 2020-01-01 02:25:11
问题 When I log in to Service Fabric Explorer and try to disable a node for an OS upgrade I am presented with two options: Deactivate (Pause) Deactivate (Restart) Can anyone tell me the difference? 回答1: Service Fabric has APIs that let you manage nodes (in C# these are DeactivateNodeAsync and ActivateNodeAsync, in PS they're Enable/Disable-ServiceFabricNode). First of all, most of these are holdovers from when people managed their own clusters, and should be less commonly used in the Azure Hosted

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

安稳与你 提交于 2019-12-31 06:26:08
问题 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? 回答1: Whenever you open a Transaction and execute commands against a collection, these commands acquire locks in the TStore(Collection) and are recorded to

Add Application Insight to a existing Azure Service Fabric cluster

守給你的承諾、 提交于 2019-12-30 08:36:09
问题 We have been working on Azure Service Fabric since last 4 months but now have decided to have a unified loging infrastructure for which we are using AppInsight, how can we add a AppInsight Key to a existing Service Fabric cluster 回答1: I did it this way, using Visual Studio 2017 : Open Cloud Explorer from VS Expand Virtual Machine Scale Sets Locate the scale set containing your SF cluster. Right-click Update diagnostics... In the dialog, check Send diagnostics to Application Insights and add

Azure Service Fabric: Unprovision application version

。_饼干妹妹 提交于 2019-12-25 16:39:27
问题 I'm looking for a way of cleaning old application versions in Service Fabric via the SDK. It seems there is no way to unprovision a version by using FabricClient 's ApplicationManager (similar to the action available in the Service Fabric Explorer, Application Type view) ? I can get a list of all the versions for an application type by using: fabricClient.QueryManager.GetApplicationTypeListAsync() 回答1: How about this: public System.Threading.Tasks.Task UnprovisionApplicationAsync (string

Connecting an NServiceBus gateway on an Azure Service Fabric stateless service

我们两清 提交于 2019-12-25 09:36:41
问题 We are running into difficulties when trying to set up a gateway. I can get it running fine locally, similar to the documentation you provided, but once I need to change the localhost addresses, things start to break down. Our first endpoint runs on a Windows Service (external service), our other endpoint runs on the Azure Service Fabric, specifically within a Stateless service running Web API. We are accessing the service through a remote proxy, which is necessary to contact a service within

Delete route not being hit

安稳与你 提交于 2019-12-25 08:29:16
问题 Being battling this issue for too long now it's time to ask for help. The delete route of my .net core mvc app is not being hit. All other routes (Get, Post) are hit just fine. The route config at startup looks like this: app.UseMvc(routes => { routes.MapRoute( name: "default", template: "{controller}/{action}/{id?}"); }); The form submit looks something like this: <a class="btn btn-primary" href="~/DisabledRegistrations/Delete/@(Model.Id)">Confirm</a> The controller method looks like this:

How can I get the resource group name from within Service Fabric on Microsoft Azure

心已入冬 提交于 2019-12-25 07:47:35
问题 My service can be placed on different resource groups, but needs to know the name of the resource group in order to request information about the VM Scale Sets it's running on. How do I get the name of the Resource Group which the Fabric is in from within the Fabric? 回答1: This may work: If you uniquely tag your resource group, and configure the sf application to know that tag, you might be able to query the resource groups and filter by tag. You could use a Service Principal to access the

Creating a Service Fabric cluster using resource manager template

天大地大妈咪最大 提交于 2019-12-25 06:39:31
问题 No luck today, I'm receiving an InvalidTempalteDeployment error, I'm using the deploy and parameter json file: https://github.com/Azure/azure-quickstart-templates/tree/master/service-fabric-secure-cluster-5-node-1-nodetype-wad Error message: Test-AzureRmResourceGroupDeployment -ResourceGroupName "SF-API-Research" -TemplateFile "D:\Research\101-Azure\SF-API-Re search-ARM-Template\azuredeploy.json" -TemplateParameterFile "D:\Research\101-Azure\SF-API-Research-ARM-Template\azuredeploy.parameters

ERR_CONNECTION_TIMED_OUT when trying to access a Service Fabric service

拈花ヽ惹草 提交于 2019-12-25 04:43:23
问题 I started to play with Service Fabric very recently. I added a new Service Fabric cluster on Azure ( unsecure ) and I created a demo solution with 2 stateless Web API Services as follows: Endpoint configuration for AnotherAPI is the following: <Endpoints> <!-- This endpoint is used by the communication listener to obtain the port on which to listen. Please note that if your service is partitioned, this port is shared with replicas of different partitions that are placed in your code. -->

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