azure-service-fabric

Create key via SQL and C# for partition key

╄→尐↘猪︶ㄣ 提交于 2019-12-25 02:16:43
问题 I have a set of data which has a hierarchy of 3 levels. Each level has a name. I am looking at combining all of these names into a single string then creating a numeric hash that can be used as a hash key for a service fabric stateful service. I have seen lots online about finding data with keys but I am not sure how to actually create them in an efficient way. Ideally I would like a hash that is quick and easy to generate in SQL Server 2017 and C#. Can anyone point me in the right direction,

Service Fabric Application Health Check

喜欢而已 提交于 2019-12-25 01:36:02
问题 Is it possible to periodically check the health of an application? I have two scenarios in mind: During deployment I want service fabric to rollback if the health check fails Application is successfully running but still want to periodically run a health check in case a dependency is unavailable Currently I expose a healthcheck operation and I have traffic manager polling it. I have the following to flag it as unhealthy.. var context = FabricRuntime.GetActivationContext(); context

Prevent Visual Studio from rebuilding after packaging Service Fabric with diff packaging

╄→гoц情女王★ 提交于 2019-12-25 01:31:12
问题 I am having a lot of issues upgrading a Service Fabric application. My original question is here. I am raising a new one now as this relates specifically to diff packaging. I have modified my package to remove the services I don't want to touch. But when I publish via Visual Studio, it does a full build. If I try to run the PowerShell script on its own by right clicking on it, it does not work: Cannot validate argument on parameter 'PublishProfileFile'. The "Test-Path $_ -PathType Leaf"

How to find the public IP address of a service fabric mesh service

人盡茶涼 提交于 2019-12-25 01:00:56
问题 After a Service Fabric Mesh Service has been deployed, how does one find the external facing IP Address. Things tried so far: Looking at the properties and settings of the service in the Azure portal Running the command az mesh app list - this shows a valid response but the IP Address is missing Running the command az mesh app show - this shows a valid response but the IP Address is missing Running the command az mesh service list - this shows a valid response but the IP Address is missing

Service Fabric Stateless Cluster has 5 nodes but app only has 1 instance

隐身守侯 提交于 2019-12-25 00:36:47
问题 I have a system that uses stateless services hosted in Service Fabric This is running in a local dev cluster with 5 nodes Some of my services have InstanceCount set to -1 I was expecting to see multiple instances of the host executables to show in task manager but I only see 1 This is making me think there is only 1 instance Am I doing something wrong? Paul 回答1: There is not enough information to determine what the actual problem here is, but based on your description I might suspect of two

Enable a Service Fabric Service to send PING to an external host (C#)

偶尔善良 提交于 2019-12-24 19:08:15
问题 I have a method in a Service Fabric Stateless Service (not an API) that sends a PING request to an external host. It works on my Local Service Fabric Cluster, but not on the actual cluster on Azure. I RDP'd to the cluster and pinged hosts, all of them resulted to "Request timed out". Anyone tried this before? I'm playing around the cluster's Firewall. 回答1: ICMP is blocked inside Azure. You can use PSPing to check connectivity though. More info here. Because the ICMP protocol is not permitted

Determine role of stateful replica in service fabric

霸气de小男生 提交于 2019-12-24 18:05:32
问题 I have a stateful service in Service Fabric with multiple partitions and replicas. I have configured it so that both the Primary and ActiveSecondary replicas expose their endpoints. The purpose is so that I can leverage the secondary replicas for read operations. The problem I'm having is that inside the service I want to be able to tell it is a Primary or ActiveSecondary because some shared defaulting code needs to not run for the secondary replicas. (Because inserting defaults into the

Service Fabric FabricRuntime.dll not found

旧时模样 提交于 2019-12-24 15:02:54
问题 I have tried to upgrade to the ne version of the Service Fabric preview code - 1.4.87-preview - and everything seems to have gone ok, but when I try to deploy a service I get an exception on run telling me that it cannot find FabricRuntime.dll. This goes both for my upgraded project, for newly created test projects and for all samples. I can see that the DLL is present on the machine and that a system PATH has been set to the directory containing it. There seems to be nothing wrong with my

Convert IReliableDictionary to IList

放肆的年华 提交于 2019-12-24 14:08:27
问题 I have an IReliableDictionary and need to take the items in the dictionary and move them in to an IList to return from my reliable service. It seems I can't do a .ToList of any kind, so I'm sure I'm approaching it wrong. public async Task<IList<CustomerOrderItem>> GetOrdersAsync() { IReliableDictionary<CustomerOrderItemId, CustomerOrderItem> orderItems = await this.StateManager.GetOrAddAsync<IReliableDictionary<CustomerOrderItemId, CustomerOrderItem>>(CustomerOrderItemDictionaryName);

Forward the cancellation to the right partition

谁说胖子不能爱 提交于 2019-12-24 11:27:16
问题 This question is continuation from previous thread. store cancellation tokens in service fabric services Opened a new thread because answering this question would not be trivial. To summarize what has been discussed regarding cancel a job / task running in particular service in some partition of service fabric: Cancellation Token limitation: Cancellation token works within the service partition and that is the limitation in partition-wise storing the instances, probably the reason why