Skip to content
jbaicoianu edited this page May 13, 2013 · 3 revisions

The ConfigManager handles both server config (clusters, datasources, etc) and site config (configuration which controls features on the website). This documentation is broken into two sections.

Server Config

The server config is where you specify data sources and caches, and is where you specify which servers or clusters of servers you will be serving your application from.

Example:

  • Two datacenters, one in the east and one in the west, with four webservers and one db server each
  • One webserver and one db server for testing
  • One webserver and one db server for development

config/servers.ini:

[clusters]
live-east = www-east-01 www-east-02 www-east-03 www-east-04 ; east datacenter
live-west = www-west-01 www-west-02 www-west-03 www-west-04 ; west datacenter
live      = @live-east @live-west                           ; logical group
test      = test01                                          ; testing server
dev       = gandalf                                         ; development server

[default]
sources.db.default.type = mysql
sources.db.default.username = dbuser
sources.db.default.pass = ...

[live-east]
sources.db.default.host = db-east-01

[live-west]
sources.db.default.host = db-west-01

[test]
sources.db.default.host = db-test

[dev]
sources.db.default.host = db-dev

See DataManager documentation for a list of supported data sources, and the parameters each one accepts.

Site Config

Clone this wiki locally