<?xml  version="1.0" encoding="GBK"?>
<!--***********************************************************************
V3.7.1.1 20170223 周维宾 首次创建FENS标准部署参考模板文件 修改单:M201702130417
*************************************************************************-->
<application name="xfens_localIP">
	<!--进程守护程序,生产环境中建议配置使用-->
	<monsvr>
	    <plugins>
			<plugin lib="fsc_f2daemon" getinfo="GetDaemonServiceInfo" load_level="0" note="守护">
			<exec svr="mainsvr" file="hsserver" args=" -start mainsvr -f 参考_xfens.xml -d ~/workspace -t ar -s 0"/>
			</plugin>
	    </plugins>
	</monsvr>
	<mainsvr stop_sequence="ospf">
		<plugins>
			<!--周边FENS插件配置参数说明:thread_num线程数;qry_frequency定时获取负载频率;max_procmount最大处理笔数;log_level日记级别：0~4,级别越高日志越小;from_now补缺标识,配置0不补缺,其他启用；-->
			<plugin lib="fsc_xfens" getinfo="GetXfensInfo" load_level="1" note="期货FENS组件">
				<args thread_num="-1" qry_frequency="5" max_procmount="100" log_level="2" from_now='1'/>
			</plugin>
			<plugin lib="fsc_channel_t2" getinfo="GetT2ChannelInfo"  load_level="1" note="T2通道">
				<config>
					<safe safe_level="none" t1_data_hash="0" t1_data_encode="0" t1_key_encode="1" t1_key_key="毛银杰喜欢XYZABC" t1_license="HS-HUNDSUN001-FBASE2-0000-4ePWxzscBVtY9ZKdgDKhSyk2"/>
					<ssl cert_file="./cert/server.pem" cert_pwd="2222" />
					<network protocol="tcp" address="" port="8000"/>
					<performance thread_count="8" max_connection="1000" init_connection="1024" init_recv_buf_size="10240" init_send_buf_size="10240" send_queue_size="102400"/>
				 	<limit license_dir="license" register_time="5" heartbeat_time="60" check_ordinal="1"/>
				</config>
			</plugin>
			<plugin lib="fsc_f2log" getinfo="GetLogServiceInfo"  load_level="0" note="日志插件">
			   <args cfgfile="log.xml" default_level="1" />
			</plugin>	
			<plugin lib="fsc_f2config" getinfo="GetCfgSvrInfo" load_level="0" note="配置服务"/>
			<plugin lib="fsc_f2security" getinfo="GetSecurityInfo" load_level="1" note="安全服务"/>
			<plugin lib="fsc_f2mproxy" getinfo="GetMProxyInfo" load_level="1" note="管理代理"/>
			<plugin lib="fsc_esbmsg" getinfo="GetESBMessageFactoryInfo" load_level="1" note="">
			    <args msgs_pool_number="16" init_msgs_inpool="10000" max_msgs_inapp="50000" max_msgs_inpool="50000"/>
            </plugin>
			<plugin lib="fsc_f2pack" getinfo="GetPackSvrInfo" load_level="0">
              <args v1_count="1000" v2_count="1000"/>
            </plugin> 
			<plugin lib="fsc_filter_log" getinfo="GetFilterLogInfo" load_level="1" note="过滤服务">
			     <args start="n"/>
            </plugin>			
			<plugin lib="fsc_router" getinfo="GetRouterInfo" load_level="1" note="路由" >
				<args thread_num="8"/>
				<routes>
					<!--新增如下3条路由项-->
					<routetable functionid="8;" branchno="*;" pluginid="mproxy"/>
					<routetable functionid="338415;338416" branchno="*;" pluginid="xfens"/>
					<routetable functionid="258210;258211;218262;6207??;" branchno="*;" nodename="BAR"/>
				</routes>
				<defaultgateway>
				  <item destname="*" gateway="BAR"/>
				</defaultgateway>
			</plugin>			
			<plugin lib="fsc_f2ospf" getinfo="GetOSPFInfo" load_level="1" note="OSPF">
			</plugin>			
			<plugin lib="fsc_channel_f2" getinfo="GetF2ChannelInfo" load_level="1" note="f2通道">
				<args port="8001" safetype="0" comm_thread_num="2"/>
				<parents>
				    <!--生产上配置上级节点为BAR-->
					<parent parentname="BAR"/>
				</parents>
			</plugin>	
			<!--FENS通过MCAPI向MC2.0订阅消息主题-->
			<plugin lib="mc2_mcapi" getinfo="GetMCApiInfo" load_level="1" note="插件API">
				<args child="0" note="1表示下级消息中心，0表示普通节点，非消息中心节点"/>
			</plugin>			
			<plugin lib="fsc_pipe_mgr" is_inter="1" note="消息流水线配置">
				<pipe>ospf;router</pipe>
				<pipe>mproxy;router</pipe>
				<pipe>t2;router</pipe>
				<pipe>f2;router</pipe>
				<!--FENS加入到流水线-->
				<pipe>xfens;router</pipe>
				<!--MCAPI加到流水线-->
				<pipe>mcapi;router</pipe>
			</plugin>
		</plugins>
	</mainsvr>
</application>
