azure-service-fabric

Subscribing to Service Fabric cluster level events

核能气质少年 提交于 2019-12-01 05:18:35
I am trying to create a service that will update an external list of Service Endpoints for applications running in my service fabric cluster. (Basically I need to replicate the Azure Load Balancer in my on premises F5 Load Balancer.) During last month's Service Fabric Q&A, the team pointed me at RegisterServiceNotificationFilterAsync . I made a stateless service using this method, and deployed it to my development cluster. I then made a new service by running the ASP.NET Core Stateless service template. I expected that when I deployed the second service, the break point would hit in my first

How to enumerate all partitions and aggregate results

自作多情 提交于 2019-12-01 05:12:02
问题 I have a multiple partitioned stateful service. How can I enumerate all its partitions and aggregate results, using service remoting for communication between client and service? 回答1: You can enumerable the partitions using FabricClient : var serviceName = new Uri("fabric:/MyApp/MyService"); using (var client = new FabricClient()) { var partitions = await client.QueryManager.GetPartitionListAsync(serviceName); foreach (var partition in partitions) { Debug.Assert(partition.PartitionInformation

How can I host multiple Service Fabric Actor Types inside a single service?

扶醉桌前 提交于 2019-12-01 03:49:06
I've read here that is should be possible to host tightly coupled ActorTypes within the same service but I can't seem to find any documentation on exactly how to do it. I thought it might I need to create my own instance of the ActorService and pass the context into it but I don't seen to be able to find the right API's from the document. Does anyone have an example they could share ? Sort of but not really. You can have multiple actor types in the same application . It looks like they're in the same service in Visual Studio, but they're actually deployed as separate services. Bear with me for

Subscribing to Service Fabric cluster level events

China☆狼群 提交于 2019-12-01 02:41:12
问题 I am trying to create a service that will update an external list of Service Endpoints for applications running in my service fabric cluster. (Basically I need to replicate the Azure Load Balancer in my on premises F5 Load Balancer.) During last month's Service Fabric Q&A, the team pointed me at RegisterServiceNotificationFilterAsync. I made a stateless service using this method, and deployed it to my development cluster. I then made a new service by running the ASP.NET Core Stateless service

The primary or stateless instance for the partition has invalid address

一笑奈何 提交于 2019-12-01 02:22:09
I created a stateful service with the out-of-the-box partitioning: <StatefulService ServiceTypeName="ExamplesServiceType" TargetReplicaSetSize="[ExamplesService_TargetReplicaSetSize]" MinReplicaSetSize="[ExamplesService_MinReplicaSetSize]"> <UniformInt64Partition PartitionCount="[ExamplesService_PartitionCount]" LowKey="-9223372036854775808" HighKey="9223372036854775807" /> </StatefulService> The service manifest sets the params to (out-of-the-box as well): <Parameter Name="ExampleService_PartitionCount" Value="1" /> <Parameter Name="ExampleService_MinReplicaSetSize" Value="2" /> <Parameter

A Service Fabric Cluster in azure that is only accessible through a VPN gateway

放肆的年华 提交于 2019-12-01 01:05:05
I wonder if it is possible to set up an unsecured Service Fabric Cluster that will only be accessible via a VPN Gateway (and not to the public internet). We currently have an unsecured on-premises cluster that we want to move into the cloud. A new resource set for the cluster is created with a load balancer that has a public IP address that cannot be changed. Is there a way to create the cluster with a load balancer with a non-public ip? This can be achieved with an internal load balancer. You can't do it from the portal. You have to tweak your ARM template to create an internal load balancer

How to add new Node Type to deployed Service Fabric cluster?

让人想犯罪 __ 提交于 2019-12-01 01:04:20
I deployed a Service Fabric Cluster running with a single application and 3 Node Types of 5 machines, each with its own placement constraint. I need to add other 2 Node types (Virtual Machine Scale sets), how can I do that from the azure portal? The Add-AzureRmServiceFabricNodeType command can add a new node type to an existing Service Fabric cluster. Note that the process can take roughly an hour to complete, since it creates one resource at a time starting with the cluster. It will create a new load balancer, public IP address, storage accounts, and virtual machine scale set. $password =

Azure Service Fabric join Virtual network

和自甴很熟 提交于 2019-12-01 01:00:49
Is it possible to join a Azure Service Fabric Cluster to a Virtual Network in Azure ? Not simply join an existing Virtual Network, but also join the vm's where the cluster is running on into the domain. So that the cluster can use an domain user account to access network shares etc.. Yes. The default SF template creates a VNET for the cluster, so I assume you mean join to an existing VNET. If you take a look at the sample template for SF , you can see the subnet0Ref variable which is being used to set the network profile of the NICs that are part of the newly created scale set. You can modify

service fabric URL routing

浪子不回头ぞ 提交于 2019-12-01 00:58:14
I am using the Azure Load Balancer with Azure service fabric to host multiple self host web applications, I'd like to create a rule that allows me to route based on the users URL request. So for example if a user navigates to : http:// domain.com/Site1 then the rule would route to: http:// domain.com**:8181**/Site1 within the cluster if the user navigates to: http:// domain.com/Site2 then the rule would route to: http:// domain.com**:8282**/Site2 within the cluster Is this possible with azure service fabric/load balancer? The Azure Load Balancer only forwards traffic it receives on a port to a

Deploy Service Fabric from powershell. Error -> Get-ServiceFabricClusterManifest : Cluster connection instance is null

拟墨画扇 提交于 2019-11-30 23:02:48
问题 I am trying to publish Service Fabric application to Azure with powershell. I want to connect to the cluster and then call script "Deploy-FabricApplication.ps1"(one that is generated when new project is created in visual studio) To do that I have created new script file which is responsible for connecting with cluster and then from that same script file I am calling "Deploy-FabricApplication.ps1". After launching my script I am getting following error: Get-ServiceFabricClusterManifest :