<?xml version="1.0" encoding="GBK"?>
<!--version = "V3.7.1.2"-->
<application name="xfens_[真实IP]">
    <mainsvr stop_sequence="ospf">
        <plugins>
            <plugin lib="fsc_f2log" getinfo="GetLogServiceInfo" load_level="0" note="日志插件">
                <args cfgfile="log.xml" default_level="1"/>
            </plugin>
            <plugin lib="fsc_f2mproxy" getinfo="GetMProxyInfo" load_level="1" note="管理代理"/>
            <plugin lib="fsc_filter_log" getinfo="GetFilterLogInfo" load_level="1" note="过滤服务">
                <args start="n"/>
            </plugin>
            <plugin lib="fsc_f2pack" getinfo="GetPackSvrInfo" load_level="0">
                <args v1_count="600" v2_count="600"/>
            </plugin>
            <plugin lib="fsc_esbmsg" getinfo="GetESBMessageFactoryInfo" load_level="0" note="ESB消息工厂插件">
                <args msgs_pool_number="8" init_msgs_inpool="10000" max_msgs_inapp="16000" max_msgs_inpool="10000"/>
            </plugin>
            <plugin lib="fsc_f2config" getinfo="GetCfgSvrInfo" load_level="0" note="配置服务"/>
            <plugin lib="fsc_f2security" getinfo="GetSecurityInfo" load_level="1" note="安全服务"/>
            <plugin lib="fsc_router" getinfo="GetRouterInfo" load_level="1" note="路由" >
                <args thread_num="8"/>
                <routes>
                    <routetable functionid="8;" branchno="*;" pluginid="mproxy"/>
                    <routetable functionid="338415;338416;" branchno="*;" pluginid="xfens"/>
                    <!--和MC20相关功能号,默认配置认为BAR与MC2的F2打通-->
                    <routetable functionid="6207??;" branchno="*;" nodename="BAR"/>
                </routes>
                <defaultgateway>
                    <item destname="*" gateway="BAR"/>
                </defaultgateway>
            </plugin>
            <plugin lib="fsc_f2ospf" getinfo="GetOSPFInfo" load_level="1" note="OSPF"/>
            <plugin lib="fsc_channel_f2" getinfo="GetF2ChannelInfo" load_level="1" note="f2通道">
                <args port="8920" safetype="0" comm_thread_num="4"/>
                <parents>
                    <parent parentname="BAR"/>
                </parents>
            </plugin>
            <!--t2#0对外提供服务通道，禁止8功能号。forbidadmin=1限制管理功能接入,其他值不限制-->
            <plugin lib="fsc_channel_t2" getinfo="GetT2ChannelInfo" load_level="1" note="T2通道">
                <config>
                    <safe safe_level="none"/>
                    <network protocol="tcp" address="" port="9020"/>
                    <performance thread_count="10" max_connection="10000" init_connection="50" init_recv_buf_size="1024" init_send_buf_size="1024" send_queue_size="10000"/>
                    <limit license_dir="license" register_time="5" heartbeat_time="60" check_ordinal="1" forbidadmin="1"/>
                </config>
            </plugin>
            <!--t2#1内部服务通道,FENS通过t2#1连接到BAR和UFX站点的内部地址-->
            <plugin lib="fsc_channel_t2" getinfo="GetT2ChannelInfo" load_level="1" instance="1" note="T2通道">
                <config>
                    <safe safe_level="none"/>
                    <network protocol="tcp" address="" port="9021"/>
                    <performance thread_count="10" max_connection="10000" init_connection="50" init_recv_buf_size="1024" init_send_buf_size="1024" send_queue_size="10000"/>
                    <limit license_dir="license" register_time="5" heartbeat_time="60" check_ordinal="1"/>
                </config>
            </plugin>
            <!--周边FENS插件配置参数说明:thread_num线程数;qry_frequency定时获取负载频率;max_procmount最大处理笔数;log_level日记级别：0~4,级别越高日志越小;from_now补缺标识,配置0不补缺,其他启用；address_type返回地址类型，配置为1返回内网IP+外网端口，否则返回外网IP+外网端口-->
            <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" address_type="0"/>
            </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>t2#1;router</pipe>
                <pipe>f2;router</pipe>
                <pipe>xfens;router</pipe>
                <pipe>mcapi;router</pipe>
            </plugin>
        </plugins>
    </mainsvr>
</application>