Using Service Fabric Explorer

There is another tool that you can use to visualize the Service Fabric cluster. It is a standalone tool that you can find by navigating to the local installation path at %Program Files%Microsoft SDKsService FabricToolsServiceFabricExplorer and clicking on ServiceFabricExplorer.exe. When you run the application, it will automatically connect to your local Service Fabric cluster. It can display rich information regarding the applications on the cluster, the cluster nodes, the heath status of the applications and nodes, and any load on the applications in the cluster.

Getting ready

You must have already completed the installation of Service Fabric on your local machine for the Service Fabric Explorer to work. If you have not done so yet, follow the Downloading and installing Service Fabric recipe in this chapter.

How to do it…

  1. When you start the Service Fabric Explorer, the following window will appear:
    How to do it…
  2. Note that the tree view to the left displays Application View and Node View:
    How to do it…
  3. The pane on the right-hand side will display information regarding the local cluster. This makes it easy for you to see the overall health of the local Service cluster:
    How to do it…
  4. When you expand Application View, you will notice that our sfApp service has been published. Expanding it even further, you will see that the sfApp service has been published on Node.2. Expand Node View and Node.2 to see the service active on that node:
    How to do it…
  5. To illustrate the scalability of microservices, right-click on Node.2, and from the context menu, stop the node. Then, click on the Refresh button at the top of the window to refresh the nodes and applications.
  6. If you now had to go ahead and expand Application View, and looked at the service again, you will notice that the Service Fabric cluster noticed that Node.2 was down. It then automatically pushed the service on to a new, healthy node (in this case, Node.5):
    How to do it…
  7. The local cluster nodes view in the right panel of the Service Fabric Explorer also reports that Node.2 is down:
    How to do it…

How it works…

The Service Fabric Explorer will allow you to see information on the selected node, and you will be able to drill down and see a rich amount of information regarding the Service Fabric cluster applications.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.116.14.245