Skip to content

komal-sai-yral/fly-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Off-Chain-Agent

Overview

Off-chain agent is a service that runs on Fly.io and is responsible for orchestrating the off-chain operations of the platform. It is responsible for the following:

  • Daily backups for disaster recovery
  • Monitoring

Architecture

Periodic Backups

flowchart TD
    IndividualCansiter1[(Individual User <br>Canister 1)]
    IndividualCansiter2[(Individual User <br>Canister 2)]
    UserIndex[(User Index)]
    PlatformOrchestrator[Platform <br>Orchestrator]
    OffChainAgent[OffChain Agent]
    CFWorker[Cloudflare Worker]
    R2[(R2 store)]

    OffChainAgent --[1.1]--> PlatformOrchestrator
    OffChainAgent --[1.2]--> UserIndex
    OffChainAgent --[2(get snapshot)]--> IndividualCansiter1
    OffChainAgent --[2.1(store snapshot)]--> R2
    OffChainAgent --[3]--> IndividualCansiter2
    OffChainAgent --[3.1]--> R2

    CFWorker -- 1(cron trigger) --> OffChainAgent


    subgraph OnChain
        PlatformOrchestrator
        UserIndex
        IndividualCansiter1
        IndividualCansiter2
    end
Loading

Monitoring

flowchart TD
    IndividualCansiter1[(Individual User <br>Canister 1)]
    IndividualCansiter2[(Individual User <br>Canister 2)]
    UserIndex[(User Index)]
    PlatformOrchestrator[Platform <br>Orchestrator]
    OffChainAgent[OffChain Agent]
    Prom[Prometheus]
    Grafana[Grafana]

    OffChainAgent --[1.1]--> PlatformOrchestrator
    OffChainAgent --[1.2]--> UserIndex

    Prom -- 1(http_sd_config <br> periodically fetch canisters list) --> OffChainAgent
    Prom -- 2 (/metrics) --> IndividualCansiter1
    Prom -- 2 (/metrics) --> IndividualCansiter2

    subgraph OnChain
        PlatformOrchestrator
        UserIndex
        IndividualCansiter1
        IndividualCansiter2
    end

    subgraph GoogleCloud[DigitalOcean]
        Prom --> Grafana
    end
Loading

fly-agent

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published