multihost wagns+solution+more notes
apache config -- nuke the old one, keep wildcard.
updated via git on ang. now migration breaking on undefined method `cached_store=' noxious
--Lewis Hoffman.....Thu Mar 26 11:37:09 -0700 2009
create aws bucket
echo "System.multihost_name = ${WAGN}" >> config/wagn.rb
deploy ${WAGN} #include migration (should upload to new bucket)
a2dissite ${WAGN} #
pg_dump -U herd -n public ${WAGN}_production > /tmp/${WAGN}.sql
ruby -pi -ne '$_.gsub!(/^SET search_path = public/, "SET search_path = ${WAGN}"); $_' /tmp/nurture.sql
echo "create schema ${WAGN}" | psql -U herd ${CLUSTER}
psql -U herd ${CLUSTER}_production < /tmp/${WAGN}.sql
todo
* √write image migration, test, test accross cluster
* √fix sign-on /session bug -- switched to mem_cache_store for sessions.
* √handle s3 bucket name conflicts (names include wagn now, that should work most of the time)
* √cluster deploy
- √handle custom environment.rb settings in deploy script. (1)
- √cluster migrations (setting search path )
* √pre cluster benchmarks. (1)
* √import several more and wagns into the cluster (test/debug move_to_cluster recipe) (1)
* √post cluster benchmarks (1/2)
* √[optional] try memcache again? (switch, benchmark) (1)
* √implement handle/map external domain names. (2)
fallout / deploy / install work
* X decided not to do this one. migrate base_url to System setting (canonical url);
provide for default base_url setting in deploy:cold and new wagns (1)
* provide non s3 default for non-hosted wagns (1/2)
* √update default environment.rb settings (1/2)
* √make sure that fulltext search works.
--Lewis Hoffman.....Wed Apr 08 11:05:19 -0700 2009