public static final Logger LOG = LoggerFactory.getLogger(DBPools.class);
public static synchronized void initializePool(final Config settings) {
if (pgObserverDatasource == null) {
BoneCPConfig config = new BoneCPConfig();
config.setAcquireIncrement(1);
config.setJdbcUrl("jdbc:postgresql://" + settings.database.host + ":" + settings.database.port + "/"
+ settings.database.name);
config.setUsername(settings.database.backend_user);
config.setPassword(settings.database.backend_password);
config.setPartitionCount(1);
config.setMaxConnectionsPerPartition(20);
config.setMinConnectionsPerPartition(1);
config.setConnectionTimeoutInMs(2000);
config.setInitSQL("set search_path to monitor_data, monitor_api, public");
pgObserverDatasource = new BoneCPDataSource(config);
try {