Yield list of node types on Service Fabric cluster

WhitW 41 Reputation points
2020-07-13T19:27:50.88+00:00

Is there some mechanism to query the names of all the node types currently in use on a Service Fabric cluster through the FabricRuntime or something similar?

Thank you!

Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
257 questions
{count} votes

2 answers

Sort by: Most helpful
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2020-07-17T09:56:04.253+00:00

    @WhitW-6534 Apologies for the delay in response.

    As such for now there is no such API which can directly pull the node type currently in use on Service Fabric cluster.

    The only way to do this would be to obtain the cluster manifest (Get-ServiceFabricClusterManifest) and pull the list of node types from there.

    Hope this helps.

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics


  2. prmanhas-MSFT 17,901 Reputation points Microsoft Employee
    2020-07-27T14:39:30.25+00:00

    @WhitW-6534 Apologies for the delay in response and all the inconvenience caused because of the issue.

    The available node types in the service fabric cluster are derived from the properties of the list of active nodes.

    In the cluster manifest, there is a "NodeList" element which is a grand-child of the "Infrastructure" element in the XML format of the manifest. The elements of type "Node" are children of "NodeList" elements and have a property "NodeTypeRef". Please refer to the snippet on the cluster resource definition page here

    There should also be a list of "NodeType"s and their properties. The existence of a node type in the list of node types does not guarantee there are any active nodes of that type at any given time depending on how the cluster is operated. There are snippets of what the NodeType list looks like in XML and JSON in this section.

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    0 comments No comments