azure-service-fabric

The active solution configuration is not configured to build or deploy the Service Fabric Application Project

扶醉桌前 提交于 2019-12-23 07:28:20
问题 I have a Service Fabric project with multiple services. When i try to deploy it, i get the following error: The active solution configuration is not configured to build or deploy the Service Fabric Application Project. This can happen if the solution configuration is not configured to build/deploy the x64 platform which the project requires. 回答1: Possible cause 1: Check in the Configuration Manager for the proper platforms to be set for the projects( x64 is required for Service Fabric ). For

The active solution configuration is not configured to build or deploy the Service Fabric Application Project

蹲街弑〆低调 提交于 2019-12-23 07:28:06
问题 I have a Service Fabric project with multiple services. When i try to deploy it, i get the following error: The active solution configuration is not configured to build or deploy the Service Fabric Application Project. This can happen if the solution configuration is not configured to build/deploy the x64 platform which the project requires. 回答1: Possible cause 1: Check in the Configuration Manager for the proper platforms to be set for the projects( x64 is required for Service Fabric ). For

Service Fabric - How to reserve or protect my hardcoded Port

房东的猫 提交于 2019-12-23 05:14:10
问题 Landscape: We have an Application with two micro services. Micro Service A is used to expose the application outside the cluster (our web server) Micro Service B is our business functionality. We have an F5 in front of Micro Service A to handle the load balancing over the hard coded Ports(onPrem). Inside Micro Service A we are hard coding specific ports for the http endpoint in the manifest. Problem: We witness it is possible that sometimes Micro Service B (Business functionality) will steal

Search through Reliable Dictionary

▼魔方 西西 提交于 2019-12-23 04:47:48
问题 I need to create Web API search functionality through all users in my system. Client (using phone) sends me requests using endpoint: HTTP 1.1 GET http://sf.cluster:80/ Path /search/users?q=Aa&take=10 Where q is a string user entered in a search field. take - how much entries phone wants to show. I uploaded in my Reliable Dictionary 89000 items from Azure Storage Table. It has structure: IReliableDictionary<Guid, string> My search method looks like: public async Task<IEnumerable<UserInfo>>

Setup SignalR and Service Bus inside a Azure Service Fabric service

▼魔方 西西 提交于 2019-12-23 03:07:41
问题 I am porting an existing Cloud Service WorkerRole to Service Fabric as a stateless service. The original Cloud Service uses SignalR and Service Bus (as a SignalR backplane), to send notifications out to any client listening. There is a Startup class that does some of the setup: class Startup { public void Configuration(IAppBuilder app) { String connectionString = "Endpoint=sb://[name].servicebus.windows.net/;SharedSecretIssuer=owner;SharedSecretValue=[key]"; GlobalHost.DependencyResolver

.Net Framework Class Library dll always changes when updating Service Fabric services

落爺英雄遲暮 提交于 2019-12-22 10:38:04
问题 I have a stateless .Net Core services running in Service Fabric. In my services, I reference a class library that targets .Net Framework 4.7.1. I deploy the application via VSTS and one of the build steps updates the app version for services with changes. https://docs.microsoft.com/en-us/vsts/build-release/tasks/utility/service-fabric-versioning Everything works fine except that changes are always detected for the class library's dll-file. Even though I haven't changed anything in the code

Get All Active Service Instances on Service Start

核能气质少年 提交于 2019-12-21 21:32:28
问题 I'm creating a stateless service inside Azure Service Fabric. However, once service starts (or on start of custom communication listener) I need to get addresses of all other instances/partitions of that service. I'm doing so by creating new FabricClient and calling fabricClient.QueryManager.GetPartitionListAsync(serviceUri) . However I'm getting FabricServiceNotFoundException with message Service does not exist. when a first service instance starts running. I couldn't find that in

Get All Active Service Instances on Service Start

馋奶兔 提交于 2019-12-21 21:26:14
问题 I'm creating a stateless service inside Azure Service Fabric. However, once service starts (or on start of custom communication listener) I need to get addresses of all other instances/partitions of that service. I'm doing so by creating new FabricClient and calling fabricClient.QueryManager.GetPartitionListAsync(serviceUri) . However I'm getting FabricServiceNotFoundException with message Service does not exist. when a first service instance starts running. I couldn't find that in

Mapping Azure Service Fabric services to a certain node type

不羁岁月 提交于 2019-12-21 13:01:40
问题 Creating services (or actors in the case of Reliable Actors) in the Service Fabric application VS template is effortless. Defining node types in the Azure portal is also easy. But how do you map a service/actor to run on a specific node type? 回答1: You can do that using placement constraints. More information on that can be found in the "Placement constraints and node properties" section of this article. In short, you'd need to set placement properties on your cluster and then set placement

How to use MSBuild on the sfproj?

怎甘沉沦 提交于 2019-12-21 09:18:46
问题 Trying to get my Service Fabric application building on a build server. When I build the .sln file, the sfproj's Package target is not run. As expected. I cannot seem to get MSBuild to run this target. First, the only targets available when building against the .sln file are the standard Build and Publish targets. Second, building against the .sfproj itself DOES get the target running. However, because of the mismatch of $(BuildPlatform), the projects referenced by the .sfproj do not build