Performance Tuning checks in SAP exchange infrastructure (xi): part-III (transfer)

Source: Internet
Author: User
Tags dedicated server
ArticleDirectory
    •  
    • Tuning business process engine:
    • 1. Tracing:
    • 2. trfc:
    • 3. ccbpm inbound queue processing:
    • A. Classic setting inbound processing with buffering (default ):
    • B. Inbound processing without buffering:
    • Queue assignments for inbound processing:
    • A. One writable able queue:
    • B. multiple queues (random ):
    • C. multiple queues (content-specific ):
    • References:

Part-III of this series will focus on the Business Process Engine (BPE) component of SAP exchange infrastructure as shown in the figure below.

Cross Component Business Process Modelling (ccbpm) within sap exchange infrastructure is mainly focused on modelling messages at the integration layer based upon the message payload data. ccbpm has a design component (J2EE) to Desgin the model in integration respository and a runtime component called Business Process Engine (ABAP) which is similar to sap workflow engine in any SAP application. during runtime BPE communicates with the integration engine while executing the pipeline service steps.

The developer has to carefully analyze and think twice before designing a ccbpm model for any business scenario integration. the correct usage of ccbpm is well known ented at http://help.sap.com. model Design palys a very important role on the performance of the business scenario in the Integration Server. A bad ccbpm design can have various perfromance issues in various runtime components (ie, AE, BPE ). note that every message entering the BPE is duplicated and every message leaving the BPE is also duplicated. also these duplicate messages are persisted to the database with different payload versions.

Tuning business process engine:

Keep in mind that there are no tuning possibilities for persistence, work items creation and the order of work items in BPE. they have to be Taken care at the design phase itself. other areas where tuning is possible in BPE are:

1. Tracing:

Go to transcation: swels and switch the event trace off in the production Integration Server. Check Transaction: swf_trc for an empty trace list.

2. trfc:

By default, the workflow can use all the trfc resources in the system to execute mainly send and transform steps in the process. Other processes like pipeline services can also use the same trfc resources during runtime.

A. in trancastion: smqs, register the workflow desitnation: workflow_local _ <Client #> in order to restrict connections for the BPE. also tune the trfc resources in parallel to this one so that the resource consumption by BPE and trfc is controllable.

B. create a separate RFC server group in transaction: rz12 and assign it to qout (schedout) via transaction: smqs, so that the load created by BPE steps (send, transform) is restricted to the server group. the only limitation is that, the new RFC server group is used for all outbound trfc CILS.

Try to optimize the integration process as much as possible via the design of the interface like, if possible use the transformation step outside the process, split mappings into integrtaion server pipeline process rather than BPE, and make sure to add the resource requirements in quick sizing exercise for ccbpm type scenarios.

3. ccbpm inbound queue processing:

Inbound processing is a runtime component of SAP-XI's ccbpm that links the integration engine to the Business Process Engine. it defines the way how SAP-XI messages are handed over to the receive steps of process instances. the messages can start a new process instance or can be bound to a running process instance using a correlation. you can configure inbound processing to improve the performance and message throughput.

The runtime of the Business Process Engine supports the following delivery modes for inbound processing:

A. Classic setting inbound processing with buffering (default ):

in this setting, a message is assigned to an existing process instance provided it has a matching active correlation. it is independent of whether a corresponding receive step is active or not. if no active receive step is currently available to receive this message, the message is buffered in a separate, process-instance-specific queue. as soon as the corresponding receive step is reached, the system delivers the first message in the queue that it has ed which satisfies the relevant correlation. if multiple messages for one receive step have been buffered they are processed according to the sequence they entered the buffer. if the running process instance provides a corresponding active receive step for an incoming message, the message is delivered directly without any buffering.

The usage of inbound processing with buffering may impact the delivery of messages in the following ways: even if the process instance does not provide a receive step at the present stage of the execution, the message might be buffered and delivered later to the process instance. if a process instance has a long running open correlations, messages might be delivered to the process instance being buffered even though the process instance does not provide any further receive step.

Example Use Cases: interrupting synchronous processing in collect scenarios. Interrupting synchronous processing in Request/response scenarios. Sequential receive steps in a process definition.

B. Inbound processing without buffering:

If buffering is deactivated, the message is taken up by a running process instance, if it fits to the open correlation and only if the process instance provides an open receive step at that stage of the process. the messages are handed over to the running process instance directly. therefore the developer has to ensure that the process instance provides an open receive step for any message dedicated to that instance. if you select this setting, the qrfc entry returns an error when a message is to be delivered for which no receive step is active. the message remains in the qrfc queue and Message Processing for this process type is stopped.

Prerequisites for inbound processing without buffering: The processing sequence in the process definition and the sequence in which the messages for the process instance are delivered must be identical. this sequence must be guaranteed by the quality of service when the message is sent. the processing following a receive step must be executed synchronously until the next receive step.

Example Use Case: keep synchronous processing in collect scenarios. Keep synchronous processing in Request/response scenarios. Use parallel receive steps in a process definition.

Queue assignments for inbound processing:

A. One writable able queue:

Using queue assignment "configurable queue" typically is more about being able to configure and balance the available qrfc resources (e.g. prioritize certain processes) than about performance and throughput. by choosing queue assignment "One writable able queue", the name of the Process type specific queue will be changed to xbpe _ <task>, where <task> represents the runtime object of the integration process service. this queue can then be assigned to a dedicated server providing special processing capabilities (I. e. A high-performance server, a dedicated server for batch processing or specific logon groups ).

Example Use Case: for example of configuration the setting "One writable able queue" can be chosen for all time-critical processes. time-critical processes with overlapping correlations. processes with overlapping correlations provoking big workload on the server.

B. multiple queues (random ):

Queue assignment multiple queues (random) allows to execute processes without correlations in parallel queues in a more controlled way. this way, existing resources can be used more efficiently, if the system is not yet at maximum load (better scalability ). multiple Parallel inbound queues are created randomly neglecting correlation settings. messages start new process instances instead of being correlated to a running instance (even if they belong semantically together according the correlation ). therefore the setting "multiple queues (random)" can only be used in all scenarios that do not require any correlation.

Example Use Cases: async-sync bridges/lookup scenarios. sync-async bridges without response messages (using acknowledgements ). multicasting/split scenarios without response messages (using acknowledgements) Weak correlations in collect scenarios/technical collection of messages

C. multiple queues (content-specific ):

The system determines the name of the queue from the message fields in the correlation container. this guarantees that messages are distributed to the correct process instance using correlations even though parallel queues are used for inbound processing. queue assignment "multiple queues (content-specific)" is also about scalability. if resources (number of work processes response, CPUs) permit this, you can increase throughput by using multiple queues instead of one. there are some prerequisites that your process definition has to fulfill if you want to make use of multiple queues that are determined content-specific:

Active correlations of a process instance must not overlap and must not be nested. the content of a correlation must not change during the life time of a process instance. the correlation has to be selective. otherwise all messages will be processed by a single queue. hence there won't be any performance gain compared to the "One queue" behavior.

Example Use Case: Collect scenarios. Sequential collect scenarios. Processes with sequential correlations. Split scenarios/multicasting with response messages. Sync-async bridges with response messages.

References:

SAP online help documentation.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.