Config.lua 1.5 KB
--[[
        配置文件
--]]


--[[
        rabbitmq服务器
--]]
rabbitmq_host = '127.0.0.1'
--rabbitmq_host = '54.222.219.223'
rabbitmq_port = 5672
rabbitmq_user = 'guest'
rabbitmq_pass = 'guest'
rabbitmq_vhost = '/'


--[[
        influxdb服务器
--]]
influxdb_host = '127.0.0.1'
--influxdb_host = '54.222.219.223'
influxdb_port = 8086


--[[
        mongodb服务器
--]]
mongodb_host = '127.0.0.1'
mongodb_port = 27017
mongodb_user = 'root'
mongodb_pass = 'yoho@Uniformpass'
mongodb_timeout = 3

--[[
        mysql服务器
--]]
mysql_host = '127.0.0.1'
mysql_port = 3306
mysql_user = 'root'
mysql_pass = 'yoho@Uniformpass'


--[[
        前端监听配置
--]]
--http_mq_port = 9500
--worker_num = 3
--daemonize = false
multi_insert_limit = 200
multi_insert_timeout = 3


--[[
        路径配置
--]]
--working directory工作目录
--pwd = '/www/yoho-phplog'
pwd = '/Data/code/yoho-phplog'
--python路径
python = "/usr/bin/python"
--php路径
--php = "/usr/bin/php56"
php = "/Data/local/php/bin/php"
--日志文件
--log_file = nil
log_file = '/Data/code/yoho-phplog/access.log'
--性能调试文件根目录
performance_dir = '/tmp/performance'

--[[
        通道配置
--]]
--交换机名前缀
rabbitmq_exchange_name = 'yohoExchange_'
--路由键名
rabbitmq_route_key = 'phplog'
--队列名
rabbitmq_queue_name = 'phplog'
--批量ack响应阀值
rabbitmq_ack_interval = 100

log_channel = 'YHLog'
info_channel = 'YHInfo'
debug_channel = 'YHDebug'
shutdown_channel = 'YHShutdown'
performance_channel = 'YHPerformance'