Im wanting to replicate the files on my home server to my server at my business and a VPS. Then have it setup in a way where my laptop, iphone, etc… will automatically connect to whichever server is closest or fastest. Clearly the servers would sync amongst themselves so they all 3 stay up to date.

Is this even possible?

  • nomad@infosec.pub
    link
    fedilink
    English
    arrow-up
    3
    ·
    8 months ago

    Look into dns loadbalancing. Closest would be “first to respond” which correlates to latency to server (fastest connection) and maybe load on the server.

  • crysisnotaverted@alien.topB
    link
    fedilink
    English
    arrow-up
    2
    ·
    8 months ago

    Surely it’s possible, but what is the advantage of selecting the closest one? Are your bulk file transfers heavily impacted by a few dozens of milliseconds of latency?

  • CameronDev@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Set the dns server in each location to point to the local clone?

    I am considering doing something similar, but for backup, how are you planning on syncronising the shares? I was gonna try syncthing

  • Zestyclose-Run2406@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Unless your vps has unlimited storage I’d be weary of that when it comes to pricing and uploading raw photos or video. It’s not like you’re working with jpgs here.

    Have you looked into a NAS and cloud storage?

  • PaulEngineer-89@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    Here is the problem you face speaking very generically. If you cache everything on the clients access is fast but storage is an issue. If you cache on the LANs speed is an issue. You can try to store on an internet VPS but storage costs are high. You can cache just the index, “Google Drive” style and download/cache only as needed. This probably works the best because you control it down to the file level and speed is not an issue because you work iff local copies. Otherwise any scenario is going to be up against the bandwidth problem.