azure-service-fabric

host multiple public sites on service fabric

五迷三道 提交于 2019-11-29 04:22:07
I have a service fabric cluster deployed with a domain of foo.northcentralus.cloudapp.azure.com It has a single node type with a single public ip address / load balancer. Lets say I have the following two apps deployed: http://foo.northcentralus.cloudapp.azure.com:8101/wordcount/ http://foo.northcentralus.cloudapp.azure.com:8102/visualobjects/ How can I set this up so I can have multiple domains each hosted on port 80? (assuming I own both of these domains obviously) http://www.wordcount.com http://www.visualobjects.com Do I need more than one public ip address in my cluster to support this?

Default service descriptions can not be modified as part of upgrade set EnableDefaultServicesUpgrade to true

江枫思渺然 提交于 2019-11-28 14:20:09
I am trying to upgrade my Service Fabric application via Visual Studio. I ended up having to use the diff package approach to ensure that only the services I change are in the upgrade. I did this via a command file which removed the non-required files. Now I have walked into another error which is annoying with its lack of detail: Start-ServiceFabricApplicationUpgrade : Default service descriptions can not be modified as part of upgrade. Modified 2>default service: fabric:/MYAPPLICATION/MYSERVICE. To allow it, set 2>EnableDefaultServicesUpgrade to true. Where exactly do I put this? Please note

Set up Dependency Injection on Service Fabric using default ASP.NET Core DI container

喜你入骨 提交于 2019-11-28 13:02:42
I would like to use ASP.NET Core's default DI container to setup DI for my Service Fabric project. //This is what I've got so far, and it works great ServiceRuntime.RegisterServiceAsync( "MyServiceType", context => new MyService(context, new MyMonitor() ).GetAwaiter().GetResult(); //This is how I use it public MyService(StatefulServiceContext context, IMonitor myMonitor) : base(context) { this._myMonitor = myMonitor; } How would I set up DI, if MyMonitor class has a dependency on a ConfigProvider class, like this: public MyMonitor(IConfigProvider configProvider) { this._configProvider =

How can I reach a specific replica of a stateless service

自古美人都是妖i 提交于 2019-11-28 12:44:32
I've created a stateless service within Service Fabric. It has a SingletonPartition, but multiple instances (InstanceCount is -1 in my case). I want to communicate with a specific replica of this service. To find all replica's I use: var fabricClient = new FabricClient(); var serviceUri = new Uri(SERVICENAME); Partition partition = (await fabricClient.QueryManager.GetPartitionListAsync(serviceUri)).First(); foreach(Replica replica in await fabricClient.QueryManager.GetReplicaListAsync(partition.PartitionInformation.Id)) { // communicate with this replica, but how to construct the proxy? //var

Passing user and auditing information in calls to Reliable Services in Service Fabric transport

北慕城南 提交于 2019-11-28 08:46:25
How can I pass along auditing information between clients and services in an easy way without having to add that information as arguments for all service methods? Can I use message headers to set this data for a call? Is there a way to allow service to pass that along downstream also, i.e., if ServiceA calls ServiceB that calls ServiceC, could the same auditing information be send to first A, then in A's call to B and then in B's call to C? yoape There is actually a concept of headers that are passed between client and service if you are using fabric transport for remoting. If you are using

How to create actor proxy to remote Service Fabric cluster

烂漫一生 提交于 2019-11-28 07:43:01
问题 According to the Service Fabric docs (https://azure.microsoft.com/en-us/documentation/articles/service-fabric-reliable-actors-introduction/), an actor proxy is created this way: ActorId actorId = ActorId.NewId(); IMyActor myActor = ActorProxy.Create<IMyActor>(actorId, new Uri("fabric:/MyApp/MyActorService")); await myActor.DoWorkAsync(); Ok, this works and connects to my local cluster. But I cannot figure out how to create a proxy to a remote cluster? (I have a three-node cluster with the IPs

Service Fabric include additional files

☆樱花仙子☆ 提交于 2019-11-28 07:13:43
问题 I have a Visual Studios solution containing the following: Service Fabric project Stateless Service Project The stateless service project uses configuration-based dependency injection, meaning the dependencies are loosly coupled with the project itself and not actual VS "project/compilation dependencies". I would like to continue to use Visual Studios, but when I deploy this project it doesn't know about the assembly dependencies (as these are only defined in DI configuration) and therefore

Simulate 10,000 Azure IoT Hub Device connections from Azure Service Fabric cluster

自作多情 提交于 2019-11-28 06:30:42
问题 We are developing a .Net Core service that shall be hosted in Azure Service Fabric. This SF Service needs to interact with 10,000 devices registered in Azure IoT Hub via it's AMQP 1.0 SSL TLS endpoints. Each IoT Hub devices has it's own security tokens and connection string provided by the IoT Hub service. For our scenario we need to listen to all cloud-to-devices messages coming from the 10,000 IoT Hub device instances and "route" these to a central Service Bus topic to which the actual

Deployment for Service Fabric service version upgrade fails on VSTS Release

假装没事ソ 提交于 2019-11-28 00:47:44
问题 Summary The following error appears at log. The content in ConfigPackage Name:Config and Version:1.0.0.20180315.2 in Service Manifest 'TwoServicePkg' has changed, but the version number is the same. I changed only the code of one of the services, so I changed only one version of the code in the manifest. In this case, there is no problem with the upgrade through Visual Studio. However, upgrading via VSTS will cause the above error. Details I created VSTS CI/CD for Service Fabric as default.

Azure Service Fabric Multi-Tenancy

依然范特西╮ 提交于 2019-11-27 22:31:16
I'm trying to get a little follow up to this question that's already been answered... Service Fabric multi-tenant If I were to setup my tenants as Azure Service Fabric Stateless Services (they'll get their state out-of-band), how can I put more than one tenant on each node in the cluster? In testing, it seems that Service Fabric gags if you try and make your instance count greater than the node count. These tenants are very lightweight, so I should be able to run dozens of them on each node (we will have hundreds overall), and I don't want to have to do a node for each one. Specifically, the