关于SAP和oracle技术资料对于RFC JCO inbound 、outbound 特别说明:

一、ORACLE的资料显示(Integration Adapter for SAP R/3 User's Guide for Oracle WebLogic Server 12c Release (12.2.1.3.0) E84122-01 第11页) :

 inbound :SAP CALL JAVA 

outbound :JAVA CALL SAP

The Adapter for SAP is used for the integration of Oracle products with SAP Enterprise to exchange the real-time data. It is developed in the Oracle JCA framework. It is based on the SAP Java Connector 3.0 (SAP JCo) and is used for the inbound and outbound interaction with SAP using message types RFC/BAPI/IDOC.

▪ Inbound interaction: When an SAP R/3 system triggers an event and the event is listened by an application using Adapter for SAP as a result of which the application receives SAP R/3 data, the interaction is termed as Inbound interaction.
▪ Outbound interaction: When an application uses the Adapter for SAP to invoke an SAP R/3 business object or business operation, the interaction is termed as Outbound interaction.

二、SAP的资料解释(SAP Java Connector):

The SAP Java Connector (SAP JCo) is a development library that enables a Java application to communicate with on-premise SAP systems via SAP's RFC protocol. It combines an easy-to-use API with unprecedented flexibility and performance. The SAP JCo supports both communication directions: inbound Remote Function Calls (Java calls ABAP) as well as outbound Remote Function Calls (ABAP calls Java).

inbound:Java calls SAP

outbound:SAP calls Java

三、前面文章讲过 SAP和外围系统接口有2中方式:

一、inbound  (SAP CALL JAVA 、.net)

二、outbound  (JAVA 、.net  CALL  SAP)

本文重点讲述难度高的 inbound  (SAP CALL JAVA 、.net),这种方式的负载均衡情况。

SAP接口程序把数据传给外围系统,通过语法 CALL FUNCTION 'XXX' DESTINATION 'YYY_GATEWAY'

这个YYY_GATEWAY 是,SAP内部的MessageServer:

当多个外围的服务器连接到SAP后,每一个服务器都会有一个长连接:

比如下图有3个长连接连接到了SAP开发服务器,你可以把三个长连接,理解为三条路。

那么, SAP的MessageServer(GateWay)是怎么控制一个SAP内部的接口输出数据,

走哪一条路到达外围系统呢(负载均衡)?

下面这段说明,来自Oracle SOA中间件:《Oracle® Fusion Middleware Application Adapters Application Adapter for SAP R/3 (SAP JCo 3.0) User's Guide for Oracle WebLogic Server  ,12c Release 1 (12.1.3.0.0) 》

3.5.3 Load Balancing SAP Configuration

In cases where a large amount of traffic on a particular RFC destination is required, increase the thread output size in SAP and increase the thread count and try and keep the ratio of Gateway threads to server threads at the same 1:3 ratio. For example, if the Gateway has 3 active threads for destination "X", on the outbound server channel side, the server thread count is now 9.

In addition to Gateway load balancing, the amount of SAP Gateway threads can be increased. For more information, consult your SAP R/3 system administrator. When more than one Program ID with the same name is registered for one SAP Gateway (using a separate JVM), the Gateway can be enabled for a load balancing scenario, depending on the parameters in the Gateway profile on the SAP R/3 system. It is recommended to consult an SAP R/3 system administrator for more information.

However, the profile is either set to 0 (no load balancing), 1 (lowest counter), or 2 (lowest load). The SAP R/3 system administrator can provide the required information on how to configure your destinations to take advantage of each situation. If load balancing is not enabled and you register multiple server channels with the same Program ID without performing Oracle schema validation, then it is possible to receive IDocs in the wrong channel because there is no routing on the channels or destinations.

SAP官方的说明:

Defines the type of load balancing for registered programs. The following values are permitted:

  • 0 : No load balancing; the first free registered program is used.
  • 1 : The program with the lowest counter is used. Every time a registered program is assigned a request, the counter is increased by one.
  • 2 : The program with the lowest load is used. The load is determined as defined by profile parameter gw/reg_lb_ip.

Default value

1

Dynamic

Yes

gw/reg_lb_default

Default value for the load of a server if its IP address cannot be found in the list.

Default value

20

Dynamic

Yes

gw/reg_lb_ip

Specifies the load value for an IP address or for a range of IP addresses. A host name can be entered in the place of an IP address. The gateway then determines the IP address for the host name. 
When the registered program logs onto the gateway, the IP address is used to determine what the load of the IP address is. The system searches the list in the order specified by the profile parameter. This value is added to the load when this program receives a request. If the IP address is not found, the system uses the value defined by parameter gw/reg_lb_default. This ensures that a strong server is assigned more requests than a weaker server. A server that registers itself with the gateway receives as initial value the highest load of all servers with the same registration ID. If no servers are registered with this ID, or if no requests have been assigned to these servers, the value is 0.

资料都指向了一个参数:gw/reg_lb_level,

我看了一下SAP开发机,这个值是1,应该就是我想要的,有负载均衡的功能。

  • 1 : The program with the lowest counter is used. Every time a registered program is assigned a request, the counter is increased by one.

SAP MessageServer (Gateway)会管理这些通向外围系统的道路,这些道路每用一次,会有一个计数器加1,而发送数据走哪一条路,SAP MessageServer会按lowest counter最少次数的,先用这个原则来实现负载均衡。

PS: 热情满满的打了半天字,CSDN居然发帖丢了。。。。只能勉强写完。

最好的东西留在最后,理解了下面这幅图,你就理解了“SAP发”这种模式的“负载均衡”:

SAP 接口 inbound (SAP CALL JAVA ) 负载均衡说明相关推荐

  1. java负载均衡框架_SpringCloud与Consul集成实现负载均衡功能

    负载均衡(Load Balance,简称LB)是一种服务器或网络设备的集群技术.负载均衡将特定的业务(网络服务.网络流量等)分担给多个服务器或网络设备,从而提高了业务处理能力,保证了业务的高可用性.负 ...

  2. java负载均衡插件_超级负载均衡

    超级负载均衡旨在为解决服务不断扩展.机器不断增多.机器性能差异等问题,以增强系统的稳定性,自动分配请PHP 超级负载均衡旨在为解决服务不断扩展.机器不断增多.机器性能差异等问题,以增强系统的稳定性,自 ...

  3. java负载均衡原理_多种负载均衡算法及其 Java 代码实现

    首先给我们介绍下什么是负载均衡 负载均衡 树立在现有网络结构之上,它供给了一种廉价有用通明的办法扩展 网络设备和 效劳器的带宽.添加 吞吐量.加强网络数据处理才能.进步网络的灵敏性和可用性. 负载均衡 ...

  4. java调用sap接口_(二)通过JAVA调用SAP接口 (增加一二级参数)

    /*** Created by gang.xu01@hand-china.com on 2018/12/4*/ public classMultiFromSAP {/*** description: ...

  5. java 负载均衡_java负载均衡 - 岁月静好I的个人空间 - OSCHINA - 中文开源技术交流社区...

    作用 对系统的高可用,网络压力的缓解,处理能力扩容的重要手段之一. 服务器负载 我们通常所说的负载是指:服务器负载 软硬件负载 服务器负载又分为:软件负载--硬件负载 软件负载:通过在服务器上安装一些 ...

  6. Java实现基于Socket的负载均衡代理服务器(含六种负载均衡算法)

    目录 前言 一.常见负载均衡算法 1.完全轮询算法 2.加权轮询算法 3.完全随机算法 4.加权随机算法 5.余数Hash算法 6.一致性Hash算法 二.代码实现 1.项目结构 2.代码实现 总结 ...

  7. 深度解析dubbo负载均衡之接口

    本文基于dubbo v2.6.x 文章目录 1.负载均衡 2.dubbo负载均衡接口 3. dubbo负载均衡实现 4. AbstractLoadBalance 源码 5. 总结 1.负载均衡 本文我 ...

  8. Spring Clould负载均衡重要组件:Ribbon中重要类的用法

    Ribbon是Spring Cloud Netflix全家桶中负责负载均衡的组件,它是一组类库的集合.通过Ribbon,程序员能在不涉及到具体实现细节的基础上"透明"地用到负载均衡 ...

  9. SpringCloudSpringCloud Alibaba、微服务架构、网站架构演变过程、Nacos、Feign远程调用、Load Balancer负载均衡、Sentinel限流、Hystriy

    什么是微服务? 微服务架构就是将单体的应用程序分成多个应用程序,这多个应用程序就成为微服务,每个微服务运行在自己的进程中,并使用轻量级的机制通信.这些服务围绕业务能力来划分,并通过自动化部署机制来独立 ...

最新文章

  1. signature=0a26d8967069103efeee67346aac0529,Construction of Thinned Gated Single-Assignment Form
  2. title: postGreSQL 插件 timescaleDB 安装使用 date: 2019-02-14 18:02:23
  3. 元宇宙新地王2740万元刷爆纪录!虚拟炒房一周成交6.37亿
  4. windowsserver2008r2可以装什么模拟器_为什么不可以用塑料桶装汽油?答案就在这!...
  5. 终于要考网络架构师了
  6. ThreadPoolExecutor线程池,shutdown和shutdownNow关闭线程池方式对比,以及确保线程池能够彻底关闭的一种方式
  7. go语言for循环中修改临时变量无效
  8. mysql performance tuning_MySQL Performance tuning
  9. F12 界面:请求响应内容 Preview 和 Response 不一致、接口返回数据和 jsp 解析到的内容不一致
  10. wins宝塔安装提示已经有php,centOS安装宝塔提示报错
  11. bootstrap设计登录页面_前端小白如何在10分钟内打造一个爆款Web响应式登录界面?...
  12. Nginx压测性能优化
  13. 24.Linux/Unix 系统编程手册(上) -- 进程的创建
  14. postgresSQL的FDE加密
  15. 物体重心的特点是什么_物体的重心
  16. Scrapy爬虫实践之搜索并获取前程无忧职位信息(基础篇)
  17. linux硬盘对拷 软件,分享|10 个免费的磁盘克隆软件
  18. flink启动命令参数_Flink命令行 - 1.10
  19. 2021日喀则市江孜高考成绩查询,2021西藏重点高中名单及排名
  20. 会话初始协议---SIP协议【详解】

热门文章

  1. python幸运数字判断_Python矩阵的幸运数字
  2. day24_雷神_django项目部署
  3. 最新报告丨深入洞察九大车主 APP,落地汽车行业解决方案及最佳实践
  4. 希腊字母在数学计算中表示的含义
  5. Linux系统中 如何系统排错 二之文件引导阶段(引导文件丢失)!
  6. 【测绘专用】中海达全站仪数据导入南方CASS
  7. 【数仓】离线和实时数据开发-《大数据之路》读书笔记
  8. Vim插件EasyGrep使用简介
  9. 安装setuptools
  10. python怎么更新setuptools_Python打包之setuptools