Skip to Content.
Sympa Menu

perfsonar-user - [perfsonar-user] Adding Site-Specific Data to Archived Data

Subject: perfSONAR User Q&A and Other Discussion

List archive

[perfsonar-user] Adding Site-Specific Data to Archived Data


Chronological Thread 
  • From: Mark Feit <>
  • To: Nick Mills <>
  • Cc: "" <>
  • Subject: [perfsonar-user] Adding Site-Specific Data to Archived Data
  • Date: Mon, 7 Aug 2023 15:12:30 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=internet2.edu; dmarc=pass action=none header.from=internet2.edu; dkim=pass header.d=internet2.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=XTzEIA2YzCK3qKII/1TlFEAZBBqM3jlRg6mq1xxlcpE=; b=X+jETA+JwuxiSg321yY1pVetZF0brlMW6OcF4pNqkQ8QNmhmPDZphwRHd/cjpJEeZxzji4Nl9y0Vt1U4mYze0e7QQTwUo2t0JLrJGr6pSHRz4QZe4LRcowAJA6QnTYic/Z+BfT/yJDTTaxeb6wjRyl/TfTih9i33c+MUhftpxWTL296gLyAm9R+ceoa770w19U2zYAYcdzvSsFx+8ylVNnn6TXPGV+2mmbAymgfdcrX0wUipj89nDNLcNXA9DYUhLXuqvVeU0INGnXxt3OTGDZcTtbcZaiiO/HsojBK9hA98plil0pLvUGmpy5wcvmzcaAzyL/eefoj2wMbW8myyVQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eE+hjxiddeaSC63Z8I2WGX+HHM5D8P5qRP4wJ8Mpw1mDd+N1xJnsUgsVvgYI3y0TnU0ryx+cSDPwh8VBi3Zt0Md0CyLJdNxaUX4Yxf5jo/zG3/d8pwR1tcNni97q4WtCUyyWCw3gt8muZHaodk7w/45H4Bz0yYcS+ikt/1e+j0d6q7jwzHHDPDYzGns87acWPJf8fhB+RQsdkFAfG1r6FSezl8BCCJ8a7Hj2DXmdPJuy9UIAuJQYE8kwxTWpPV2tyctyVCmGIHKMRhAoniwxr8CMeCmFE4sHGkQ71qh/s+XF4ZLQiIvomEN2C41a5k9fY7Q2jbZ6RnK/nEtbH8drsQ==
  • Msip_labels:

(Sent to perfsonar-users since this is of general interest.  Nick’s question is about adding site-specific information to pScheduler tasks that can be grabbed and used downstream of the archiving process.)

 

Nick Mills writes:

The feedback from the network Team has been really good although there is a popular request to replace the IPs/hostnames with friendly aliases because noone can easily attribute locational meaning to either the IPS or the hostnames.

Is there any way to inject custom arguments to the tests so that they might be available as a custom addition in the archive output ? (Im using the http archive method)

or any custom fields in the http type archive json specification?

 

Yes, there absolutely is, and it works for all types of archiving.

 

pScheduler tasks can have a reference field that contains an arbitrary blob of JSON and can be used for anything you want.  On the command line, it’s added the same way as an archive (NB: unlike the archive switch, it can be used only once):

pscheduler task --archive @/some/file  --reference '{ …JSON… }' throughput --dest ps1.example.net

pscheduler task --archive @/some/file  --reference @/other/file throughput --dest ps1.example.net

 

pSConfig supports it, too:

 

"some-test" : {

             "_meta" : {  "display-name" : "Some Test"  },

             "reference": { "foo": "218apple", "bar": "ou812", "pie-factor": 3.14 },

             "group" : "whichever",

             "schedule" : "whenever",

             "archives": [ "wherever" ],

             "test" : "whatever"

          }

}

 

And, of course, as a plain JSON task specification, it’s an additional field called reference.

 

The reference data will appear in the JSON sent to the archive as .task.reference, e.g.:

 

{

  "task": {

    "test": {

      "type": "throughput",

      "spec": { "dest": "ps1.example.net", … },

      "reference": { "foo": "218apple", "bar": "ou812", "pie-factor": 3.14 },

      }

    },

    …

}

 

This isn’t required, but I strongly recommend putting site-specific data inside a uniquely-named object to avoid collisions with data added by other programs like pSConfig, e.g.:

 

"reference": {

  "otago.ac.nz": { "foo": "218apple", "baz”: "ou812", "pie-factor": 3.14 }

}

 

 

--Mark

 



  • [perfsonar-user] Adding Site-Specific Data to Archived Data, Mark Feit, 08/07/2023

Archive powered by MHonArc 2.6.24.

Top of Page