2
votes

I want to set up my custom .NET implementation of a FTP service on Service Fabric and configure the TCP ports of my public endpoint so that when the user is sending data on the different ports of my public endpoint, it is internally directed to the same instance of my service in Service Fabric.

For example if I have two instances A and B, the user connects to the FTP service on the instance A, every data connection created for the service would be directed to the instance A.

The Azure Load Balancer offers the possibility to either:

Nevertheless it seems that we do not access to the Azure Service Fabric VMs via Azure Powershell, so I cannot use these solutions.

Is there another way to be able to set these configurations for an Azure Service Fabric cluster, or another way to get this affinity per instance?

1
Instances may move around in your cluster, because of balancing and/or node failures. You shouldn't rely on node IP addresses to target a service. Have you considered using a datastore that is tied to the user, instead of a service instance tied to the user? - LoekD

1 Answers

0
votes

I'm not sure but this probably will help:

In Azure Portal:

Your SF Load Balancer -> Load Balancing Rules -> Your rule for application -> Session Persistence