mammoth-rainbow-82717
03/21/2023, 10:46 AMDATASTORE and DATATOOL ? For example, in the config there is METAFLOW_DATASTORE_SYSROOT_S3 and METAFLOW_DATATOOLS_SYSROOT_S3 , but it is not clear to me what is meant by the terms DATASTORE and DATATOOL .
Thanksvictorious-lawyer-58417
03/21/2023, 3:25 PMDATASTORE is the main place where Metaflow stores its artifacts, code etc. It can be local files or an object store like S3 in the cloudvictorious-lawyer-58417
03/21/2023, 3:26 PMDATATOOLS refers to the metaflow.S3 library which you can use to interact with S3 specificallymammoth-rainbow-82717
03/21/2023, 3:27 PMDATATOOLS is referenced in METAFLOW_DATATOOLS_SYSROOT_S3 .mammoth-rainbow-82717
03/21/2023, 3:28 PMvictorious-lawyer-58417
03/21/2023, 3:54 PMmetaflow.S3 uses is derived from the datastore location (METAFLOW_DATASTORE_SYSROOT_S3) with data suffix appended, hence the name (which could/should be more descriptive)mammoth-rainbow-82717
03/21/2023, 4:03 PMMETAFLOW_DATATOOLS_SYSROOT_S3 is not used.mammoth-rainbow-82717
03/21/2023, 4:05 PMDATATOOLS_SUFFIX instead, (though I guess it should be DATASTORE_SUFFIX ?) but still I don't really understand what bits of config go under DATATOOLS and what goes under DATASTORE .
On a conceptual level, I mean.victorious-lawyer-58417
03/21/2023, 4:14 PMmammoth-rainbow-82717
03/21/2023, 4:16 PMmammoth-rainbow-82717
03/21/2023, 4:19 PMDATATOOLS is indeed about configuring whatever client you use to interact with the DATASTORE, while DATASTORE is about the store itself.
Then the two above variables are old and can be removed, in the case of METAFLOW_DATATOOLS_SYSROOT_S3 , or still a bit confusingly named, in the case of DATATOOLS_SUFFIX .
Is that a fair assessment?victorious-lawyer-58417
03/21/2023, 4:44 PMDATASTORE is independent from DATATOOLS. DATATOOLS path settings only affect the metaflow.S3 client, in particular metaflow.S3(run=self) which uses the default path
(*) exceptions:
• IncludeFile happens to use the DATATOOLS path internally today, which may/should change in the future without any user-facing effects
• Special variables DATATOOLS_CLIENT_PARAMS and DATATOOLS_SESSION_VARS affect S3 datastore behavior, but they need to be touched only in special casesvictorious-lawyer-58417
03/21/2023, 4:46 PMDATATOOLS path variables. You have two ways to configure it:
• If you want a fully custom S3 location, you can set DATATOOLS_S3ROOT
• If you want to use the main S3 location (set through DATASTORE_SYSROOT) but just change the data suffix, you can set DATATOOLS_SUFFIXvictorious-lawyer-58417
03/21/2023, 4:47 PMmammoth-rainbow-82717
03/21/2023, 4:51 PMvictorious-lawyer-58417
03/21/2023, 4:54 PMvictorious-lawyer-58417
03/21/2023, 5:14 PMvictorious-lawyer-58417
03/21/2023, 5:14 PMmammoth-rainbow-82717
03/21/2023, 6:39 PM