azure-service-fabric

Start-ServiceFabricPartitionDataLoss : Operation timed out

怎甘沉沦 提交于 2019-12-24 09:27:58
问题 When I run this command it never completes. Start-ServiceFabricPartitionDataLoss -DataLossMode FullDataLoss -ServiceName "fabric:/CompanyInfo/PartyActorService" -OperationId d3f12b09-6a90-4745-a4fc-3f92149a7410 -PartitionId 6db8c4e7-d27a-4918-8111-36faeae7afee It will result in Start-ServiceFabricPartitionDataLoss : Operation timed out. At line:1 char:1 + Start-ServiceFabricPartitionDataLoss -DataLossMode FullDataLoss -Serv ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What is the difference between Azure API Apps and Azure Service Fabric?

时间秒杀一切 提交于 2019-12-24 06:45:30
问题 I am using Azure Table storage to store the data of my application. I need to build an API to retrieve the data from Azure table storage. There are like a million records in the table. In the initial stage, my API would be getting approximately 100-1000 hits per day. What would be the best choice to develop that API on, API apps or Service Fabric? 回答1: It depends on a lot of aspects: How do you want to maintain it? What performance requirements do you have? Do all those 100-1000 hits per day

HTTP Endpoint for WCF Service in Azure Service Fabric

妖精的绣舞 提交于 2019-12-24 05:54:14
问题 How do I get an HTTP endpoint, rather than a TCP one, exposed for a WCF Service hosted in Service Fabric? I've successfully got the sample provided by Microsoft in WCF-based communication stack for Reliable Services, but it uses a TCP endpoint. I've modified the CreateServiceReplicaListeners() code to try using a BasicHttpBinding , but get the following error: Unhealthy event: SourceId='System.RA', Property='ReplicaOpenStatus', HealthState='Warning', ConsiderWarningAsError=false. Replica had

More than one instance of stateless service per node

ぐ巨炮叔叔 提交于 2019-12-24 02:21:50
问题 My stateless service receives tasks from Service Bus queue and processes it. I'm trying now to find an optimal way to use resources of Service Fabric node as much as possible. So I see 2 approaches: 1) create several threads inside the service 2) create several instances of the service per node. I consider that the 2nd way is more safe and correct but when I specified InstanceCount = 5 for 1-node cluster I received a warning. Config.xml <?xml version="1.0" encoding="utf-8"?> <Application

Service Fabric set instance count -1

放肆的年华 提交于 2019-12-24 00:55:06
问题 I see the web instance count is set to -1. What does -1 mean? <Parameter Name="Web1_InstanceCount" Value="-1" /> 回答1: In you example, -1 means just a parameter value, out of context it does not mean anything. By the name of your variable, it is a parameter likely to be used on service declaration on your ApplicationManifest.xml. You will probably have something like this: <?xml version="1.0" encoding="utf-8"?> <ApplicationManifest ApplicationTypeName="MyAppTypeName" ApplicationTypeVersion="1

Acquisition of turn based concurrency lock for actor '{actorName}' timed out after {time}

无人久伴 提交于 2019-12-23 22:02:25
问题 I have service which creates Actors of some type by some name: var storer = this.serviceClient.Create<IStorer>(new ActorId(agencyToProcess.Name)); and then I call Actor's method. await storer.StoreStatusesAsync().ConfigureAwait(false); On this call I receive error : System.AggregateException: One or more errors occurred. ---> Microsoft.ServiceFabric.Actors.ActorConcurrencyLockTimeoutException: Acquisition of turn based concurrency lock for actor 'actorName' timed out after 00:01:13.6480000.

Service Fabric Reminders

风流意气都作罢 提交于 2019-12-23 19:28:31
问题 Documentation says: Reminders are a mechanism to trigger persistent callbacks on an actor at specified times. Their functionality is similar to timers. But unlike timers, reminders are triggered under all circumstances until the actor explicitly unregisters them or the actor is explicitly deleted. Specifically, reminders are triggered across actor deactivations and failovers because the Actors runtime persists information about the actor's reminders. Let's say we have a reminder set to run

Service Fabric and Application Insights

非 Y 不嫁゛ 提交于 2019-12-23 12:15:05
问题 I am new to service Fabric and trying to integrate my windows service application into service fabric. For logging information, we are planning to use Application Insights. But the events are not logged if i send it through my SF application. At the same time, through a normal console/windows application, I can able to log the message to applicationinsights and can be viewed from there. Then I tried to create a VM in azure environment, and create SF application there and send the log

Service Fabric spawn actor on startup

放肆的年华 提交于 2019-12-23 10:56:55
问题 Is there a way to require the system to spawn certain actors on startup. Currently I activate the set of actors that I need in Program.cs after the actor registration. This is working ok, but I occasionally get a ReminderLoadInProgressException because the actor that is being activated needs to register a reminder but not all reminders have been loaded at the time it tries to do that. Is there standard way to seed the cluster? 回答1: No, you need something to activate your actors. Program.cs

Service Fabric Service reference has yellow triangle

心不动则不痛 提交于 2019-12-23 09:16:05
问题 I'm using VS2015, when I add a service to my service fabric application, the reference has a yellow triangle. My Error window has no errors in it, and when I hover over the reference nothing popups up. How can I find out what it's problem is? The solution builds and runs fine otherwise. 回答1: This is a known bug in VS - the underlying project configuration system is incorrectly flagging the references as wrong. Things should work normally if you do a build. 回答2: I was having the same error