aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--notes/migrations/20190521_qa_v0.3.txt31
-rw-r--r--notes/migrations/20190523_prod_v0.3.txt13
-rwxr-xr-xpython/fatcat_worker.py4
3 files changed, 46 insertions, 2 deletions
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!
diff --git a/python/fatcat_worker.py b/python/fatcat_worker.py
index d9d21c6d..1e83eac1 100755
--- a/python/fatcat_worker.py
+++ b/python/fatcat_worker.py
@@ -20,13 +20,13 @@ def run_changelog(args):
def run_entity_updates(args):
changelog_topic = "fatcat-{}.changelog".format(args.env)
- release_topic = "fatcat-{}.release-updates".format(args.env)
+ release_topic = "fatcat-{}.release-updates-v03".format(args.env)
worker = EntityUpdatesWorker(args.api, args.kafka_hosts, changelog_topic,
release_topic=release_topic)
worker.run()
def run_elasticsearch_release(args):
- consume_topic = "fatcat-{}.release-updates".format(args.env)
+ consume_topic = "fatcat-{}.release-updates-v03".format(args.env)
worker = ElasticsearchReleaseWorker(args.kafka_hosts, consume_topic,
elasticsearch_backend=args.elasticsearch_backend,
elasticsearch_index=args.elasticsearch_index)