Questions tagged [service-fabric-stateful]

222 questions
4
votes
1 answer

Service Fabric Stateful Service with Asp.net Core Dependency Injection

I use Asp.net core DI correctly in my Stateless service since is basically a normal WebApi application with controllers. I can't figure out how to use Dependency Injection in Stateful Services. This is the default constructor for the Stateful…
4
votes
2 answers

Microsoft Service Fabric Stateful Service will not start

All of a sudden my local Service Fabric is unable to start Stateful services. I've tried to uninstall the SDK's, but with no luck. The same service run fine on the Azure cluster. Even the quickstart service in visual studio won't start Service…
Thomas B
  • 301
  • 2
  • 6
  • 12
3
votes
0 answers

Service fabric package error during code package activation

I have a ServiceFabric Application running on 5 nodes. I was in the process of restarting the nodes one by one to get rid of a known Memory Leakage problem. Restarting node 1 went fine. Ran into problems when restarting node 2. On node 2 there is a…
Frida
  • 31
  • 1
  • 3
3
votes
1 answer

Repair-ServiceFabricPartition command

The Repair-ServiceFabricPartition command is used to forcefully bring a partition out of quorum loss. What exactly does the command do in order to accomplish this? If I have a partition with a primary replica and two secondary replicas and the…
Dismissile
  • 32,564
  • 38
  • 174
  • 263
3
votes
1 answer

How does Service Fabric Choose a Port to Host a Service on?

I am in the middle of implementing GRPC on top of Service Fabric in C#. The GRPC Server requires a ServerPort (in charge of binding ssl credentials to a port) and a Service Definition (in charge of mapping requests on a path to a method delegate). …
3
votes
3 answers

Azure Service Fabric inter service communication

I currently have one Service Fabric application that is composed of multiple Services. What I'm trying to achieve is a Queuing mechanism so one Service can publish a message to a queue, and another Service can receive messages from the same…
ken2k
  • 48,145
  • 10
  • 116
  • 176
3
votes
1 answer

Nested transactions in StatefulService to save async state of aborted transaction

I have a ReliableQueue which is enqueued into in a different scope, and I'm dequeuing tasks in a transaction, then want to run some long running calculations on each task. The problem here is that in case my queue transaction is aborted, I…
Mugen
  • 8,301
  • 10
  • 62
  • 140
3
votes
1 answer

Deleting an idle Stateful Service in Service Fabric

I have a set of user-specific stateful services servicing requests forwarded from a public-facing stateless service (web API) in an app. I'm trying to delete a stateful service if it has not serviced any user request since a given time interval,…
zrvr
  • 105
  • 5
3
votes
1 answer

How to choose correct Service Fabric Reliability Tier?

I'm reading the article on Service Fabric cluster capacity, reliability tiers, and durability tiers. The article (at this time of writing) lists the following tiers: Platinum - Run the System services with a target replica set count of 9 Gold - Run…
3
votes
2 answers

Access Azure Service Fabric stateful service state

I have added WebAPI to my stateful serive and want to access StateManager from it (from outside of StatefulService class implementation). What is the best way to do it? Currently I am using a small class for this: internal static class…
3
votes
1 answer

Reduce Service Fabric backup size

I'm trying to use Service Fabric backups with Actors: var backupDescription = new BackupDescription(BackupOption.Full, BackupCallbackAsync); await BackupAsync(backupDescription, TimeSpan.FromHours(1), cancellationToken); But I've noticed that one…
2
votes
1 answer

Microsoft.ServiceFabric.Data.Impl.pdb not loaded

I am working on Service Fabric (my first service fabric project). And I get this strange error that says Microsoft.ServiceFabric.Data.Impl.pdb not loaded. I am sure its not mistake in my code because I tried to comment parts of my code and that…
2
votes
2 answers

Service Fabric multiple instances issue

I noticed that when I publish my Service Fabric (in 5 node cluster mode) application (with 2 stateless services) it immediately runs on 5 nodes. My ApplicationManifest.xml has this:
2
votes
2 answers

Data Migration into Service Fabric Stateful Service

I have a stateful service that stores a bunch of data about my users that is stored in a reliable dictionary and obviously also retrieves it from there too. However, I also have a SQL database that used to store this info. On initialization of a new…
Reddog
  • 15,219
  • 3
  • 51
  • 63
2
votes
1 answer

Service Fabric - Service initialization failed

I'm using visual studio 2015 and I have created a default Statefull project and having this error: Exception thrown: 'System.Fabric.FabricException' in mscorlib.dll An unhandled exception of type 'System.Fabric.FabricException' occurred in…
1
2
3
14 15