删减配置文件,K项目的main.conf可使用main_k.conf,frag_reassembly.conf使用frag_reassembly_k.conf
This commit is contained in:
33
bin/conf/frag_reassembly_k.conf
Normal file
33
bin/conf/frag_reassembly_k.conf
Normal file
@@ -0,0 +1,33 @@
|
||||
[NETWORK]
|
||||
RedisClusterSwitch=1
|
||||
RedisTimeout=5
|
||||
|
||||
#cluster mode
|
||||
RedisBrokers=192.168.10.205:9012
|
||||
|
||||
[SYSTEM]
|
||||
WaitQueueNum=1000000
|
||||
|
||||
ConvergeHashSize=65536
|
||||
ConvergeHashElemNum=1048576
|
||||
ConvergeHashExpireTime=120
|
||||
|
||||
[LOG]
|
||||
#frag reassembly log <20><><EFBFBD><EFBFBD>ƴ<EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
|
||||
FragReassemblyLogLevel=30
|
||||
FragReassemblyLogName=./frag_reassembly.log
|
||||
|
||||
#media log
|
||||
MediaLogLevel=30
|
||||
MediaLogName=./frag_reassembly_media.log
|
||||
|
||||
#stat log
|
||||
StatInterval=30
|
||||
StatFile=./frag_reassembly_stat.log
|
||||
SysinfoInterval=30
|
||||
SysinfoFile=./frag_reassembly_sysinfo.log
|
||||
|
||||
#Maat
|
||||
MaatStatSwitch=0
|
||||
MaatPerfSwitch=0
|
||||
MaatStatFile=./maat_stat.log
|
||||
@@ -232,4 +232,4 @@ capacity=32
|
||||
cost=32
|
||||
wlb_report_interval=10
|
||||
|
||||
bfd_recv_port=33082
|
||||
bfd_recv_port=0
|
||||
|
||||
134
bin/conf/main_k.conf
Normal file
134
bin/conf/main_k.conf
Normal file
@@ -0,0 +1,134 @@
|
||||
#--------------------------------------------------------------------NETWORK
|
||||
[NETWORK]
|
||||
LocalIP=ens33
|
||||
FwdIP=ens33
|
||||
|
||||
#recv bizman param, recv data from sapp
|
||||
BizmanAckSmoothTime = 10
|
||||
BizmanAckAccumulateTime=10
|
||||
BizmanAckAccumulateNum=5
|
||||
BizmanPort=22082
|
||||
|
||||
#sapp recv resp msg port
|
||||
BizmanAckPort=22084
|
||||
|
||||
#msg port:recv msg
|
||||
MsgPort=22080
|
||||
|
||||
#udp socket:send frag
|
||||
UdpSendIP=127.0.0.1;127.0.0.1;
|
||||
UdpSendIPNum=2
|
||||
UdpSendPort=33082;33083
|
||||
|
||||
#--------------------------------------------------------------------SYSTEM
|
||||
[SYSTEM]
|
||||
#cpz<70><7A><EFBFBD><EFBFBD> 0:AV_PIC 1:voip
|
||||
CPZTpye=0
|
||||
|
||||
ThreadNum=1
|
||||
BizmanQueueMode=0
|
||||
BizmanQueueMaxnum=2000000
|
||||
|
||||
AsmisSwitch=0
|
||||
|
||||
#<23><>ǰ<EFBFBD>˷<EFBFBD><CBB7>ͽ<EFBFBD>Ŀȷ<C4BF><C8B7>
|
||||
AckSwitch=0
|
||||
|
||||
#IVIȥ<49>ؿ<EFBFBD><D8BF><EFBFBD>
|
||||
IVISwitch=1
|
||||
|
||||
#index<65>ڶ<EFBFBD><DAB6>η<EFBFBD><CEB7><EFBFBD>ʱ<EFBFBD><CAB1>
|
||||
IndexQueryTime=10
|
||||
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѯ<EFBFBD><D1AF>ʱ<EFBFBD><CAB1><EFBFBD>ص<EFBFBD><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
IndexQueryTimerCbMaxNum=500
|
||||
|
||||
#media renew time
|
||||
RenewTimeMax=7200
|
||||
RenewTimeMin=600
|
||||
RenewTimeStep=6
|
||||
|
||||
#<23><>ĿHASH<53><48>
|
||||
MediaHashSize=65536
|
||||
MediaHashElemNum=1048576
|
||||
MediaHashExpireTime=300
|
||||
|
||||
#Ԫ<><D4AA>Ϣѡ<CFA2><D1A1>capIP<49>Ƿ<EFBFBD><C7B7><EFBFBD> 1<><31><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD>capIP, 0:ѡ<><D1A1>Ϊǰ<CEAA>˻<EFBFBD>CapIP
|
||||
ModifyCapIPSwitch=1
|
||||
|
||||
#==============================================================VOIP
|
||||
[VOIP]
|
||||
VOIPFilterSwitch=0
|
||||
|
||||
#VOIP survey log <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־
|
||||
VOIPSurveyLogIP=
|
||||
VOIPSurveyLogIPNum=
|
||||
VOIPSurveyLogPort=
|
||||
|
||||
#VOIP total log ȫ<><C8AB><EFBFBD><EFBFBD>־
|
||||
VOIPFullLogIP=
|
||||
VOIPFullLogIPNum=
|
||||
VOIPFullLogPort=
|
||||
|
||||
#voip log
|
||||
VOIPLogLevel= 20
|
||||
VOIPLogPath= ./log/voip.log
|
||||
|
||||
#--------------------------------------------------------------------LOG
|
||||
[LOG]
|
||||
AppName=rssb
|
||||
StatRemoteSwitch=
|
||||
StatServerIP=
|
||||
StatServerPort=
|
||||
|
||||
#field_stat
|
||||
StatCycle=30
|
||||
StatFile=./log/rssb_stat.log
|
||||
|
||||
SysinfoCycle=30
|
||||
SysinfoFile=./log/rssb_sysinfo.log
|
||||
|
||||
#log in general
|
||||
LogLevel= 30
|
||||
LogPath= ./log/runtime.log
|
||||
|
||||
#frag msg log
|
||||
FragLogLevel= 30
|
||||
FragLogPath= ./log/frag.log
|
||||
|
||||
#resp msg log
|
||||
RespLogPath= ./log/survey.log
|
||||
|
||||
#media create log
|
||||
MediaCreateLogPath= ./log/media_create.log
|
||||
|
||||
#media expire log
|
||||
MediaExpireLogPath= ./log/media_expire.log
|
||||
|
||||
#--------------------------------------------------------------------DEBUG
|
||||
[DEBUG]
|
||||
/*<2A><>Ŀ<EFBFBD><C4BF><EFBFBD>б<EFBFBD><D0B1>ش洢*/
|
||||
FileStoreSwitch=0
|
||||
FileStorePath=./log/file/
|
||||
|
||||
#1: (reoffset-1)*content-length 0: accoffset
|
||||
HlsAboffsetInMode=1
|
||||
|
||||
/*<2A><>Ƭ<EFBFBD><C6AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ч<EFBFBD><D0A7>־*/
|
||||
FragSurveyInvalid=0
|
||||
|
||||
/*JSON<4F>ļ<EFBFBD>д<EFBFBD><D0B4><EFBFBD><EFBFBD>*/
|
||||
JSONLocalSwitch=0
|
||||
|
||||
[WLB]
|
||||
wlb_on=0
|
||||
wlb_topic=AV
|
||||
wlb_group_name=xx
|
||||
user_tag=xx
|
||||
health_check_port=52100
|
||||
health_check_interval=10
|
||||
data_port=30000
|
||||
capacity=32
|
||||
cost=32
|
||||
wlb_report_interval=10
|
||||
|
||||
bfd_recv_port=0
|
||||
Binary file not shown.
@@ -574,9 +574,9 @@ int read_conf_and_init(const char* filename)
|
||||
}
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "BizmanQueueMode", (short*)&g_frag_cfg.bizman_queue_mode, 0);
|
||||
MESA_load_profile_uint_def(filename, "SYSTEM", "BizmanQueueMaxnum", &g_frag_cfg.bizman_queue_maxnum, 2000000);
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "AckSwitch", (short*)&g_frag_cfg.ack_switch, 1);
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "AckSwitch", (short*)&g_frag_cfg.ack_switch, 0);
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "IVISwitch", (short*)&g_frag_cfg.IVI_switch, 1);
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "AsmisSwitch", (short*)&g_frag_cfg.asmis_switch, 1);
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "AsmisSwitch", (short*)&g_frag_cfg.asmis_switch, 0);
|
||||
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "IndexQueryTime", (short*)&g_frag_cfg.index_query_timeout, 10);
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "IndexQueryTimerCbMaxNum", (short*)&g_frag_cfg.index_query_timer_cb_maxtime, 500);
|
||||
@@ -591,7 +591,7 @@ int read_conf_and_init(const char* filename)
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "RenewTimeStep", (short*)&g_frag_cfg.renew_time_step,0);
|
||||
|
||||
/*av record*/
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "AVRecordFileSwitch", (short*)&g_frag_cfg.avrecord_switch,1);
|
||||
MESA_load_profile_short_def(filename, "SYSTEM", "AVRecordFileSwitch", (short*)&g_frag_cfg.avrecord_switch,0);
|
||||
MESA_load_profile_string_def(filename, "SYSTEM", "AVRecordFileRootDir", g_frag_cfg.avrecord_filepath, sizeof(g_frag_cfg.avrecord_filepath),"./AVrecord/");
|
||||
MESA_load_profile_uint_def(filename, "SYSTEM", "AVRecordFileMaxNum", &g_frag_cfg.avrecord_maxnum,100000);
|
||||
mkdir_r(g_frag_cfg.avrecord_filepath);
|
||||
@@ -642,7 +642,7 @@ int read_conf_and_init(const char* filename)
|
||||
/*monitor hash param*/
|
||||
MESA_load_profile_uint_def(filename, "SYSTEM", "MonitorHashSize", &hash_size, 1024*1024);
|
||||
MESA_load_profile_uint_def(filename, "SYSTEM", "MonitorHashElemNum", &hash_max_elem_num, 1024*1024*16);
|
||||
MESA_load_profile_uint_def(filename, "SYSTEM", "MonitorHahsExpireTime", &hash_expire_time, 60*60*12);
|
||||
MESA_load_profile_uint_def(filename, "SYSTEM", "MonitorHahsExpireTime", &hash_expire_time, 60*2);
|
||||
memset(&hash_args,0,sizeof(MESA_htable_create_args_t));
|
||||
hash_args.thread_safe = 1; //group lock
|
||||
hash_args.recursive = 1;
|
||||
|
||||
Reference in New Issue
Block a user