Using the System.Fabric.FabricClient.QueryClient
methods to pull information from a remote service fabric cluster, how can I associate the application services with the nodes hosting those services?
I've leveraged the answer at the ListEndPoints answer to get more details about my services and partitions but I do not see the properties I need for mapping services to nodes.
var fabricClient = new FabricClient(credentials, connectionString);
var nodes = fabricClient.QueryManager.GetNodeListAsync().Result;
var apps = fabricClient.QueryManager.GetApplicationListAsync().Result;
var services = fabricClient.QueryManager.GetServiceListAsync(app.ApplicationName).Result;
var partitions = fabricClient.QueryManager.GetPartitionListAsync(service.ServiceName).Result;
e.g.
- AppA
- ServiceA_A
- NodeFe0
- NodeFe1
- ServiceA_B
- NodeBe0
- NodeBe1
- NodeBe2
- ServiceA_A
- AppB
- ServiceB_A
- NodeFe0
- NodeFe1
- ServiceB_A