1. MFLib question – querying the entire fabric environment

MFLib question – querying the entire fabric environment

Home Forums FABRIC General Questions and Discussion MFLib question – querying the entire fabric environment

Tagged: , ,

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7218
    Bjoern Sagstad
    Participant

      Hi,
      I searched through the forums, but I couldn’t find any definite information about this, so I thought to ask.

      I set up a project with MFLib where I add nodes to a slice and then add the measuring node and submit that slice, and then I can measure and query the different nodes inside the slice, and that works well.

      My question is this, is there a way to query the entire fabric environment using MFLib, to check, for example, what resources are available at a certain site/rack? Basically, in contrast to my example from above, I would query the entire fabric environment for information without adding the nodes to the slice.

      #7233
      Kuang-Ching Wang
      Participant

        Hi.  To query the entire fabric of available resources, see https://github.com/fabric-testbed/jupyter-examples/blob/main/start_here.ipynb and look under “Basic Examples” for “List Available Resources“.

         

        #7246
        Charles Carpenter
        Participant

          MFLib currently only performs measurements on a slice.

          The Portal, Fabric Portal (fabric-testbed.net) , has information about available resources. Some of that information is available via fablib as KC points to in the previous answer.

          Specific infrastructure metrics are available on the infrastructure-metrics.fabric-testbed.net site. These include memory use, cpu load etc… on head and worker nodes. These values are visible using Grafana. There is also a REST API soon to be available to query those values programmatically.

          #7262
          Bjoern Sagstad
          Participant
            One follow up question for this:

            My question is, from the available resources method mentioned above, it’s simple to check if a rack has a specific NIC. However, I couldn’t find this information as readily using the infrastructure-metric site. Is there a query that returns that information on a node level? ie: w2 on the wash site has 2 cx5 NICs available.

            #7278
            Komal Thareja
            Participant

              Hi Bjoern,

              We just added support for users to query host level information as well. Examples for this would be available in a couple of days. I am sharing a snippet below on how this can be done:


              fablib.list_hosts()
              resources = fablib.get_resources()
              site = resources.get_site("MAX")
              all_hosts = site.get_hosts()
              host = site.get_host(name="max-w1.fabric-testbed.net")
              print(host)

              Please checkout our documentation here to find more details. Please let us know if you have more questions/concerns.

              https://fabric-fablib.readthedocs.io/en/latest/resources.html

              https://fabric-fablib.readthedocs.io/en/latest/site.html

              Thanks,

              Komal

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.