From e27565c93e050e0d14daa556cb9b0f96b84ad28d Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 23 May 2019 11:44:38 -0700 Subject: migration notes --- notes/migrations/20190521_qa_v0.3.txt | 31 +++++++++++++++++++++++++++++++ notes/migrations/20190523_prod_v0.3.txt | 13 +++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 notes/migrations/20190521_qa_v0.3.txt create mode 100644 notes/migrations/20190523_prod_v0.3.txt (limited to 'notes/migrations') diff --git a/notes/migrations/20190521_qa_v0.3.txt b/notes/migrations/20190521_qa_v0.3.txt new file mode 100644 index 00000000..881d192a --- /dev/null +++ b/notes/migrations/20190521_qa_v0.3.txt @@ -0,0 +1,31 @@ + +Upgrading QA to v0.3 +------------------------ + +Size before: 288.81G + +Took API down at 2019-05-21 12:09 + + time diesel migration run + Running migration 2019-05-09-051834_v0.3 + + real 6m14.481s + user 0m0.028s + sys 0m0.028s + +Disk I/O is furious! + + +fatcat@wbgrp-svc500:/srv/fatcat/src/rust$ time cargo build --release + Compiling fatcat-api-spec v0.3.0 (/srv/fatcat/src/rust/fatcat-api-spec) + Compiling fatcat v0.3.0 (/srv/fatcat/src/rust) + Finished release [optimized] target(s) in 4m 24s + +real 4m24.673s +user 10m22.476s +sys 0m10.320s + +Back up at 12:23. Could have gone a bit faster with parallelism and no +distractions. + +Size after: 289.14G diff --git a/notes/migrations/20190523_prod_v0.3.txt b/notes/migrations/20190523_prod_v0.3.txt new file mode 100644 index 00000000..fb077d5c --- /dev/null +++ b/notes/migrations/20190523_prod_v0.3.txt @@ -0,0 +1,13 @@ + +Starting at 11:16 or so. + +Pulled v0.3.0 (f5b955746f2fb62220c3b3dfc134d4d35193f776) + + $ time diesel migration run + Running migration 2019-05-09-051834_v0.3 + + real 6m17.209s + user 0m0.036s + sys 0m0.020s + +And then rebuilds, and start/restart API and web. Easy! -- cgit v1.2.3