EngineYard Technology Stack

Posted by ezmobius Sun, 24 Sep 2006 19:06:00 GMT

People have been asking me for a little technology overview of how Engine Yard is structured. I’ll give a small run down here.

Read more...

Tags , , ,  | 14 comments

Engineyard.com new site is up.

Posted by ezmobius Sat, 23 Sep 2006 21:44:00 GMT

I am really excited to announce that we just launched our new redesign at EngineYard.com. We have been working very hard to get the first cluster up and its running very very nicely. I am still hard at work on the control panel for making it very simple to deploy your apps to the cluster and hope to be done soon.
Damien Tanner from New Bamboo did the design work for us and we are very happy with it.

Tags , , ,  | 2 comments

Apache2.2 vhost template for mongrel clusters

Posted by ezmobius Mon, 12 Jun 2006 06:45:00 GMT

Just wanted to share a template vhost for use with apache2.2/mod_proxy_balancer → mongrel_cluster. This vhost takes care of making apache serve all static and page cached requests while forwarding all dynamic requests to the mongrel_cluster.

Thanks to Bradley Taylor author of mongrel_cluster and owner of RailsMachine.com for this config.

<VirtualHost *:80>
  ServerName yourdomain.com
  DocumentRoot /var/rails/your_app/current/public
  <Directory "/var/rails/your_app/current/public">
    Options FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
  </Directory>
  # Configure the cluster member proxy
  <Proxy balancer://your_app_cluster>
    BalancerMember http://127.0.0.1:5000
    BalancerMember http://127.0.0.1:5001
    BalancerMember http://127.0.0.1:5002
  </Proxy>
  RewriteEngine On
  # If there is a maintenence.html file in your
  # public dir all requests will get rerouted to
  # this file.  This is for use with capistrano
  RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f
  RewriteCond %{SCRIPT_FILENAME} !maintenance.html
  RewriteRule ^.*$ /maintenance.html [L]
  # Rewrite index to check for static index.html
  RewriteRule ^/$ /index.html [QSA] 
  # Rewrite to check for Rails cached pages with .html extentions
  RewriteRule ^([^.]+)$ $1.html [QSA]
  # All dynamic requests get sent to the cluster
  RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
  RewriteRule ^/(.*)$ balancer://your_app_cluster%{REQUEST_URI} [P,QSA,L]
  # Deflate for clients that support it.
  AddOutputFilterByType DEFLATE text/html text/plain text/xml
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  # Error and access logs.
  ErrorLog logs/your_app_error_log
  CustomLog logs/your_access_log combined
</VirtualHost>

Tags , ,  | 4 comments