%% Database sharding
%% A list of proplists with per-shard database configuration.
%% The proplists override the above options, and should contain two
%% additional options:
%% {db_shards, [
%% [
%% {db_host, "localhost"},
%% {db_adapter, mysql},
%% {db_port, 3306},
%% {db_username, "dbuser"},
%% {db_password, "dbpass"},
%% {db_database, "database"},
%% {db_shard_id, shard_id_atom},
%% {db_shard_models, [model_atom_1, model_atom_2,
%% model_atom_3, etc]}
%% ]
%% ]},
There are examples on this group if you look, I've seen at least one poasting asking similar questions.