azure-service-fabric

Service Fabric logs consuming all available disk space

回眸只為那壹抹淺笑 提交于 2019-12-06 03:37:36
问题 I've got a few clusters that have now been running for a month or so and am finding that temporary storage is being entirely gobbled up by Service Fabric log files. On a sweet fleet of F1 VMs where there is only 16GB of local storage I am just about out of space, a few of them are now down to 30MB, yes mega-bytes of storage (where less than 1GB is consumed by my application in all its versions). In looking at the disk usage on the cluster VMs I can see clearly that the SvcFab\Log and SvcFab

What is the most optimal method of querying a reliable dictionary collection

混江龙づ霸主 提交于 2019-12-06 03:33:27
I would like to use service fabric reliable dictionaries to store data that we intend to query via a rest interface. I was wondering what was the most optimal approach to querying data held in those collections. The documentation doesn't seem to provide any methods to support querying a IReliableDictionary interface apart from simply enumerating over the collection. Is the only option to fetch every object out of the reliable dictionary and pop into a List<> collection for querying? Thanks As Vaclav mentions in his answer, you can always enumerate the entire dictionary and filter as you wish.

Service Fabric: are multiple service types allowed in ServiceManifest.xml

蹲街弑〆低调 提交于 2019-12-06 02:49:38
问题 I'm trying to register multiple service-fabric services within a single exe (ServiceRuntime.RegisterServiceAsync). Is this supported? If so, how would I configure them? Eg: ServiceManifest.xml supports multiple StatelessServiceType elements within ServiceTypes: <?xml version="1.0" encoding="utf-8"?> <ServiceManifest Name="EchoGatewayPkg" Version="1.0.0" xmlns="http://schemas.microsoft.com/2011/01/fabric" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema

How To migrate windows service in Azure service fabric

♀尐吖头ヾ 提交于 2019-12-06 02:41:51
I want to migrate typical windows service which is written in .net to Azure using Service fabric. To implement this , I am creating one service fabric application containing one micro service as guest executable which uses .exe of windows service and deploying application package to service fabric cluster. After deploying service fabric application on cluster I want windows service should install & start automatically on all nodes however at any time application is running on any single node. I want windows service should run on only one node at a time. Please kindly help to implement this.

service fabric client authentication in dotnetcore UserPasswordCredential not working

﹥>﹥吖頭↗ 提交于 2019-12-05 22:10:01
I'm building a small service fabric maintenance in aspnetcore (dotnetcore2.0) application but now doesn't recognize the UserPasswordCredential class. From here it is by design as they say. With that I need to convert my previous code so that I can create a valid FabricClient. How I can convert the GetAccessToken() method? private static FabricClient CreateSecuredFabricClient() { try { var claimsCredentials = new ClaimsCredentials(); claimsCredentials.ServerThumbprints.Add(_sslThumbprint); var fc = new FabricClient(claimsCredentials, _clusterConnectionString); fc.ClaimsRetrieval += (o, e) => {

Storing a large amount of state in a service fabric cluster

元气小坏坏 提交于 2019-12-05 16:15:41
I have a scenario where we need to store x*100 GBs of data. The data is in-general a good candidate for persistent state for an actor (well-partitioned, used by the specific actors only) in the service fabric cluster itself. Is the service fabric persistent state storage recommended for data of this scale? (Our compute load is going to be fairly low, so bumping up VMs just to store the state is not a desirable option.) How does the amount of persistent state affect the latency of moving partitions between nodes in the cluster? Well let's look at how state is stored in a service (this applies

How to see if running under service fabric

不羁的心 提交于 2019-12-05 14:43:39
问题 I sometimes run projects locally out of visual studio is there a better way to detect if I'm hosted by SF rather than the exception. I can see possibly the path or entry assembly but there must be a better way. try { ServiceRuntime.RegisterServiceAsync("FisConfigUIType", context = > new WebHost < Startup > (context, loggerFactory, "ServiceEndpoint", Startup.serviceName)).GetAwaiter().GetResult(); Thread.Sleep(Timeout.Infinite); } catch (FabricException sfEx) { RunLocal(args, loggerFactory); }

Azure Service Fabric and Message Queues

China☆狼群 提交于 2019-12-05 10:46:42
问题 Now with Azure Service fabric, would there be a use-case for also using a separate queue solution such as Windows Service Bus? The downsides would probably be a new single point of failure, but are there upsides? Queues can add some buffering, but on the other hand, Service Fabric should be able to scale really well and offer stateful capabilities, so no queue buffers should be needed? 回答1: Sure, the upside is that services like Azure Service Bus and Azure Storage Queues offer features that

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

ぃ、小莉子 提交于 2019-12-05 07:04:58
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 issues. I've basically created new .Net Core projects and then moved all my source code from .Net 4.6

Service Fabric Service Remoting

点点圈 提交于 2019-12-05 02:50:55
问题 I've been migrating from Cloud Services to Service Fabric the last few weeks and have been running into a few stumbling blocks using Remoting between 2 services. I've been using the official documentation and sample code on Service Remoting and in particular I'm trying to get the sample outlined here to work: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-reliable-services-communication-remoting I have 2 services. One is named "RemoteService" and the other is named