Questions tagged [service-fabric-stateful]

222 questions
0
votes
0 answers

Why actors for stateful service?

As I read more and more regarding actor pattern in stateful service, I am not convinced why Actor pattern is good solution with stateful services. Most of the use cases talk about single-threaded, state managment of actors with short duration of…
0
votes
1 answer

How to resolve: warning on every partition after reducing TargetReplicaSetSize

I've got the following warning on Service Fabric cluster: Replica had multiple failures during open on _NodeType1_2. API call: IStatefulServiceReplica.Open(); Error = System.ArgumentException (-2147024809) That happens after reducing…
MaGu
  • 1,125
  • 2
  • 11
  • 14
0
votes
0 answers

Service Fabric StatefulService CPU usage keeps growing

We have a Service Fabric StatefulService that is running nicely. It consumes messages, processes them and has two IReliableStates for storing away some data from each message. It will process about 500 messages per minute per replica. For each…
0
votes
2 answers

Service Fabric - How could we generate a partitionKey?

I have a stateful service with a range of partitions keys going from -9223372036854775808 to 9223372036854775807 (UniformInt64Partition). How can I generate an adequate partition key when calling the service in order to improves the distribution of…
0
votes
1 answer

Can't check key distribution with FNV-1 algorithm

As recommended by a lot of places, I am using the FNV-1 method to generate my partition keys for a Service Fabric cluster with 5 partitions as below: [ { "lowKey": -5534023222112865000, "highKey": -1844674407370955300, "id":…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
0 answers

Partition resolving not making sense in Service Fabric

I have stateful service that uses uniform int64 partitioning with 5 partitions This results in partitions as below [ { "lowKey":…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
2 answers

Storage for Azure VMs running Service Fabric cluster with Reliable Collections

I am about to start delving into stateful services and Reliable Collections for Azure Service Fabric. My node VMs are pretty much standard machines, and I notice that the D: drive is classed as temporary storage. How does this work with stateful…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
1 answer

Service Fabric errors during IStatefulServiceReplica.ChangeRole(P)

On our live system we've suddenly started encountering errors, where Service Fabric is failing to do failovers. The system was last deployed back in May and has been running fine since then. We have not installed any updates on the VMs. The error…
0
votes
1 answer

How to maintain state in a Service Fabric microservice deployed in multiple clusters accessing external resource

I am trying to make my Service Fabric service, which makes a SOAP call to an external service, such that if deployed over 2 or more clusters, it can still work, in that if one service has made the connection to the external service, then the service…
0
votes
1 answer

Service Fabric Error on "The deserializer has no knowledge of any type that maps to this name..."

I am new to Azure Service Fabric, and still in learning mode. I was following a sample course to create an Ecommerce application, which consists of a ProductCatalog Service and a Web API service. The Web API is supposed to be used by clients. The…
0
votes
1 answer

Create key via SQL and C# for partition key

I have a set of data which has a hierarchy of 3 levels. Each level has a name. I am looking at combining all of these names into a single string then creating a numeric hash that can be used as a hash key for a service fabric stateful service. I…
Paul
  • 2,773
  • 7
  • 41
  • 96
0
votes
1 answer

How is data in Reliable Dictionary in Azure Service Fabric persisted to disk

How does Azure Reliable Dictionary actually handles data persistence. Is it like SQL which persists mostly all data excepts indexes(i.e. key in our case) on disk or is like hashmap which have everything in memory(i.e. both key and value) and just…
Akshat
  • 615
  • 7
  • 18
0
votes
2 answers

Error when calling Web API with self-hosted Azure Service Fabric

I am using a new Azure Service Fabric project. The project contains 2 statefull services as shown in the below image: When I run the application, the explorer is shown successfully as below: But when I try to hit my API,…
0
votes
2 answers

Concurrency safe pivoting of Azure Service Fabric Reliable Collections

I have a service that has a bunch of incoming Orders that I store into an IReliableDictionary. As new orders come in, I need to update and maintain a separate sorted list of those orders throughout the lifetime of my program. How do I efficiently…
rysama
  • 1,674
  • 16
  • 28
0
votes
1 answer

Service fabric Statefulservice throwing error at CreateServiceRemotingListener

I am getting the below error. I have added required nuget package Microsoft.ServiceFabric.Services.Remoting v3.0.472. 'VotingDataService' does not contain a definition for 'CreateServiceRemotingListener' and no extension method …
kumar
  • 8,207
  • 20
  • 85
  • 176