Coder Social home page Coder Social logo

Comments (6)

kabilar avatar kabilar commented on August 16, 2024
  • Build migration script
  • Run migration during downtime (when DoEKS deployment is pushed to production)

from dandi-hub.

asmacdo avatar asmacdo commented on August 16, 2024

Option 1: Migration script
This has been more complex than I expected. The VPCs are isiolated from one another. To connect 2 VPCs, we use a "peering connection" https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html

Peering connections complexity:

  • each VPC
    • local DNS
    • AWS DNS
  • Security Groups
    • configuration must be changed in many objects, and they must be changed to complement one another
    • the dandihub.k8s.local (current ansible deployment) and eks-hub-staging (new) are configured differently.

Option 2: AWS DataSync
https://aws.amazon.com/datasync/
$0.0125 /GB
$0.0125 * 1024 * 12 = $158 per 12TB sync

Supposedly simpler and easier to automate.

from dandi-hub.

asmacdo avatar asmacdo commented on August 16, 2024

It was tricky getting DataSync to connect, but what finally seemed to work was:

DataSync Task needs 2 Security Groups (SG)

  • source location + SG for EFS1 in VPC1
  • destination location + SG for EFS2 in VPC2

Each Security Group needs NFS SG Rules (8 total) granting:

  1. Inbound port 2029 to itself
  2. Outbound port 2029 to itself
  3. Inbound port 2029 to the other SG
  4. Outbound port 2029 to the other SG

from dandi-hub.

asmacdo avatar asmacdo commented on August 16, 2024

So far so good, but I want to investigate the 70,000 (out of 6 million) files that were skipped (seems like all at the very beginning, maybe dotfile-type stuff?

On the next run ill make an s3 bucket for so we can get the logs.

image

from dandi-hub.

asmacdo avatar asmacdo commented on August 16, 2024

Also on the next run, (as discussed in dandi standup) we'll change config from "no delete" so if any files are removed from production, they will also be removed from staging.

from dandi-hub.

kabilar avatar kabilar commented on August 16, 2024

Thanks for the update, Austin. Glad to hear that it is coming together.

from dandi-hub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.