HW--DSF服务配置文件

集群配置,指定向哪个zookeeper注册服务

<?xml version="1.0" encoding="utf-8"?>
<cluster>
    <!-- 服务器地址
    <connector name="DsfZKClient" url="221.226.48.130:3655/4960 192.168.12.211:6830:2181"
     -->
    <!-- 服务器地址 -->
    <connector name="DsfZKClient" url="192.168.12.211:6830"
        retry-times="5" retry-interval-millisecond="5000" connect-timeout-millisecond="3000" session-timeout-millisecond="300000">
    </connector>

    <nodes name="dsf" connector="DsfZKClient">
        <node path="/dsf" cache="false" />
    </nodes>
</cluster>

服务提供方的配置

############################################
# DSF Core Configuration
############################################
# dsf app name, keep unique in distributed system
dsf.appname=sync-server
# dsf global service timeout in millis
dsf.service.timeout=1000000
# core size for dsf handle service request thread pool
dsf.worker.core.size=8
# max size for dsf handle service request thread pool
dsf.worker.max.size=20
# queue size for dsf handler service request thread pool
dsf.worker.queues=1000
logTraceSwitch=true
############################################
# DSF Fail Policy Configuration
############################################
# dsf request fail policy
dsf.service.failpolicy=failover
############################################
# DSF Fail Over Policy Configuration
############################################
dsf.resend.times=3

# dsf timeout configuraion
dsf.client.request.resend.interval=5
dsf.client.request.resend.times=0

############################################
# DSF Registry Configuration
############################################
dsf.registry.name=zk
dsf.registry.default=zk
############################################
# DSF ZK Registry Configuration
############################################
dsf.registry.zk.type=zookeeper
dsf.registry.zk.connector=DsfZKClient

############################################
# DSF Protocol Configuration
############################################
dsf.protocol.name=dsf
dsf.protocol.default=dsf

############################################
#dsf statistics center switch
#default: false
############################################
dsf.statistics.switch=false
############################################
# DSF TCP Protocol Configuration
############################################
# dsf tcp protocol type
dsf.protocol.tcp.type=dsf
# dsf tcp protocol listen address
dsf.protocol.tcp.address=10.211.95.145:20015
# max size for dsf tcp protocol acceptor thread pool
dsf.protocol.tcp.threads=10
# queue size for dsf tcp protocol acceptor thread pool
dsf.protocol.tcp.accepts=100
# max size for dsf tcp protocol io thread pool
dsf.protocol.tcp.iothreads=20
# queue size for dsf tcp protocol io thread pool
dsf.protocol.tcp.queues=100000
# async request waiting quque size for dsf tcp protocol
dsf.protocol.tcp.async.queues=100000
# determine whether dsf tcp protocol iplimit enabled
dsf.protocol.tcp.iplimit.enable=false
# dsf tcp protocol iplimit whiltelist
#dsf.protocol.tcp.iplimit.whitelist=*
# dsf tcp protocol iplimit blacklist
#dsf.protocol.tcp.iplimit.blacklist=
# dsf tcp protocol heartbeat interval in seconds
dsf.protocol.tcp.heartbeat.interval=5
# dsf tcp protocol heartbeat lost count
dsf.protocol.tcp.heartbeat.lostcount=5
# max size for dsf tcp protocol client io thread pool
dsf.protocol.tcp.client.iothreads=1
# queue size for dsf tcp protocol client io thread pool
dsf.protocol.tcp.client.queues=100000
# dsf tcp protocol client reconnect interval in seconds
dsf.protocol.tcp.client.reconnect.interval=3
# dsf tcp protocol client first connect wait time  in millis
dsf.protocol.tcp.client.connect.firstwait=2000

############################################
# DSF Statistic Configuration
############################################
dsf.statistic.delay.enable=false

############################################
# DSF Monitor Configuration
############################################
# dsf time delay monitor time interval in seconds
dsf.monitor.time.interval=5

############################################
# DSF Default Route Policy
############################################
dsf.router.default=serviceDelayTimeRouter
dsf.router.poll.localpriority=false
############################################
# DSF Default trace switch
############################################
dsf.trace.switch=true
dsf.sampleRate=1

生产者 上传配置

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
    xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:util="http://www.springframework.org/schema/util" xmlns:dsf="http://www.huawei.com/schema/dsf"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
        http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsd
        http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
        http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
        http://www.springframework.org/schema/jee http://www.springframework.org/schema/data/jpa/spring-jee.xsd
        http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd
        http://www.huawei.com/schema/dsf http://www.huawei.com/schema/dsf/spring-dsf.xsd"
    default-lazy-init="false">
    <description>migu-epower server</description>

    <!-- 注册AutowiredAnnotationBeanPostProcessor、CommonAnnotationBeanPostProcessor、PersistenceAnnotationBeanPostProcessor、RequiredAnnotationBeanPostProcessor -->
    <context:annotation-config/>

    <import resource="../spring-common.xml"/>

    <!-- local development环境 -->
    <beans profile="dev">
        <context:property-placeholder ignore-resource-not-found="false" location="classpath:config/dev/config.properties" />

        <!-- Tomcat JDBC连接池 -->
        <bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource"
            destroy-method="close">
            <property name="driverClassName" value="${jdbc.driver}" />
            <property name="url" value="${jdbc.url}" />
            <property name="username" value="${jdbc.username}" />
            <property name="password" value="${jdbc.password}" />
            <property name="defaultAutoCommit" value="false" />
        </bean>
    </beans>
</beans>

消费者 调用配置

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"
    xmlns:util="http://www.springframework.org/schema/util" xmlns:dsf="http://www.huawei.com/schema/dsf"
    xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util.xsd
        http://www.huawei.com/schema/dsf
        http://www.huawei.com/schema/dsf/spring-dsf.xsd">
    <description>migu-epower client</description>

    <!-- 内容中心:实体书查询服务 -->
    <dsf:importer name="epower.api.content.service.PaperBookQueryServiceFacade" interface="com.neusoft.epower.api.content.service.PaperBookQueryServiceFacade"
        service-name="epower.api.content.service.PaperBookQueryServiceFacade" protocol="dsf">
    </dsf:importer>

</beans>
时间: 2024-08-10 07:53:35

HW--DSF服务配置文件的相关文章

LNMP架构应用实战——Nginx服务配置文件介绍

LNMP架构应用实战--Nginx服务配置文件介绍 nginx的配置文件比较简单,但功能相当强大,可以自由灵活的进行相关配置,因此,还是了解下其配置文件的一此信息 1.Nginx服务目录结构介绍 安装完成后,在安装路径下就会有Nginx目录信息 [[email protected] application]# tree nginx nginx +-- client_body_temp +-- conf          #nginx服务配置文件目录 |   +-- fastcgi.conf  

服务配置文件gb2312编码,使用SaltStack管理报错

Salt发布2014.7.0后,及时进行了更新,测试下来,在上一版本正常运行的操作,这一版本却出现报错.公司的好多服务由于历史原因,配置文件延续下来,使用的是gb2312编码,其中还有中文注释.在使用salt进行管理的时候,在Master端会报UnicodeDecodeError错误. 执行配置文件更新,并重启服务操作: salt 'zhaogb-202' state.sls update_conf.manager manager.sls是更新Manager服务配置文件的模板: ma_watch

Linux中Sshd服务配置文件优化版本(/etc/ssh/sshd_config)

Linux中Sshd服务配置文件优化版本(/etc/ssh/sshd_config) # $OpenBSD: sshd_config,v 1.93 2014/01/10 05:59:19 djm Exp $ # If you want to change the port on a SELinux system, you have to tell # SELinux about this change. # semanage port -a -t ssh_port_t -p tcp #PORTN

.net安装windows服务配置文件config

.net安装windows服务 : 在windows服务的项目(WindowsService1)代码文件中有一个app.config 配置文件,可以通过此文件进行时间等的更改而无需重新生成项目:那我们大家都知道,不可能让用户在代码文件中进行修改,难道还要重新生成,给用户的只是一个安装文件包啊!那我么怎么改配置呢?在windows服务的安装文件(SetupDownloadFile)中此配置文件哪去了呢,不要着急啊,windows服务代码开发完毕生成之后,相应的安装文件也生成成功之后,找到此安装文件

Axis2 Web服务配置文件services.xml详解

在Axis1中部署服务时,我们使用service.wsdd文件来配置服务.在Axis2中,不再使用service.wsdd文件来配置服务,改用services.xml了.这两个配置文件的语法是截然不同的. 本文涵盖了services.xml文件的语法和使用说明.在Apache Axis2/Java中,同一个服务包文件既可以用于部署单个服务,也可以部署多个服务.不论以何种方式部署服务,一个有效的服务包文件必须包含services.xml文件.随着我们部署服务的方式不同,services.xml文件

linux ftp服务配置文件详解

安装ftp服务: yum install vsftpd -y vsftpd配置文件----------常用配置项-----------listen=YES:是否以独立运行的方式监听服务listen_address=192.168.4.1:设置监听的 IP 地址listen_port=21:设置监听 FTP 服务的端口号write_enable=YES:是否启用写入权限(影响整个服务器)download_enable=YES:是否允许下载文件userlist_enable=YES:是否启用 use

小程序调用后端接口服务 配置文件详解

前言:为了开发阶段的效率更高,方便项目接口管理,在做web项目时,我们需要把后端提供的接口地址进行配置,这样我们自己在调用时,要方便得多,利己利人.在配置小程序接口地址时,和web的配置大同小异,下面总结几点配置小程序接口地址的思路: 1.所有接口地址,要丢在一个对象里[为了方便下面解释,这里设置一个对象名:config],为什么了,因为要对外暴露,方便外部访问,这样[key:value]方式是最合理的,那就是对象了. 2.真实接口地址,也就是对象键值对的value,要用英文模式下Tab键的上一

mysql启动服务配置文件编写

[email protected]:/home/soft# cat /etc/init.d/mysqld#!/bin/sh# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB# This file is public domain and comes with NO WARRANTY of any kind # MySQL daemon start/stop script. # Usuall

分享知识-快乐自己:微服务配置文件 (整合)

单机版 dubbo 配置: 发布服务: <!-- 发布dubbo服务 --> <!-- 提供方应用信息,用于计算依赖关系 名称可以自拟 --> <dubbo:application name="taotao_manager" /> <!-- 注册中心的地址 192.168.31.209 是自己zookeeper安装机器的ip --> <dubbo:registry protocol="zookeeper" add