azure-service-fabric

Deploy a C# Stateful Service Fabric application from Visual Studio to Linux

99封情书 提交于 2019-12-07 04:57:21
问题 EDIT 04/06/18 => Updated question with last status So I have this working .Net 4.6 Stateful Service that currently run on my Windows Service Fabric cluster deployed on Azure. Starting from 09/2017, I should be able to move to Linux: https://blogs.msdn.microsoft.com/azureservicefabric/2017/09/25/service-fabric-6-0-release/ So I'm trying to deploy it on Linux so I can save costs. First things first, I've migrated all my code from .Net 4.6 to .Net Core 2.0. Now I can compile my binaries without

Dynamic Servicefabric Settings and Overrides

为君一笑 提交于 2019-12-06 15:50:46
Is there a way to not tell the service about the settings at all and just provide them at the application level? I am still unhappy with how servicefabric configuration seems to work. Near as I can tell I have to specify in the service’s settings.xml all of the possible configuration values. Then I can override those in the application’s ApplicationParameters. Per documentation this looks like it holds true for environment variables also. The complication that creates is that our configuration is used to hydrate options in many cases with arrays. For example consider the json: {

Does Azure service fabric creates separate process for every service

给你一囗甜甜゛ 提交于 2019-12-06 14:33:38
问题 Suppose there is an named application running on Azure service fabric cluster. And this named application has 5 different services. Will these services be running in different processes or in same process? And what if these services are not .net services and are executable? 回答1: Guest EXEs always get their own processes. Otherwise, there are two hosting modes available: Exclusive Process - this one is very straight-forward so let's start here. In this mode, everything gets its own process.

Exposing WCF/TCP Endpoints from Service Fabric with WS-MetadataExchange for external clients and WcfTestClient

不打扰是莪最后的温柔 提交于 2019-12-06 14:09:43
问题 I have a Stateless Service that I am migrating some CloudService WCF Endpoints to. These enpoints are available publicly and require that I am able to discover their properties using WS-MetadataExchange via both References > Add Service Reference from a Visual Studio project as well as from WCFTestClient . I've followed a few tutorials and have a test endpoint set up: <Endpoint Protocol="tcp" Name="WcfServiceEndpoint" Type="Input" Port="8081" /> As well as a service contract [ServiceContract]

Auto creation of Service without DefaultServices on developer machines

↘锁芯ラ 提交于 2019-12-06 13:19:05
At the recent Service Fabric Community Q&A 24th Edition there was a lot of discussion around using the DefaultService construct in the ApplicationManifest.xml and it's drawbacks. Microsoft suggested omitting this from an ApplicationManifest entirely and instead modifying the Deploy-FabricApplication.ps1 to construct a default implementation of an application so developers still have a decent F5 experience. So I have modified the Deploy-FabricApplication.ps1 to the following (this excerpt is the bottom of the script): if ($IsUpgrade) { $Action = "RegisterAndUpgrade" if ($DeployOnly) { $Action =

Implement Cache in Azure Service Fabric

核能气质少年 提交于 2019-12-06 12:43:47
I am working on a project in which I need a set of data frequently and currently for getting that data I have to make call to 3rd party Service which is taking lot of time.So what I want is to maintain a local cache .The Data is modified very infrequently or is almost constant .What is the best way of implementing this in Azure Service Fabric.I am currently thinking of making the Microservice stateful . Is is the best way to do this?When node goes down it should copy its local cache to other node.If making it stateful is good than How should i go on implementing this? Renan Fagundes Well, you

Unable to authenticate FabricClient to a secured Service Fabric Cluster

元气小坏坏 提交于 2019-12-06 10:46:48
问题 I have a secured service fabric cluster. The same certificate is being used as the server certificate and for client authentication. I am unable to create a FabricClient in a console application that will allow me to connect to this cluster. I am using the code snippet documented here under "Connect to a secure cluster using a client certificate": static void Main(string[] args) { string thumb = "‎1234567890123456789012345678901234567890"; string CommonName = "somefabric.cloudapp.azure.com";

Azure Service Fabric Rollback

浪子不回头ぞ 提交于 2019-12-06 07:16:32
问题 I have a Service Fabric application. Let's say, version 1.0.0. I deploy an update as version 2.0.0. Everything is good. Later, I want to roll back (or upgrade depending on your perspective) to version 1.0.0. I want to run a simple PS script to rollback. I know similar questions has been asked (in various forms), but no one has provided a solution. It seems like something common which should be trivial to accomplish. I don't need a tutorial on how publish works. I just want some PS script I

azure service fabric reliable dictionary linq query very slow

社会主义新天地 提交于 2019-12-06 04:40:40
问题 I have a reliable dictionary in service fabric stateful service. I have a simple linq expression. I am using Ix-Async package for building an asyncenumerable. using (ITransaction tx = this.StateManager.CreateTransaction()) { var result = (await customers.CreateLinqAsyncEnumerable(tx)) .Where(x => x.Value.NameFirst != null && x.Value.NameFirst.EndsWith(n, StringComparison.InvariantCultureIgnoreCase)) .Select(y => y.Value); return await result.ToList(); } The data is organized into 2 partitions

Reliable blob state in Azure Service Fabric?

♀尐吖头ヾ 提交于 2019-12-06 03:56:43
Is there a recommended way work with blobs as reliable state in Azure Service Fabric? I see two options: Implement a chunking mechanism and store chunks in a reliable collection. This option has a pretty heavy development/maintenance burden though. Store blobs externally (Azure Blob Storage). This option couples the service with Azure though. We would have to provide our own abstraction and implementation for running in an on-premises cluster. Maybe there is a reliable state provider/manager for blobs already available somehow? Those are your two best options currently. There isn't a blob