azure-service-fabric

Fabric Message is too large

房东的猫 提交于 2019-12-10 13:04:50
问题 I'm trying to pass 5MB~ data from a service to an actor, and I'm getting the error: Fabric Message is too large How can I increase the maximum size that can be transferred between micro-services? I looked at the following page to see my options. I tried setting: <Section Name="ServiceReplicatorConfig"> ... <Parameter Name="MaxReplicationMessageSize" Value="1073741824" /> </Section> Please help. 回答1: Somebody helped me on GitHub with the following: In order to set maximum size for the remoting

how to do continuous integration with service fabric with tfs 2013?

佐手、 提交于 2019-12-10 12:39:30
问题 There exists a great amount of documentation and samples on how to create build definitions for VSTS and TFS 2015+ for Service Fabric continuous integration and deployment. What is available in terms of integration with TFS 2013 for deployment of Service Fabric applications? How do we integrate the build and deployment of on-premises Service Fabric clusters / applications / services with TFS 2013? 回答1: Service Fabric is a distributed systems platform that makes it easy to package, deploy, and

Azure Application Insights for Service Fabric

余生长醉 提交于 2019-12-10 11:31:30
问题 I have multiple services running on Service Fabric. I would like to add Application Insight for logging. I'm just wondering whether I have to add an Application Insight resource for each microservice or only one is common for all. What is the best practice? 回答1: There is no such thing a the best practice for this. It really depends. Some considerations: Pricing: depending on the level (basic or enterprise) you will get an amount of data for free / included in the base price. See the docs. So

Azure Service Fabric nodes, node types, instances and scale sets

那年仲夏 提交于 2019-12-10 11:27:15
问题 After experimenting with Azure's Service fabric for a few days I still feel uncomfortable with the following four key words: * instance * node * node type * scale set. What do they mean? What are the differences? 回答1: Instance : Depends on the context - it could mean a VM, an instance of a service, etc. Node : A node within the cluster - in an Azure deployment right now that would mean a VM, but if you're running the dev environment on your box, then a node is really a set of processes. Node

Service Fabric Naming Service not forwarding to endpoint assigned to Guest Executable

笑着哭i 提交于 2019-12-10 11:02:35
问题 I have setup an application with two services, one a standard aspnet core api, and another node express app by following the guide here: https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-deploy-existing-app When I deploy the application locally I can use the naming service to hit the AspNetCore application such as: http://localhost:19081/sf_node_test_02/AspNetCore/api/values Likewise, I expect to be able to hit the api of my guest executable using this address: http:/

Reliable blob state in Azure Service Fabric?

社会主义新天地 提交于 2019-12-10 10:19:45
问题 Is there a recommended way work with blobs as reliable state in Azure Service Fabric? I see two options: Implement a chunking mechanism and store chunks in a reliable collection. This option has a pretty heavy development/maintenance burden though. Store blobs externally (Azure Blob Storage). This option couples the service with Azure though. We would have to provide our own abstraction and implementation for running in an on-premises cluster. Maybe there is a reliable state provider/manager

What is the most optimal method of querying a reliable dictionary collection

老子叫甜甜 提交于 2019-12-10 09:53:51
问题 I would like to use service fabric reliable dictionaries to store data that we intend to query via a rest interface. I was wondering what was the most optimal approach to querying data held in those collections. The documentation doesn't seem to provide any methods to support querying a IReliableDictionary interface apart from simply enumerating over the collection. Is the only option to fetch every object out of the reliable dictionary and pop into a List<> collection for querying? Thanks

Service Fabric: removed actors and now upgrade fails

我的梦境 提交于 2019-12-10 09:25:36
问题 I'm trying to upgrade a Service Fabric application with a mix of stateful and stateless actors. I did some refactoring and so removed some actors I didn't need any more. Now, when I try to upgrade the application, I get the following error: Services must be explicitly deleted before removing their Service Types. After thinking about it a little bit, I think I understand the trouble that could come from removed services and upgrades, but then what's the correct way to do this? 回答1: You need to

Service Fabric Unit Testing and Dependency Injection

混江龙づ霸主 提交于 2019-12-09 14:36:56
问题 I can't test a Reliable Service/Actor by just calling it's constructor and then test it's methods. var testService = new SomeService(); throws a NullReferenceException. So what can I do with deployed Service.. I understand that deployed SF Reliable Services/Actors are not standard .NET classes, and unit testing of deployed S/A maybe a strange idea. Anyway now I'm trying to give it a try. For example. I've just deployed a Service, than in the test I've created a Proxy object and added item

How to enable read from StatefulService secondary replicas?

心已入冬 提交于 2019-12-09 07:33:25
问题 Many of the official Service Fabric articles states that it should be possible to do read operations on secondary replicas, but I am unable to find a single code example that shows how to configure or use this advanced feature. A good example would be to elaborate on this simple code sample: https://github.com/Azure-Samples/service-fabric-dotnet-getting-started/tree/master/Services/AlphabetPartitions Where reads on secondaries are just HTTP Get operations. I would like to use it as a way to