Module: Roma::Config

Defined in:
lib/roma/config.rb

Constant Summary collapse

VERSION =

check when the booting

"1.2.0"
DEFAULT_PORT =
12000
DEFAULT_NAME =
'ROMA'
DEFAULT_LOST_ACTION =

:no_action | :auto_assign | :shutdown

:auto_assign
AUTO_RECOVER =

to use a auto recover function, AUTO_RECOVER is to set true

false
ROUTING_FAIL_CNT_THRESHOLD =

failover setting threshold of failover occurrence

15
ROUTING_FAIL_CNT_GAP =

ROUTING_FAIL_CNT_GAP(sec) doesn’t increase the failover counter.

0
LOG_SHIFT_AGE =

log setting

10
LOG_SHIFT_SIZE =
1024 * 1024 * 10
LOG_PATH =
'.'
LOG_LEVEL =

:debug | :info | :warn | :error

:debug
RTTABLE_PATH =

routing setting

'.'
ROUTING_EVENT_LIMIT_LINE =
1000
CONNECTION_USE_EPOLL =

to use a system call of epoll, CONNECTION_USE_EPOLL is to set true

true
CONNECTION_DESCRIPTOR_TABLE_SIZE =

to use a system call of epoll, CONNECTION_DESCRIPTOR_TABLE_SIZE can be setting

4096
CONNECTION_CONTINUOUS_LIMIT =

like a MaxStartups spec in the sshd_config ‘start:rate:full’

'200:30:300'
CONNECTION_EXPTIME =

expired time(sec) for accepted connections

0
CONNECTION_POOL_EXPTIME =

expired time(sec) for an async connection in the connection pool CONNECTION_POOL_EXPTIME should be less than CONNECTION_EXPTIME

30
CONNECTION_POOL_MAX =

max length of the connection pool

5
CONNECTION_EMPOOL_EXPTIME =

expired time(sec) for an eventmachine’s connection in the connection pool CONNECTION_EMPOOL_EXPTIME should be less than CONNECTION_EXPTIME

30
CONNECTION_EMPOOL_MAX =

max length of the eventmachine’s connection pool

15
DNS_CACHING =

lookup hostname to the nameserver everytime or only first time. if set true, the result of lookup will keep.

false
STORAGE_CLASS =

storage setting

Roma::Storage::RubyHashStorage
STORAGE_DIVNUM =
10
STORAGE_PATH =
'.'
STORAGE_DUMP_PATH =
'/tmp'
STORAGE_OPTION =
''
STORAGE_EXCEPTION_ACTION =

:no_action | :shutdown

:no_action
STORAGE_DELMARK_EXPTIME =

expired time(sec) for deleted keys, expired keys and invalid vnode keys typical value is 5 days

60 * 60 * 24 * 5
STORAGE_CLEAN_UP_INTERVAL =
60 * 5
DATACOPY_STREAM_COPY_WAIT_PARAM =

data copy setting

0.001
LOG_STREAM_SHOW_WAIT_PARAM =

show logs setting

0.001
PLUGIN_FILES =

plugin setting

['plugin_storage.rb']
WRITEBEHIND_PATH =

write-behind setting

'./wb'
WRITEBEHIND_SHIFT_SIZE =
1024 * 1024 * 10
REDUNDANT_ZREDUNDANT_SIZE =

redundant setting REDUNDANT_ZREDUNDANT_SIZE is a option for a redundancy of compressed data. when the data size is more then REDUNDANT_ZREDUNDANT_SIZE, data compression is done. however, it does’t in case of REDUNDANT_ZREDUNDANT_SIZE is zero.

0