--[[ Copyright (C) 2008 optivo GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --]] -- @author $Author$ -- @release $Date$ $Rev$ config = {} config.partitionLookupModule = "optivo.hscale.dictionaryPartitionLookup" -- How often should configuration be reloaded? Default is every 10 seconds. config.reloadInterval = 5 -- How many seconds to wait when switching to RELOADMODE_FORCE. config.reloadForceWait = 2 config.configServer = { host = "127.0.0.1", port = "7001", user = "msandbox", password = "msandbox", db = "hscale", initSql = { "SET NAMES utf8" } } -- User and password valid for all backends. Needs to CREATE TABLE privilige. config.backendAuth = { user = "msandbox", password = "msandbox", initSql = { "SET NAMES utf8" } } -- Create partitions for new partition values. -- Possible values: -- - "on" enabled. Adding new partitions will cause the proxy to wait until all other HSCALE instances -- got the new config. -- - "nowait" enabled but the proxy will not wait. This is ok if you don't care that for a small amount of -- time (reloadInterval + reloadForceWait) full partition scans issued on *other* HSCALE instances -- don't use the newly created partition. config.autoCreatePartitions = "nowait" -- Internal tweaks. Only needed until backend handling is fixed. config.connectionPoolMinIdle = 1 config.connectionPoolMaxIdle = 2 return config