• View
  • Changes
  • Options
  • Related
  • Edit
  • , ,  Add +commit
     
  • View
  • Changes
  • Options
  • Related
  • Edit
  • Need to be able to host all wagns from one Rails application for acceptable performance

     

  • View
  • Changes
  • Options
  • Related
  • Edit
  • Overview

    Our current plan is to use postgres schemas to house the Wagns.  This should give the benefits of single application instance and single set of database connections with minimal changes to the codebase.

     

    Database

    in a "before_filter" in application.rb (at the start of each request) we execute a "set schema" statement based on the domain/subdomain of the request.  All subsequent requests are then localized to that schema.

     

    Cache

    cache keys are already prefixed with System.base_url, so we should be in good shape here.

     

    Attachments

    Current attachment system isn't likely to work multi-hosted.  Depending on implementation of use attachment fu for uploads, we may import images into each database/schema.

     

    Wagn Configuration

    the install would be sharing wagn.rb.  so System.base_url and System.site_name must be migrated, presumably to the database.  

     

    Migration

    if images have been migrated to database already, migration could be as simple as dumping each database, the reloading into the appropriate schema.  (looks like we can't do it in a psql one-liner though, missing commandline support for schema selection)

     

    Apache Configuration

    instead of multiple apache vhosts, we can have just one wildcard vhost.  this also removes the need to add vhosts when creating new wagns.

     


    apache config -- nuke the old one, keep wildcard. updated via git on ang.  now migration breaking on undefined method `cached_store='  noxious   -- ...

     

    Add +example

     

    Related support tickets: 
    Relevant user stories: 
     add one

    Add +discussion

     

    Notes

    add a note

    Download Docs Sandbox Hosting Support

  • View
  • Changes
  • Options
  • Related
  • Edit
  •  

    Wagn News

    1 to 5 of 24Next-page 1 to 5 of 24Next-page

     

    Ideas

     

     

    Support Tickets



    Wagn at github

    Wheeled by Wagn v. 1.7.2