Giter VIP home page Giter VIP logo

rsp.search's Introduction

Configuration for search.roadsign.pictures

Upgrade Guide

  1. Create dump of the database (https://search.roadsign.pictures/dumps POST)

  2. Check status of the Dump - https://search.roadsign.pictures/tasks/63803 GET . It will be ready when status is "succeeded". Take note of the dump file that was generated under details -> dumpUid.

  3. SSH into machine fly ssh console and navigate to the dumps directory. Verify the dump file created above with the dumpUid value is in the dumps directory.

  4. Pull the dump file off the volume using sftp fly ssh sftp get /meili_data/dumps/<dump_uid>.dump

  5. Branch repo

git checkout main
git checkout -b upgrade/v1.8.2
  1. Update fly.toml to point to the new Meilisearch Docker Image. Update the application name to be something unique. For instance:
app = 'rsp-search-v1.8.2'
image = 'getmeili/meilisearch:v1.8.2'
  1. Launch new apps with fly launch. Confirm that you wish to copy its configuration to the new app.
  2. Confirm a volume was created for the new app with fly volumes list. Note the new volume id.
  3. Extend the volume size to 3GB fly vol extend <vol_id> -s 3
  4. Upload dump file:
fly sftp console
cd /meili_data/dumps
put <dump_file>
<ctrl+C>
  1. SSH into the new machine fly ssh console
rm -Rf /meili_data/data.ms
meilisearch --import-dump dumps/20240611-142338344.dump
  • Note the new master key that was generated. Create new secret in the Fly.IO dashboard for MEILI_MASTER_KEY with that value. Note the new secret in your key manager. Re-deploy the application.

  • After deploy completes, visit new application using fly.dev domain and verify the data looks correct.

Swap DNS

  • Remove cert from old application
fly certs remove search.roadsign.pictures
  • Create a new certificate for the new application:
fly certs add search.roadsign.pictures
  • Note the new CNAME and update the DNS record to point to the new application. Remove any old DNS records pointing to search.roadsign.pictures

Cleanup

  1. Save new Fly.IO configuration.
git commit -am "Upgrade to v1.8.2"
  1. Remove old application.
git checkout main
fly destroy <old_app_name>
  1. Merge new branch into main
git merge upgrade/v1.8.2

rsp.search's People

Contributors

zmaillard avatar

Watchers

 avatar

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.