Permalink
Branch: master
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
125 lines (25 sloc) 7.15 KB
#
# k2hftfuse for file transaction by FUSE-based file system
#
# Copyright 2015 Yahoo Japan Corporation.
#
# k2hftfuse is file transaction system on FUSE file system with
# K2HASH and K2HASH TRANSACTION PLUGIN, CHMPX.
#
# For the full copyright and license information, please view
# the license file that was distributed with this source code.
#
# AUTHOR: Takeshi Nakatani
# CREATE: Mon Nor 21 2016
# REVISION:
#
K2HFTFUSESVR_TEST_TRANS_SERVER_JSON={ 'GLOBAL': { 'FILEVERSION': '1', 'DATE': 'Thu, 24 Sep 2015 10:52:25 +0900', 'GROUP': 'K2HFUSESVRTEST', 'MODE': 'SERVER', 'DELIVERMODE': 'random', 'MAXCHMPX': '2', 'REPLICA': '0', 'MAXMQSERVER': '2', 'MAXMQCLIENT': '2', 'MQPERATTACH': '1', 'MAXQPERSERVERMQ': '1', 'MAXQPERCLIENTMQ': '1', 'MAXMQPERCLIENT': '1', 'MAXHISTLOG': '1000', 'PORT': '8030', 'CTLPORT': '8031', 'SELFCTLPORT': '8031', 'RWTIMEOUT': '100000', 'RETRYCNT': '1000', 'CONTIMEOUT': '500000', 'MQRWTIMEOUT': '50', 'MQRETRYCNT': '100000', 'DOMERGE': 'on', 'SSL': 'no', 'K2HFULLMAP': 'on', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2' }, 'SVRNODE': [ { 'NAME': 'localhost', 'SSL': 'no' } ], 'SLVNODE': [ { 'NAME': '[.]*', 'CTLPORT': '8032' } ], 'K2HFTFUSESVR': { 'TYPE': 'file', 'FILE_BASEDIR': '/tmp/k2hftfusesvr', 'FILE_UNIFY': 'log/unify.log', 'FILE_TIMEFORM': '%F %T(%s %-)', 'FORMAT': '%H:%F(%P):%f[%T] %L' } }
K2HFTFUSESVR_TEST_TRANS_SLAVE_JSON={ 'GLOBAL': { 'FILEVERSION': '1', 'DATE': 'Thu, 24 Sep 2015 10:52:25 +0900', 'GROUP': 'K2HFUSESVRTEST', 'MODE': 'SLAVE', 'DELIVERMODE': 'random', 'MAXCHMPX': '2', 'REPLICA': '0', 'MAXMQSERVER': '2', 'MAXMQCLIENT': '2', 'MQPERATTACH': '1', 'MAXQPERSERVERMQ': '1', 'MAXQPERCLIENTMQ': '1', 'MAXMQPERCLIENT': '1', 'MAXHISTLOG': '1000', 'PORT': '8030', 'CTLPORT': '8032', 'SELFCTLPORT': '8032', 'RWTIMEOUT': '100000', 'RETRYCNT': '1000', 'CONTIMEOUT': '500000', 'MQRWTIMEOUT': '50', 'MQRETRYCNT': '100000', 'DOMERGE': 'on', 'SSL': 'no', 'K2HFULLMAP': 'on', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2' }, 'SVRNODE': [ { 'NAME': 'localhost', 'PORT': '8030', 'CTLPORT': '8031', 'SSL': 'no' } ], 'SLVNODE': [ { 'NAME': '[.]*', 'CTLPORT': '8032' } ], 'K2HTPDTOR': { 'K2HTPDTOR_BROADCAST': 'no' } }
K2HFTFUSE_TEST_SERVER_JSON={ 'GLOBAL': { 'FILEVERSION': '1', 'DATE': 'Thu, 03 Sep 2015 17:27:28 +0900', 'GROUP': 'K2HFUSETEST', 'MODE': 'SERVER', 'DELIVERMODE': 'random', 'MAXCHMPX': '2', 'REPLICA': '0', 'MAXMQSERVER': '2', 'MAXMQCLIENT': '2', 'MQPERATTACH': '1', 'MAXQPERSERVERMQ': '1', 'MAXQPERCLIENTMQ': '1', 'MAXMQPERCLIENT': '1', 'MAXHISTLOG': '1000', 'PORT': '8020', 'CTLPORT': '8021', 'SELFCTLPORT': '8021', 'RWTIMEOUT': '100000', 'RETRYCNT': '1000', 'CONTIMEOUT': '500000', 'MQRWTIMEOUT': '50', 'MQRETRYCNT': '100000', 'DOMERGE': 'on', 'SSL': 'no', 'K2HFULLMAP': 'on', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2' }, 'SVRNODE': [ { 'NAME': 'localhost', 'SSL': 'no' } ], 'SLVNODE': [ { 'NAME': '[.]*', 'CTLPORT': '8022' } ], 'K2HFTFUSESVR': { 'TYPE': 'file', 'FILE_BASEDIR': '/tmp/k2hftfusesvr', 'FILE_UNIFY': 'log/unify.log', 'FILE_TIMEFORM': '%F %T(%s %-)', 'PLUGIN': '/bin/cat', 'FORMAT': '%H:%F(%P):%f[%T] %L', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2', 'K2HPAGESIZE': '128' } }
K2HFTFUSE_TEST_SLAVE_JSON={ 'GLOBAL': { 'FILEVERSION': '1', 'DATE': 'Thu, 03 Sep 2015 17:27:28 +0900', 'GROUP': 'K2HFUSETEST', 'MODE': 'SLAVE', 'DELIVERMODE': 'random', 'MAXCHMPX': '2', 'REPLICA': '0', 'MAXMQSERVER': '2', 'MAXMQCLIENT': '2', 'MQPERATTACH': '1', 'MAXQPERSERVERMQ': '1', 'MAXQPERCLIENTMQ': '1', 'MAXMQPERCLIENT': '1', 'MAXHISTLOG': '1000', 'PORT': '8020', 'CTLPORT': '8022', 'SELFCTLPORT': '8022', 'RWTIMEOUT': '100000', 'RETRYCNT': '1000', 'CONTIMEOUT': '500000', 'MQRWTIMEOUT': '50', 'MQRETRYCNT': '100000', 'DOMERGE': 'on', 'SSL': 'no', 'K2HFULLMAP': 'on', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2' }, 'SVRNODE': [ { 'NAME': 'localhost', 'PORT': '8020', 'CTLPORT': '8021', 'SSL': 'no' } ], 'SLVNODE': [ { 'NAME': '[.]*', 'CTLPORT': '8022' } ], 'K2HTPDTOR': { 'K2HTPDTOR_BROADCAST': 'no' }, 'K2HFTFUSE': { 'K2HTYPE': 'mem', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2', 'K2HPAGESIZE': '128', 'K2HFTFUSE_RULE_DIR': [ { 'TARGET': 'any/log', 'TRUNS': 'on', 'OUTPUTFILE': '/tmp/k2hftfuse/log/', 'DEFAULTALL': 'DENY', 'ALLOW': [ 'INFO', [ '(.*)([eE][rR][rR])(.*)', '$0' ] ] }, { 'TARGET': 'any/plugintest', 'TRUNS': 'on', 'OUTPUTFILE': '/tmp/k2hftfuse/any/plugintest/', 'PLUGIN': '/bin/cat', 'DEFAULTALL': 'ALLOW' } ], 'K2HFTFUSE_RULE': [ { 'TARGET': 'log/test.log', 'TRUNS': 'on', 'OUTPUTFILE': '/dev/null', 'DEFAULTALL': 'DENY', 'ALLOW': [ 'INFO', '(.*)([wW][aA][rR][nN])(.*)', [ '(.*)([eE][rR][rR])(.*)', '$1 = ERROR = $3' ] ] }, { 'TARGET': 'log/error.log', 'TRUNS': 'off', 'OUTPUTFILE': 'log/nothing3.log', 'DEFAULTALL': 'DENY', 'ALLOW': [ 'INFO', '(.*)([wW][aA][rR][nN])(.*)', [ '(.*)([eE][rR][rR])(.*)', '$1,$3' ] ] }, { 'TARGET': 'log/nothing1.log', 'TRUNS': 'on', 'OUTPUTFILE': '/tmp/k2hftfuse/log/nothing1.log' }, { 'TARGET': 'log/nothing2.log', 'TRUNS': 'on', 'OUTPUTFILE': '', 'DEFAULTALL': 'ALLOW' }, { 'TARGET': 'log/nothing3.log', 'TRUNS': 'on', 'OUTPUTFILE': '/tmp/k2hftfuse/log/nothing3.log', 'DEFAULTALL': 'DENY', 'ALLOW': '' }, { 'TARGET': 'log/plugintest.log', 'TRUNS': 'on', 'OUTPUTFILE': '/tmp/k2hftfuse/log/plugintest.log', 'PLUGIN': '/bin/cat', 'DEFAULTALL': 'ALLOW' } ] } }
K2HFTFUSE_TEST_TRANS_SERVER_JSON={ 'GLOBAL': { 'FILEVERSION': '1', 'DATE': 'Thu, 24 Sep 2015 10:52:25 +0900', 'GROUP': 'K2HFUSETEST', 'MODE': 'SERVER', 'DELIVERMODE': 'random', 'MAXCHMPX': '2', 'REPLICA': '0', 'MAXMQSERVER': '2', 'MAXMQCLIENT': '2', 'MQPERATTACH': '1', 'MAXQPERSERVERMQ': '1', 'MAXQPERCLIENTMQ': '1', 'MAXMQPERCLIENT': '1', 'MAXHISTLOG': '1000', 'PORT': '8020', 'CTLPORT': '8021', 'SELFCTLPORT': '8021', 'RWTIMEOUT': '100000', 'RETRYCNT': '1000', 'CONTIMEOUT': '500000', 'MQRWTIMEOUT': '50', 'MQRETRYCNT': '100000', 'DOMERGE': 'on', 'SSL': 'no', 'K2HFULLMAP': 'on', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2' }, 'SVRNODE': [ { 'NAME': 'localhost', 'SSL': 'no' } ], 'SLVNODE': [ { 'NAME': '[.]*', 'CTLPORT': '8022' } ], 'K2HFTFUSESVR': { 'TYPE': 'trans', 'TRANSCONF': '{ ''GLOBAL'': { ''FILEVERSION'': ''1'', ''DATE'': ''Thu, 24 Sep 2015 10:52:25 +0900'', ''GROUP'': ''K2HFUSESVRTEST'', ''MODE'': ''SLAVE'', ''DELIVERMODE'': ''random'', ''MAXCHMPX'': ''2'', ''REPLICA'': ''0'', ''MAXMQSERVER'': ''2'', ''MAXMQCLIENT'': ''2'', ''MQPERATTACH'': ''1'', ''MAXQPERSERVERMQ'': ''1'', ''MAXQPERCLIENTMQ'': ''1'', ''MAXMQPERCLIENT'': ''1'', ''MAXHISTLOG'': ''1000'', ''PORT'': ''8030'', ''CTLPORT'': ''8032'', ''SELFCTLPORT'': ''8032'', ''RWTIMEOUT'': ''100000'', ''RETRYCNT'': ''1000'', ''CONTIMEOUT'': ''500000'', ''MQRWTIMEOUT'': ''50'', ''MQRETRYCNT'': ''100000'', ''DOMERGE'': ''on'', ''SSL'': ''no'', ''K2HFULLMAP'': ''on'', ''K2HMASKBIT'': ''4'', ''K2HCMASKBIT'': ''4'', ''K2HMAXELE'': ''2'' }, ''SVRNODE'': [ { ''NAME'': ''localhost'', ''PORT'': ''8030'', ''CTLPORT'': ''8031'', ''SSL'': ''no'' } ], ''SLVNODE'': [ { ''NAME'': ''[.]*'', ''CTLPORT'': ''8032'' } ], ''K2HTPDTOR'': { ''K2HTPDTOR_BROADCAST'': ''no'' } }', 'K2HTYPE': 'mem', 'K2HMASKBIT': '4', 'K2HCMASKBIT': '4', 'K2HMAXELE': '2', 'K2HPAGESIZE': '128' } }
#
# VIM modelines
#
# vim:set ts=4 fenc=utf-8:
#