azure-service-fabric

How do I deploy service fabric application from VSTS release pipeline?

半城伤御伤魂 提交于 2019-11-27 02:53:41
问题 I have configured a CI build for a Service Fabric application, in Visual Studio Team Services, according to this documentation: https://azure.microsoft.com/en-us/documentation/articles/service-fabric-set-up-continuous-integration But instead of having my CI build do the publishing, I only perform the Build and Package tasks, and include all Service Fabric related output, such as pkg folder, scripts, publish profiles and application parameters, in the drop. This way I can pass it along to the

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

会有一股神秘感。 提交于 2019-11-27 02:26:31
问题 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? 回答1: There is actually a concept of headers that are

How can I dynamically discover services hosted in service fabric from API management?

强颜欢笑 提交于 2019-11-27 02:02:17
Lets say that I have service A and B hosted in service fabric cluster. They listen (inside the cluster) on port 7001 and 7002 respectively. Lets say that I configure the service fabric load balancer to listen on port 8001 and forward the request to port 7001 (inside the cluster) for service A and listen on port 8002 and forward the request to port 7002 (inside the cluster) for service B. Lets say that I configure API management for service A and B and route the requests to appropriate ports on the load balancer. This all works. Now, instead of manually mapping url route for each service, I

How to configure and enable Azure Service Fabric Reverse Proxy for an existing on-premises cluster?

空扰寡人 提交于 2019-11-27 01:02:37
问题 Is the Azure Service Fabric Reverse Proxy available in an on-premises cluster? If so, how can I enable it for an existing cluster? The Service Fabric Reverse Proxy is described here. It allows clients external to the cluster to access application services by name with a special URL, without needing to know the exact host:port on which an instance of the service is running (which may change as services are automatically moved around). By default the Service Fabric Reverse Proxy does not appear

What does the FabricNotReadableException mean? And how should we respond to it?

扶醉桌前 提交于 2019-11-26 21:35:38
问题 We are using the following method in a Stateful Service on Service-Fabric. The service has partitions. Sometimes we get a FabricNotReadableException from this peace of code. public async Task HandleEvent(EventHandlerMessage message) { var queue = await StateManager.GetOrAddAsync<IReliableQueue<EventHandlerMessage>>(EventHandlerServiceConstants.EventHandlerQueueName); using(ITransaction tx = StateManager.CreateTransaction()) { await queue.EnqueueAsync(tx, message); await tx.CommitAsync(); } }

Azure Service Fabric Multi-Tenancy

风流意气都作罢 提交于 2019-11-26 21:00:20
问题 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

What would be the best way to search an IReliableDictionary?

不羁的心 提交于 2019-11-26 17:17:41
问题 Based on these posts: Convert IReliableDictionary to IList What is the most optimal method of querying a reliable dictionary collection I should be able to use Linq to query an IReliableDictionary, but it would appear that this interface no longer implements IEnumerable and the Linq extensions are not available. At least in version 5.0.0.0 of the Microsoft.ServiceFabric.Data.Interfaces assembly. If this is true, what would be the best way to search an IReliableDictionary? 回答1: Yes, we did

Blue/Green Deployments with Azure ServiceFabric

大兔子大兔子 提交于 2019-11-26 13:45:51
问题 I'm currently building an application using the ReliableActors framework on Azure ServiceFabric. As we scale up, I'm looking at doing blue/green deployments. I can see how to do this using a stateless system. Is there's a way to do this using statefull actors? 回答1: Service Fabric is all about rolling upgrades, rather than deployment swaps, like a VIP swap. Both stateless and stateful services are upgraded the same way, but there are a few additional nuances to stateful that I'll mention later

How to add message header to the request when using default client of Azure service fabric?

…衆ロ難τιáo~ 提交于 2019-11-26 11:21:51
问题 I am wondering it is possible to inject custom message header to outgoing request to carry additional information without deserialize the payload to fullfill the functionality like authentication, validation or correlation of request like wcf provided by means of messagesinspector? 回答1: Update With SDK v2 you can now (relatively) easily modify the headers of both Reliable Services and Actors. Note in the examples below some wrapper members were omitted for brevity. Client We use

How can I dynamically discover services hosted in service fabric from API management?

南笙酒味 提交于 2019-11-26 09:53:13
问题 Lets say that I have service A and B hosted in service fabric cluster. They listen (inside the cluster) on port 7001 and 7002 respectively. Lets say that I configure the service fabric load balancer to listen on port 8001 and forward the request to port 7001 (inside the cluster) for service A and listen on port 8002 and forward the request to port 7002 (inside the cluster) for service B. Lets say that I configure API management for service A and B and route the requests to appropriate ports