集群配置,指定向哪个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.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsdhttp://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsdhttp://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsdhttp://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsdhttp://www.springframework.org/schema/jee http://www.springframework.org/schema/data/jpa/spring-jee.xsdhttp://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsdhttp://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/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/utilhttp://www.springframework.org/schema/util/spring-util.xsdhttp://www.huawei.com/schema/dsfhttp://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>

转载于:https://www.cnblogs.com/wangjubi/p/5730186.html

HW--DSF服务配置文件相关推荐

  1. Linkerd 2.10(Step by Step)—设置服务配置文件

    Linkerd 2.10 系列 快速上手 Linkerd v2.10 Service Mesh 腾讯云 K8S 集群实战 Service Mesh-Linkerd2 & Traefik2 部署 ...

  2. grep -rn搜索服务配置文件信息、log字段信息

    例如需要查看sshd服务的配置文件所在位置 grep -rn "sshd_config" /etc /etc: 表示/etc目录所有文件,也可以是某个文件名 -r 是递归查找 -n ...

  3. 【Linux】循序渐进学运维-服务篇-FTP服务配置文件详解

    大家好,我是互联网老辛,本文是Linux运维-循序渐进学运维-服务篇的第14篇文章 文章目录 前言 ftp配置文件详解 1. 常见默认配置参数 2. 常见参数的含义 配置文件使用举例 1. 创建本地用 ...

  4. Samba服务配置文件中涉及到的配置命令(转)

    Samba服务配置文件中涉及到的配置命令(转) 在下面所列出的,等号后没有内容的是系统没有设置或为空的(本人理解) coding system = # client code page = 936 # ...

  5. linux 修改docker配置文件,dockerfile动态修改服务配置文件(示例代码)

    主要是利用命令envsubst能实现变量的替换并生成新得配置文件以及docker命令行的变量输入等. 本次实验主要是编写flume镜像,并在容器启动(docker run)时动态修改配置文件并启动,并 ...

  6. mysql 8服务配置文件my.ini 不生效_2、mysql的启动选项和配置文件介绍

    mysql服务端可以指定允许同时接入的客户端数量max-connections.客户端与服务器的通信方式.表的默认存储引擎default_storage_engine等等设置项,使得我们可以更加灵活地 ...

  7. Linux-Systemd服务配置文件详解

    [转载] 原文链接 一.开机启动 对于那些支持 Systemd 的软件,安装的时候,会自动在/usr/lib/systemd/system目录添加一个配置文件. 如果你想让该软件开机启动,就执行下面的 ...

  8. NFS服务器主配置文件名,NFS服务配置文件

    NFS服务的安装和测试是比较简单的.那么下面我们就来详细介绍一下NFS服务在Linux系统下的具体安装测试步骤.那么请大家先了解一下有关的配置文件,以及相关的格式. 1)服务端配置文件: /etc/e ...

  9. dhcp服务配置文件/etc/dhcpd.conf详解

    默认的/etc/dhcpd.conf含义如下: ddns-update-style interim; //设置dhcp互动更新模式 ignore client-updates; //忽略客户端更新 s ...

最新文章

  1. N76E003快速上手使用和大坑提示
  2. 思科路由器NAT配置详解(转)
  3. 光纤收发器的原理及应用_光纤收发器的几种常规应用
  4. jBPM4.4 window下启动tomcat
  5. MSSql Server 自定义导出
  6. assertion python_【Python】断言功能Assertion
  7. 虚拟服务器的密码忘记了,忘记虚拟密码
  8. 活着,总有你看不惯的人,也有看不惯你的人.
  9. python3 opencv_python3 opencv3 实现基本的人脸检测、识别功能
  10. c语言基础知识孙小红,基于J2EE的C语言在线学习系统的设计与实现
  11. OpenCV使能CUDA加速
  12. 声纹识别之Alize入门教程(二):GMM-UBM
  13. 实操:(附环摄数据及三维模型)如何利用Smart3D将二维照片转换成三维模型?
  14. 视频编解码发展历程(从AVC到HEVC再到VVC)(二)
  15. 国家集训队论文集 1999-2009 (附99~15论文下载地址)
  16. Mac版OneNote同步报错E000006B ctctv
  17. 海南省软考报名时间成绩查询海南省教育考试院海南省人事考试网报名入口
  18. 决策理论(decision theory)
  19. CobaltStrike之后渗透
  20. 半个月亮爬上来(超级女声总决选)铃声 半个月亮爬上来(超级女声...

热门文章

  1. python word.documents.open报错_Python教程:[43]Word基本操作
  2. java移动拼图游戏模拟
  3. Ubuntu用C/C++在终端打印不同颜色的字体
  4. Oracle官文,明确20c不能用于生产环境
  5. “ 一条路走到黑,不撞南墙不回头”——C++【DFS(深度优先搜索算法)】入门讲解
  6. javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not prep
  7. Leetcode#183. Customers Who Never Order
  8. MySQL中 修改语句使用的关键字是什么_表示修改一个数据库对象的SQL关键字是什么...
  9. 使用ccle下载细胞系IC50数据
  10. Frida调用静态函数和非静态函数