Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add shell script for loading memcached on magellan VM #278

Merged
merged 2 commits into from

1 participant

@teharrison
Owner

No description provided.

@teharrison teharrison merged commit 5e4fa09 into MG-RAST:develop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2013
  1. shell script for loading memcached on magellan VM

    Travis Harrison authored
This page is out of date. Refresh to see the latest.
Showing with 22 additions and 0 deletions.
  1. +22 −0 src/Babel/bin/load_memcache.sh
View
22 src/Babel/bin/load_memcache.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+LOAD=$HOME/ach/md52memcache.pl
+DEPLOY=/mnt/ach
+VACH='1'
+MKEY='_ach'
+MHOST='localhost:11211'
+TYPES=( 'source' 'organism' 'function' 'ontology' 'md5_lca' 'md5_protein' 'md5_rna' 'md5_ontology' 'md5' )
+
+sudo mkdir $DEPLOY
+sudo chown ${USER}:${USER} $DEPLOY
+
+for T in "${TYPES[@]}"; do
+ echo "downloading $T ..."
+ wget -q -O ${DEPLOY}/${T}_map.gz ftp://ftp.metagenomics.anl.gov/data/MD5nr/memcached/v${VACH}/${T}_map.gz
+ echo "gunzipping $T ..."
+ gunzip -v ${DEPLOY}/${T}_map.gz
+ echo "loading $T ..."
+ $LOAD --verbose --mem_host $MHOST --mem_key $MKEY --map ${DEPLOY}/${T}_map --option $T
+done
+echo "Done loading memcache"
+
Something went wrong with that request. Please try again.