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.
            FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

            KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)
            FABRIC invites nominations for four awards recognizing innovative uses of FABRIC resources—Best Published Paper, Best FABRIC Matrix, Best FABRIC Experiment, and Best Classroom Use of FABRIC — submissions due by **Monday, February 24 at 11:59 PM ET**, and winners announced at KNIT10. [>>>Submit Form](https://docs.google.com/forms/d/e/1FAIpQLSeTp3i2iDhB7bHgN8ryMxZci8ya87yjeQd7_JMZImUodNinVA/viewform)

            KNIT10 Call for Demos Now Open! Submit your demo by **February 24**. [>>>Submit Demo](https://docs.google.com/forms/d/e/1FAIpQLScRIWqHliNP3DFWBCnalYN_fBXJXVM0PpP9YWWJdSebC95TvA/viewform)