azure-service-fabric

Accessing a stateful service

只愿长相守 提交于 2019-12-11 13:56:29
问题 I have been researching Azure's Service Fabric Reliable Services and looking at the samples too. I am now building a simple proof-of-concept application with a recommended setup: A stateless Web API service with a stateful service behind (1 partition). I've been going round in circles trying to find the easiest way for the API service to talk to the stateful service behind. It looks like the stateful service will have to exposed using Web API too (as shown in the example WordCount app). Am I

How do I extend class derived from StatelessService in Service Fabric ASP.NET 5 - based service?

坚强是说给别人听的谎言 提交于 2019-12-11 13:56:02
问题 Is there a way to subscribe to an actor event from ASP.NET 5 - based service? I saw similar feature in service-fabric-dotnet-data-streaming-websockets sample, but the sample uses OWIN-based web service and it has PublicGateway class derived from StatelessService where one can hook to the service Task RunAsync override. I haven't found any StatelessService -derived type in the ASP.NET 5 - based project code. Seems like it's auto-generated, if to look into the project ServiceManifest.XML? The

Azure Service Fabric Single Virtual Machine

爷,独闯天下 提交于 2019-12-11 13:55:07
问题 On Azure Currently I use "Cloud Service" to build salable apps. "Azure Service Fabric" looks like latest method of building apps on cloud. It is very good, however I am unable to create it with single virtual machine. It shows minimum of 5 VM's per type. Since I am creating a startup app, I am unable to use 5 VMs. Is it ok to use to "Cloud Service" then? I worried it is marked as "Classic" in new portal. 回答1: Service Fabric uses a cluster of nodes - that's fundamental to how it works. It uses

Create on-premise Service Fabric cluster fails with exception

流过昼夜 提交于 2019-12-11 13:49:58
问题 I am trying to follow the instructions at https://azure.microsoft.com/en-us/documentation/articles/service-fabric-cluster-creation-for-windows-server/#plan-and-prepare-for-cluster-deployment to create a dev cluster on a test machine. I am using the sample ClusterConfig.Unsecure.DevCluster.json file. However creation failed with following exception: Create Cluster failed with exception: System.AggregateException: One or more errors occurred. ---> System.NullReferenceE xception: Object

API Management vs. Service Flow

梦想的初衷 提交于 2019-12-11 13:47:09
问题 I have a very basic setup: APIM + SF with WebAPI Stateless Service (Kestrel). Just trying to make this POC work. Unsuccessful so far... :( Following the available instructions I got to the point, where I am having problems with the APIM inbound policies... What am I supposed to use for the backend-id? Besides the "servicefabric" one (from examples), I have tried probably all of the options from my "service fabric" instance metadata. It keeps coming back to me with: "Backend with id 'whatever

Azure service fabric cluster provisioning questions

北城余情 提交于 2019-12-11 13:39:47
问题 Once I create the azure service fabric cluster through azure portal, I am not sure how long I am supposed to wait for the cluster to be up and running. I am only using bare minimum configuration (with node type count 1 and bronze model with 3 VMs etc.) Will take an hour or 2 or more or less? Will there be some kind of indication that cluster deployment is done and is available for me to publish code from visual studio? Also I am not seeing any nodes in the provisioned cluster in the portal.

Azure Service Fabric (OneBox) has constantly failed DnsService

ε祈祈猫儿з 提交于 2019-12-11 13:16:56
问题 I am using the OneBox of Azure Service Fabric on my development machine to develop a service fabric application. No matter what I do, the fabric:/System/DnsService always has an error. The service is listed in the Service Fabric Explorer in the following way... (error) System (error) fabric:/System/DnsService (error) f47a6d0d-3919-4683-9f79-747b61d8ce2b (warning) _Node_0 Selecting the _Node_0 entry has the following warning... Unhealthy event: SourceId='System.FabricDnsService', Property=

Cleaning up dormant actors in Azure Service Fabric

心已入冬 提交于 2019-12-11 11:49:53
问题 I'm evaluating Service Fabric for an IoT-style application using the model that each device has its own actor, along with other actors in the system. I understand that inactive actors will be garbage-collected automatically but their state will persist for when they are reactivated. I also see there is a way to explicitly delete an actor and its state. In my scenario I'm wondering if there are any patterns or recommendations on how to handle devices that go dormant, fail or "disappear" and

ServiceFabric: Missing default metrics “servicefabric:/_MemoryInMB” and “servicefabric:/_CpuCores”

妖精的绣舞 提交于 2019-12-11 11:13:17
问题 We are currently investigating, why our cluster isnt properly load balancing when a node is at 100% cpu usage. Now when i look at the cluster via the service fabric explorer and click on Details, there are the metric information showing up. (e.g. Count, PrimaryCount, ReplicaCount etc). But for some reason, the 2 default metrics "servicefabric:/_MemoryInMB" and "servicefabric:/_CpuCores" are not showing up there. We aren't registering any custom metrics or anything on deployment/on runtime,

How do I deploy my Azure Service Fabric application to the local cluster consistently and successfully?

纵然是瞬间 提交于 2019-12-11 07:57:32
问题 I am deploying and redeploying Azure Service Fabric applications in a local cluster. While initial deployment to the cluster went smoothly, redeployment results in about a 50% success rate with various intermittent errors. Errors in the output window of Visual Studio: Unable to determine whether the application is installed on the cluster or not. Something is taking too long, the application is still not ready. Errors in Service Fabric Explorer (SFX): One application instance OK, the other