2023-03-07 13:29:08 +01:00
|
|
|
# oc-discovery OpenCloud discovery service.
|
2023-03-07 10:20:39 +01:00
|
|
|
|
2023-10-20 10:45:16 +02:00
|
|
|
Manages a local database
|
2023-03-07 13:29:08 +01:00
|
|
|
|
2023-10-20 10:45:16 +02:00
|
|
|
Can feed from file/IPFS/...
|
|
|
|
|
Stores data in Redis, and Zinq for ranked queries.
|
2023-03-07 13:29:08 +01:00
|
|
|
|
|
|
|
|
To build :
|
|
|
|
|
|
|
|
|
|
bee generate routers
|
|
|
|
|
bee run -gendoc=true -downdoc=true
|
2023-03-08 16:48:36 +01:00
|
|
|
|
2023-10-20 10:45:16 +02:00
|
|
|
If default Swagger page is displayed instead of tyour api, change url in swagger/index.html file to :
|
|
|
|
|
|
|
|
|
|
url: "swagger.json"
|
2023-03-08 16:48:36 +01:00
|
|
|
|
2026-02-09 09:45:41 +01:00
|
|
|
|
2026-02-17 13:11:22 +01:00
|
|
|
sequenceDiagram
|
|
|
|
|
autonumber
|
|
|
|
|
participant Dev as Développeur / Owner
|
|
|
|
|
participant IPFS as Réseau IPFS
|
|
|
|
|
participant CID as CID (hash du fichier)
|
|
|
|
|
participant Argo as Orchestrateur Argo
|
|
|
|
|
participant CU as Compute Unit
|
|
|
|
|
participant MinIO as Storage MinIO
|
|
|
|
|
|
|
|
|
|
%% 1. Ajout du fichier sur IPFS
|
|
|
|
|
Dev->>IPFS: Chiffre et ajoute fichier (algo/dataset)
|
|
|
|
|
IPFS-->>CID: Génère CID unique (hash du fichier)
|
|
|
|
|
Dev->>Dev: Stocke CID pour référence future
|
|
|
|
|
|
|
|
|
|
%% 2. Orchestration par Argo
|
|
|
|
|
Argo->>CID: Requête CID pour job
|
|
|
|
|
CID-->>Argo: Fournit le fichier (vérifié via hash)
|
|
|
|
|
|
|
|
|
|
%% 3. Execution sur la Compute Unit
|
|
|
|
|
Argo->>CU: Déploie job avec fichier récupéré
|
|
|
|
|
CU->>CU: Vérifie hash (CID) pour intégrité
|
|
|
|
|
CU->>CU: Exécute l'algo sur le dataset
|
|
|
|
|
|
|
|
|
|
%% 4. Stockage des résultats
|
|
|
|
|
CU->>MinIO: Stocke output (résultats) ou logs
|
|
|
|
|
CU->>IPFS: Optionnel : ajoute output sur IPFS (nouveau CID)
|
|
|
|
|
|
|
|
|
|
%% 5. Vérification et traçabilité
|
|
|
|
|
Dev->>IPFS: Vérifie CID output si nécessaire
|
|
|
|
|
CU->>Dev: Fournit résultat et log de hash
|