So far I set up the following structure with stub methods/classes:
SubmitInstallationInfoToCentralis currently the class to frequently send data from local to central (it is used in the FastAPI middleware
- The module (/ FastAPI router)
federation.pycontains the REST/POST where the local Nomad installation sends the data to / central Nomad receives the data.
InstallationInfoclass specifies the content and format that is sent from local to central.
test_federation.pythere are two tests and conftest.py (at same level) includes fixtures to set up the testing for federation
To clarify (for myself to keep track, but also happy to get comments/hints on these issues):
Could there be a race condition on the "last_timestamp" in
Is there a flag to distinguish between the local and central OASIS? This way I would only provide the landscape/POST on the central oasis. (not yet, for now also provide the federation API on local installations)
How to get all of the data to submit? oasis id [OK], oasis url [OK], oasis maintainer [OK], nomad version [OK], and a few "telemetry" data [OPEN]
How to use mongodb (to be used within
federation.py) to store the data at central Nomad?
RuntimeError('This event loop is already running')still appears when not using the
nest_asynciopackage (the import is limited to
option to turn feature on/off?
What if the frequency to submit data is set to very low in the configuration? Set a minimum value in the source code and make a warning?