Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Deployments

...

  • Go to build-dev-stack

    • Make any change needed to configuration (new config values, update beanstalk solution…)

    • Build with Parameters > Specify instance number (N+1), beanstalk numbers (0 if regular/non patch), versions (from builds above) and git branch for the stack builder (matches the instance number)

  • After the build is done, go to SynapseDev AWS console / Elastic Beanstalk and restart the servers for the environments

  • Go to dev-link-dns-to-alb to configure the stack just deployed as a staging stack

    • Configure > Execute shell

      • In the command, for ‘repo.staging.dev.sagebase.org’ and ‘portal.staging.dev.sagebase.org’ replace ‘none’ by ‘repo-dev-<N+1>-<beanstalk-number>’ and ‘portal-dev-<N+1>-<beanstalk-number>’ where <N+1> and <beanstalk-number> are the values specified for the dev stack deployed above
        ==> This is going to move the instances in the target groups for the staging ALB (i.e. make stack <N+1> the staging stack. The operations takes about 5 minutes.

    • While the linking is happening, setup a mySQL connection to the new stack repo database.

    • To verify that you have the correct prod and staging instance of the dev stack

  • Go to migrate-dev-stack

    • Migrate the stack by running the job

      • Should take 2-3 attempts to get it down to about 5 minutes

      • When at 5 minutes, connect to the ‘prod’ dev stack and set it to Read-Only mode (the migration job sets the destination to RO and leaves it RO).

      • After the final migration, both stacks are in RO mode. Verify that all types displayed have null values for (min,max) [these are empty tables]

  • Go back to dev-link-dns-to-alb, this time to config the new stack as the ‘prod’ stack

    • Configure > Execute shell

      • In the command, for ‘repo.prod.dev.sagebase.org’ and ‘portal.prod.dev.sagebase.org’ replace ‘N’-<beanstalk-number> by ‘<N+1>-<beanstalk-number>’ (i.e. make the new stack the prod stack) and for ‘repo.staging.dev.sagebase.org’ and ‘portal.staging.dev.sagebase.org’ set them again to ‘none’ (there is no ‘staging’ stack except for migration purposes)
        ==> Again, the operations takes about 5 minutes

  • In the database for the new stack, set the status to read-write mode and verify that the prod stack is in read-write mode at https://repo-prod.dev.sagebase.org/repo/v1/status .

  • In the Synapse Dev AWS console, go to CloudFormation and delete the stacks for portal-dev-<N>, repo-dev-<N> and workers-dev-N.

  • Run the synapsePython client integration tests

...

...

...