Auto Configuration

Overview

Auto Configuration automatically configures your servers by installing and setting up the software you need. Scalarium will configure your application and update the full cluster when you fire up new instances. No need for you to keep updating your configurations manually.

You just tell Scalarium which Ubuntu packages and Rubygems you need for every role and Scalarium will make sure that those packages and libraries are installed on every server. You can add packages at any time and tell Scalarium to install those package on every instance.


Cluster Configuration

Scalarium not only installs and updates your dependencies, it also automatically configures your cluster. Scalarium configures the different building blocks of an Web-Application-Cluster by default.

You don't need to manually manage and update the configuration of the load balancer or tell the application server where the database is.

Scalarium manages the following components automatically:

  • Backend definition for the load balancer
  • Database configuration for Ruby on Rails application servers
  • Database setup on Amazon Elastic Block Storage (EBS)
  • A cluster state file for you custom scripts

This automatic configuration is constant. So when new application servers are successfully started, Scalarium adds them to the load balancer. When you stop a web server, the load balancer gets notified and removes it from its list of active backends.


Custom Scripts and Hooks

If your dependencies are more complicated than just installing packages, you can always customize. You can do this by either hooking into the deployment process or by writing your own Chef recipes.

Scalarium allows you to write scripts that are executed as part of the deployment. This way you can make sure that your application gets started the way you need or that certain files are present in specific locations. Once the scripts grow, it makes more sense to use Chef to customize your setup.


Custom Chef Recipes

Chef is an OpenSource provisioning tool that allows you to easily script and automate software installations and configurations. Chef is used by Scalarium to transform a stock Ubuntu server into a custom instance fitting your needs.

You can write your own Chef recipes that extend the Scalarium defaults. This way you have total control over what gets installed and how.


Supported Applications

Thanks to the power of Chef, Scalarium can host many different applications. Scalarium has built-in support for Ruby on Rails, PHP, and static HTML serving. Hosting Rails applications is very easy, as Scalarium understands the application layout and dependencies.