Technical Infrastructure Guide
Technical Infrastructure Guide
Technical Infrastructure
Guide - SAP
NetWeaver™ 2004s
Document Version 2.5 – April 2007
© Copyright 2004 SAP AG. All rights reserved.
No part of this publication may be reproduced or transmitted in any SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and
form or for any purpose without the express permission of SAP AG. other SAP products and services mentioned herein as well as their
The information contained herein may be changed without prior respective logos are trademarks or registered trademarks of SAP AG
notice. in Germany and in several other countries all over the world. All other
product and service names mentioned are the trademarks of their
Some software products marketed by SAP AG and its distributors respective companies. Data contained in this document serves
contain proprietary software components of other software vendors. informational purposes only. National product specifications may
vary.
Microsoft, Windows, Outlook, and PowerPoint are registered
trademarks of Microsoft Corporation. These materials are subject to change without notice. These materials
are provided by SAP AG and its affiliated companies ("SAP Group")
IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex, for informational purposes only, without representation or warranty of
MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries, pSeries, any kind, and SAP Group shall not be liable for errors or
xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere, Netfinity, omissions with respect to the materials. The only warranties for SAP
Tivoli, and Informix are trademarks or registered trademarks of IBM Group products and services are those that are set forth in the express
Corporation in the United States and/or other countries. warranty statements accompanying such products and services, if any.
Nothing herein should be construed as constituting an additional
Oracle is a registered trademark of Oracle Corporation. warranty.
HTML, XML, XHTML and W3C are trademarks or registered Any Java™ Source Code delivered with this product is only to be used
®
trademarks of W3C , World Wide Web Consortium, Massachusetts by SAP’s Support Services and may not be modified or altered in any
Institute of Technology. way.
1. Subject Matter of the Agreement Permission to use, copy, modify, distribute and sell this
a. SAP grants Customer a non-exclusive, non-transferable, software and its documentation for any purpose is
royalty-free license to use the STLport.org C++ library hereby granted without fee, provided that the above
(STLport) and its documentation without fee. copyright notice appear in all copies and that both that
b. By downloading, using, or copying STLport or any portion copyright notice and this permission notice appear in
thereof Customer agrees to abide by the intellectual property supporting documentation. Silicon Graphics makes no
laws, and to all of the terms and conditions of this representations about the suitability of this software for
Agreement. any purpose. It is provided "as is" without express or
c. The Customer may distribute binaries compiled with implied warranty.
STLport (whether original or modified) without any
royalties or restrictions. Permission to use, copy, modify, distribute and sell this
d. Customer shall maintain the following copyright and software and its documentation for any purpose is
permission notices on STLport sources and its hereby granted without fee, provided that the above
documentation unchanged: copyright notice appear in all copies and that both that
Copyright 2001 SAP AG copyright notice and this permission notice appear in
supporting documentation. Moscow Center for SPARC
Technology makes no representations about the 3. Exclusion of warranty
suitability of this software for any purpose. It is As the STLport is transferred to the Customer on a loan basis and
provided "as is" without express or implied warranty. free of charge, SAP cannot guarantee that the STLport is error-
free, without material defects or suitable for a specific application
Boris Fomitchev makes no representations about the under third-party rights. Technical data, sales brochures,
suitability of this software for any purpose. This advertising text and quality descriptions produced by SAP do not
material is provided "as is", with absolutely no indicate any assurance of particular attributes.
warranty expressed or implied. Any use is at your own 4. Limited Liability
risk. Permission to use or copy this software for any a. Irrespective of the legal reasons, SAP shall only be liable for
purpose is hereby granted without fee, provided the damage, including unauthorized operation, if this (i) can be
above notices are retained on all copies. Permission to compensated under the Product Liability Act or (ii) if caused
modify the code and to distribute modified code is due to gross negligence or intent by SAP or (iii) if based on
granted, provided the above notices are retained, and a the failure of a guaranteed attribute.
notice that the code was modified is included with the b. If SAP is liable for gross negligence or intent caused by
above copyright notice. employees who are neither agents or managerial employees
of SAP, the total liability for such damage and a maximum
Permission to use, copy, modify, distribute and sell this limit on the scope of any such damage shall depend on the
software and its documentation for any purpose is extent to which its occurrence ought to have anticipated by
hereby granted without fee, provided that the above SAP when concluding the contract, due to the circumstances
copyright notice appear in all copies and that both that known to it at that point in time representing a typical
copyright notice and this permission notice appear in transfer of the software.
supporting documentation. SAP makes no c. In the case of Art. 4.2 above, SAP shall not be liable for
representations about the suitability of this software for indirect damage, consequential damage caused by a defect or
any purpose. It is provided with a limited warranty and lost profit.
liability as set forth in the License Agreement d. SAP and the Customer agree that the typical foreseeable
distributed with this copy. SAP offers this liability and extent of damage shall under no circumstances exceed EUR
warranty obligations only towards its customers and 5,000.
only referring to its modifications. e. The Customer shall take adequate measures for the
protection of data and programs, in particular by making
2. Support and Maintenance backup copies at the minimum intervals recommended by
SAP does not provide software maintenance for the STLport. SAP. SAP shall not be liable for the loss of data and its
Software maintenance of the STLport therefore shall be not recovery, notwithstanding the other limitations of the present
included. Art. 4 if this loss could have been avoided by observing this
All other services shall be charged according to the rates for obligation.
services quoted in the SAP List of Prices and Conditions and f. The exclusion or the limitation of claims in accordance with
shall be subject to a separate contract. the present Art. 4 includes claims against employees or
agents of SAP.
Typographic Conventions Icons
Make sure you have the latest version of the technical infrastructure guide by
checking SAP Service Marketplace immediately.
1 Introduction
The Technical Infrastructure Guide describes how you can distribute the SAP NetWeaver
building blocks on physical hosts, to provide stability, performance and scalability for
productive systems.
This guide covers the following topics:
• Outline of all hosts that are necessary to run the SAP NetWeaver usage types for a
productive system
• The assignment of installable software units to the hosts
• Web infrastructure
April 2007 1
Introduction
1.3 Prerequisites
You have to know which installable software units and standalone engines you need and how
your system landscape will look like.
For more information, see the Master Guide - SAP NetWeaver, available on SAP Service
Marketplace at service.sap.com/installnw2004s.
March 2007 2
SAP System Architecture
April 2007 3
SAP System Architecture
When you add a dialog instance, it belongs to the software cluster. The central instance
initiates an update of the dialog instance so the dialog instance has access to the deployed
applications on that cluster (this also includes usage types such as EP or PI).
A cluster always needs a load balancing solution, for example, SAP Web dispatcher.
2.5 Topology
This section introduces some basic topologies for an SAP system. A topology is a schematic
description of the layout of a system or network. In terms of an SAP system, the topology
describes the arrangement of an application server as a cluster with one or more physical
machines.
The topology of an SAP system also addresses scalability, performance, availability,
maintainability, and security.
March 2007 4
SAP System Architecture
You can set up vertical scaling whenever required as it does not need any special
installation steps.
Application Server
Machine 1
Dialog
HTTP Dialog
Central Instance DialogInstance
Requests Instance Database
Instance
Central Services
• Horizontal scaling is another clustering technique that separates the dialog instances
across multiple physical machines. This configuration provides failover support and
so ensures high availability of the application server processes. The disadvantages
of this strategy are the increased installation and maintenance effort and also the
cost of additional machines.
Application Server
Machine 1 Machine 3
Machine 2 Machine 4
HTTP Central Instance Dialog
Requests Database
Instance
Central Services
April 2007 5
SAP System Architecture
March 2007 6
High Availability Support for Failover Clustering (HA)
April 2007 7
High Availability Support for Failover Clustering (HA)
Design the switchover cluster together with your hardware partner. The switchover product
has to match your operating system.
We strongly recommend that all the hosts used for switchover have the same
operating system.
Assuming that central services instance is running under the operating system
Microsoft Windows and the DB on a UNIX platform, the central services
instance can only switch to another Windows host and the DB to another UNIX
host.
March 2007 8
High Availability Support for Failover Clustering (HA)
The figure above shows several switchover units spanning several hardware
clusters. This is not a required setup. There are many possible switchover
scenarios and it is possible to run a switchover environment for SAP systems
with the minimal configuration of two different hosts.
The saposcol process must run on the DB host to enable CCMS functions.
For more information, see SAP Note 20624
• File system
Several directories in a SAP system are shared among all instances. Protecting files
systems is handled by the cluster software solution provider.
April 2007 9
High Availability Support for Failover Clustering (HA)
March 2007 10
High Availability Support for Failover Clustering (HA)
System Impact
The switchover of the central services instance has the following impact on your system:
• Transaction locks that have not yet been committed are lost at a system-wide level.
• All user input for all transactions that have not been finished with the ABAP command
COMMIT WORK needs to be re-entered.
• RFC connections are maintained.
In the case of a planned central services switchover, you need to notify the users and
give them a deadline to commit all their transactions.
To eliminate the enqueue server as a critical component you have to set up the
enqueue server as standalone replicated enqueue server.
April 2007 11
High Availability Support for Failover Clustering (HA)
However, if an instance is (re-)started without being able to access the database, the
instance stops. There is no reconnect at startup time. The same applies to the restarted work
process in usage type AS ABAP: if the initial connect fails, the work process is stopped and is
not restarted.
DB Reconnect – AS ABAP
In the event of a database host failure, the network connection of SAP work processes to the
DBMS is lost. If a work process encounters an error in the database connection, the built-in
“DB Reconnect” mechanism starts, and tries to re-establish the database connection.
The DB reconnect feature makes sure that all work processes of all SAP instances are
automatically reconnected to the DB as soon as the DB service is restarted and becomes
available again. The work processes can transparently recover after temporary DB failure.
To the end user, the temporary DBMS failure is almost fully transparent, apart from the time
taken for the DB service to be switched over and become operational again. The functionality
depends on the type of access service involved – that is, dialog, batch, or update.
For more information about the database reconnect feature for ABAP, see
help.sap.com/nw2004sÆ SAP NetWeaver 2004s Æ English Æ SAP Library Æ SAP
NetWeaver Library Æ SAP NetWeaver by Key CapabilitiesÆ Solution Lifecycle Management
by Key Capabilities Æ SAP High Availability Æ SAP NetWeaver AS ABAP: High AvailabilityÆ
DB Reconnect (AS-ABAP)
Technical Details
The DB reconnect features avoid all work processes being shut down and therefore the SAP
instances do not have to be restarted.
If pre-defined errors are returned from the database call to a work process, this process is set
to “reconnect” status. The transaction run by the process is terminated while the process
keeps running and informs all other work processes (regardless of the type) on the host
about the database restart. If the database is not available, all work processes switch to this
status within a short period of time.
Whenever a user request is received, a work process in this status tries to reconnect to the
database system before it starts the requested transaction. If the database is accessible
again, a work process in the reconnect state lets the transaction start without terminating.
This is transparent to the user. If the database connection cannot be re-established, the
transaction does not start and the user is informed by a popup message about the lost
database connection.
For more information, see SAP Note 98051.
DB Reconnect – AS Java
The DB reconnect has to be handled by the application. Depending on the programming
model used for database access in your applications, SAP Web AS Java provides the
following reconnect mechanisms:
• Connections using OpenSQL and NativeSQL with Java Database Connectivity
(JDBC)
• Connections using VendorSQL with direct JDBC connection
For more details on the database reconnect feature for Java, see
help.sap.com/nw2004sÆ SAP NetWeaver 2004s Æ English Æ SAP Library Æ SAP
NetWeaver Library Æ SAP NetWeaver by Key CapabilitiesÆ Solution Lifecycle Management
by Key Capabilities Æ SAP High Availability Æ SAP Web AS Java: High Availability Æ
System Failure (AS Java) Æ Persistence Layer and Databases.
March 2007 12
High Availability Support for Failover Clustering (HA)
April 2007 13
Installable Software Units
For more information about usage types, see the SAP NetWeaver Master Guide
on SAP Service Marketplace at service.sap.com/installnw2004s
March 2007 14
Installable Software Units
Central System
In a central system, the database instance is placed on the same host as the ABAP central
instance.
High Availability
Critical Components
Switchover Scenario
The following sections deal exclusively with host failure and switchover of the DB and SAP
central services instances. NFS is not included in the examples because we consider it to be
part of the operating system, which is handled externally by the switchover product.
The switchover of AS ABAP dialog instances is not included in the SAP NetWeaver
switchover scenarios for the following reasons:
• We strongly recommend that you configure the dialog instances that are critically
important to your business on several SAP NetWeaver hosts to increase failure
resilience. This ensures that a single SAP instance does not contain dialog instances
that are critical system-wide components. Therefore, dialog instances do not
necessarily need to be part of the switchover cluster.
April 2007 15
Installable Software Units
• If you need to centralize a particular work process – that is, batch, update, spool, or
gateway – on one dedicated host, which in effect introduces another system-wide
critical component, configure it as part of the ABAP central services instance on the
switchover cluster. This means that the switchover for ABAP central services
instance then also applies to this work process.
Database instance and ABAP central services instance, each in its own switchover
group, ABAP central instance outside
Scalability
As a general rule, when all work processes are active most of the time you can add additional
work processes while the host still has enough memory and CPU resources available. The
number of work processes has to be in accordance with the requirements for the dispatcher
to work efficiently.
An additional dialog instance is necessary when all work processes are active most of the
time and the host cannot bear additional work processes.
March 2007 16
Installable Software Units
Central System
In a central system, the database instance is placed on the same host as the Java central
instance and the Java central services instance.
High Availability
Critical Components
April 2007 17
Installable Software Units
Switchover Scenarios
The following sections deal exclusively with host failure and switchover of the DB and Java
central services instances of the AS Java. NFS is not included in the examples because we
consider it to be part of the operating system, which is handled externally by the switchover
product.
The switchover of application server services is not included in AS Java switchover scenarios
because services that are of critical importance to your business on several NetWeaver hosts
are redundantly configured by default. This makes sure that a single SAP instance does not
contain services that are critical system-wide components. Therefore, SAP instances do not
necessarily need to be part of the switchover cluster.
A Java dialog instance is connected with the database using the enqueue server.
When running a server instance only on the idle host and using the switchover software to
shut down the running server instance before switching, you can take advantage of the
resources from both hosts.
Database Instance and Java Central Services instance and Java central services
instance Each in its Own Switchover Group, Java Central Instance Inside
March 2007 18
Installable Software Units
For systems with a high load, the database instance and the Java central services instances
should be distributed to different hosts. If you want to reduce the number of idle hosts, you
could run this environment on three hosts, by running only one computer in idle state. When
a switchover occurs, the database or the Java central services instance switches to the
computer that is currently idle.
Scalability
The default number of application threads for AS Java is 40. As a general rule, when all
threads are active most of the time you can add additional server processes while the host
still has enough memory and CPU resources available.
Adding a dialog instance is necessary when all server processes are active most of the time
and the host cannot bear additional server processes.
4.1.3 Application Server Java (AS Java) and Application Server ABAP
(AS ABAP) as an ABAP+Java System
This system variant consists of AS ABAP and AS Java (ABAP+Java system). This means,
that the ABAP central instance is enhanced by a Java stack on the same host.
You can install an ABAP+Java system in one installation run (new system), or you can
enhance an already existing AS ABAP system with a Java Add-In.
Mandatory instances of an ABAP+Java system are:
• Central instance
• Java central services instance
• Database instance
The AS ABAP part communicates with AS Java using standard RFC calls.
April 2007 19
Installable Software Units
MSG
Server
(ABAP)
Central System
In a central system, the database instance is placed on the same host as the Add-In central
instance of the ABAP+Java system.
March 2007 20
Installable Software Units
High Availability
The critical components of this scenario include the critical components for AS Java and AS
ABAP.
Database Instance and ABAP/Java Central Services Instance, Each in Its Own Switch-
over Group, Add-In Central Instance Outside
In this scenario, the database instance and central services instances are each in their own
switchover group. This variation keeps the Add-In central instance outside of the hardware
cluster, thus only running necessary parts for switchover in such an environment.
Scalability
The recommendation for an Add-in is to have an AS ABAP and an AS Java Add-in on it.
However, it is possible to add an Add-In DI that only contains AS ABAP in case the
NetWeaver system needs more AS ABAP resources.
A load balancer is needed whenever HTPP/HTTPS requests have to be processed.
April 2007 21
Installable Software Units
March 2007 22
Installable Software Units
Enterprise Portal inherits the high availability from AS Java and scales with AS Java.
PI All-in-One
AS-Java Runtime
Workbench
AS-ABAP
Integration Engine
Directory
Mapping Runtime
All ABAP parts of the Process Integration system run on the central instance of AS ABAP.
The AS Java components are also installed together in one AS Java instance. AS ABAP and
AS Java can be secured as one unit. For scalability reasons, additional dialog instances for
AS ABAP and AS Java can be added on different hosts.
Start with the all-in-one scenario and securing all components of the all-in-one installation
together by using switchover software. Thus, there are no additional actions required to
consider the communication between those components when a switchover is initiated.
April 2007 23
Installable Software Units
Using the all-in-one scenario as your starting point reduces the post-installation
tasks for enabling switchover to a reasonable number and it keeps the
administration of the server cluster as simple as possible.
High Availability
The figure below shows the major PI building blocks. The critical components are marked in
gray.
ABAP-SCS Java-SCS
MSG ENQ MSG ENQ Instance
Instance
Mapping Runtime
Integration Server
Adapter Engine
SLD
Integration
Directory
Critical Components
PI Component or Service Number of Configurable System-Wide
Units SPOF
AS Java/AS ABAP 1 … n (*)
Enqueue Service X
Message Service X
NFS X
DBMS X
SLD 1…m
Integration Repository Running on AS Java
1 for each AS Java/AS
ABAP (*)
Integration Directory Running on AS Java
1 for each AS Java/AS
March 2007 24
Installable Software Units
ABAP (*)
Integration Server 1 for each AS Java/AS
ABAP (*)
Central Adapter Engine
Integration Engine Running on AS Java
Business Process Engine Running on AS ABAP
Running on AS ABAP
(*) High availability is inherited from usage type AS Java and AS ABAP. For more information
about critical components, see usage type AS Java and AS ABAP.
Adapters
Adapters may play crucial roles for PI. Adapters are required in communication involving
systems where PI middleware is not built in. It is important to note, however, that the scope of
adapters as critical components is restricted to specific scenarios only. In general, one failing
adapter will not affect the entire PI based landscape like an Integration Server failure.
For example, consider PI-based communication between two legacy SAP systems, which are
accessed by using the RFC adapter at runtime. In this case, the RFC adapter is a critical
component for any mission-critical RFC communication scenario between those two systems.
However, IDoc-based communication with the same application systems (using the IDoc
adapter) is not affected by the runtime availability of the RFC adapter. A failing RFC adapter
of course will not affect independent scenarios running across the Integration Server.
Integration Server
(optional) Framework
Messaging (optional) Adapter Engines
Queuing (optional)
Adapter
Adapter Msg. Security
File/
File/JDBC/ File/JDBC/ File/JDBC/
JDBC/ RFC
JMS, ... JMS/RFC, ... JMS/RFC, ...
JMS/ RFC
Soap
April 2007 25
Installable Software Units
Critical Components
Application Systems
When analyzing the high availability of the entire application landscape, it is helpful to see
application systems as independent systems. The result is:
• An application system as such is a critical component
• Critical components inside an application system must be secured (for example, with
switchover software)
• Resilience to failures in application systems must be discussed
Even if PI is set up in a failure-resilient way with optimized availability, this has no impact
whatsoever on how resilient to failures a sender or receiver system will be. A mission-critical
application scenario needs high availability along the complete communication path.
Application systems can be optimized in their availability by proper configuration and by
implementing switchover software (similar to the Integration Server). For non-SAP systems,
see the documentation of the specific product. For the case of other SAP usage types see
the according sections in this document.
Scalability
Process Integration scales with AS Java and AS ABAP.
Normal Process Integration message traffic enters the Integration Server using the HTTP
protocol. However, if the IDoc adapter is used, message data enters the Integration Server by
using the standard RFC protocol.
Load balancing is also available for the RFC protocol. The AS Java and AS ABAP message
server is used as the call dispatcher. RFC load balancing offers two major benefits for the PI
system:
March 2007 26
Installable Software Units
• Improved scalability
Calls are parallelized and forwarded to several different AS Java and AS ABAP
instances.
• Improved availability
Any AS Java and AS ABAP of the Integration Server can be the target of the incoming
call. Therefore, it is not necessary that a specific AS Java and AS ABAP instance is
working.
With RFC load balancing activated, the sudden failure of one AS Java and AS ABAP will not
affect the accessibility of the PI system by IDocs.
RFC load balancing can also be used with the RFC adapter of an Adapter Engine. The
adapter then registers several threads at the SAP Gateway of an RFC client system. The
client system can then make use of load balancing by means of multiple SAP Gateway
registration.
April 2007 27
Installable Software Units
A full definition list of the standalone engines is available in the Master Guide on
SAP Service Marketplace at service.sap.com/installnw2004s.
High Availability
As a result of the independence of the standalone engines they have to be analyzed in detail
for the occurrence of a potential single point of failure that is introduced through it. Because
such engines are not running on top of any Java or ABAP servers, they cannot profit from
their redundancy.
In consequence this may result in the need of a switchover group for such standalone engine.
March 2007 28
Installable Software Units
SES
(Search Engine Serv ice)
HTTP/HTTP S
Web Server
RFC Server
TRE X extension
Possible
communication
TCP/IP
paths
Index Server Name
Queue Server TRE X
TRE X engines Server
components
April 2007 29
Installable Software Units
RFC Server
The RFC server is responsible for the communication between an SAP system and the TREX
servers. The SAP system sends requests to an RFC server using an SAP Gateway. The
RFC server converts the requests to a TREX-internal format and then forwards them to the
responsible TREX servers.
Queue server
The queue server coordinates the processing steps that take place during indexing. It collects
incoming documents, triggers preprocessing by the preprocessor and further processing by
the index server. The queue server allows documents to be indexed asynchronously. This
has the advantage that you can control the time of indexing. For example, you can schedule
indexing for times when the system load is lower because there are fewer search queries.
Preprocessor
The preprocessor prepares documents and search queries.
Document preprocessing comprises the following steps:
• Loading documents
If the application transmits the documents as Uniform Resource Identifiers (URI) rather
than directly, TREX resolves the URIs. This involves fetching the documents from the
repository that the URIs reference.
• Filtering documents
Documents can exist in various formats, such as Microsoft Word, Microsoft
PowerPoint, PDF, and others. The preprocessor extracts textual content from the
documents and then converts it into the UTF-8 Unicode format for further processing.
• Analyzing documents linguistically
Linguistic analysis involves splitting text into individual words and reducing words to
base forms (stems). The preprocessor uses a lexicon that exists in several languages
for this.
During search queries, the preprocessor performs a linguistic analysis. It transmits the results
of the analysis to the index server, which continues the processing of the document.
March 2007 30
Installable Software Units
Index Server
The index server is responsible for indexing, classifying, and searching. It receives requests
and forwards them to the TREX engines. The engines provide the actual core functions of
TREX such as:
• The search engine is responsible for standard search functions such as exact, error-
tolerant, linguistic, Boolean, and phrase searches.
• The text-mining engine is responsible for classification, searching for similar
documents (‘See Also’), the extraction of key words, and so on.
• The attribute engine is responsible for searching in document properties, such as
author, creation date, change date, and so on.
Name Server
The name server manages information in the entire TREX system. It makes sure that the
TREX servers can communicate with each other and that they receive all necessary
information. The name server has the following tasks:
• Managing topology data
The topology data includes information on the central components of a TREX system
(TREX servers, indexes, and queues).
• Coordinating replication services
The replication services are only relevant for a distributed TREX system. The name
server has information about which TREX server has a particular data status. It
makes sure that changed data is replicated.
• Load balancing
The name server accepts requests and distributes them to the responsible TREX
servers. It is responsible for distributing indexes and search queries
• Ensuring high availability
The name server launches several watch dogs. They constantly monitor whether the
TREX servers are available. If a TREX is not available, the name server ensures that
the TREX server that is down does not receive any requests.
BI Accelerator (BIA)
The BI accelerator (BIA) allows you to improve the performance of BI queries. The BI
accelerator is based on TREX technology. To use the BI accelerator you need a TREX
installation based on 64-bit architecture. Hardware partners deliver this variant in a
preconfigured form on a blade system as the BI accelerator box. For more information, see
Installation Guide – SAP NetWeaver 2004s Search and Classification (TREX) Multiple
Hosts on SAP Service Marketplace at service.sap.com/installnw2004s.
April 2007 31
Installable Software Units
Single-Host System
A minimal TREX system consists of a single host that provides all TREX functions (indexing,
classification, and searching). You can use a minimal system as a demo and test system, or
as a production system. For a production system, SAP recommends that you install TREX on
a dedicated host that is used exclusively for TREX.
HTTP or RFC
Multiple-Host System
You have numerous options for scaling TREX. You use a scaled scenario to distribute the
search and indexing load between several hosts and to ensure the availability of TREX. In a
multiple-host system, the individual hosts are responsible for different tasks depending on
which TREX components run on them. For example, you can set up dedicated search
servers with copies of the original indexes and configure automatic index replication to keep
the copies up-to-date.
Master Slaves
RFC WS
RFC WS
M NS PP
S NS PP
M QS File Server
S IS
M IS
Backup
T
RFC WS
Q Q Q
Q QQ MI MI
M NS PP
B QS
B IS Q
Master Q SI SI Slaves
SN SNQSI
RFC WS RFC WS
M NS PP S NS PP
M QS S IS
M IS
March 2007 32
Installable Software Units
4.2.2 liveCache
liveCache is SAP's memory-resident object management technology that enables higher
levels of performance in business processing for mySAP Supply Chain Management (SCM)
and Workforce Deployment (WFD) Server.
High Availability
liveCache has the following high availability options:
• Failover Cluster
A failover cluster consists of a primary and a backup instance on different hosts, both
of which access shared data and logs. In the event of failure, switchover software
switches from the primary to the backup instance so that processing can continue as
normal.
Advantages:
o Rapid and automatic switchover
o Supported by SAP for Windows with Microsoft Cluster Service (but not until
SAP NetWeaver 2004s SR1) or platform partners for UNIX
April 2007 33
Installable Software Units
• Standby Database
A standby database is a copy of the primary database. Log shipping keeps the
standby database up-to-date by regularly importing the log backups from the primary
instance.
If you experience problems with the primary database, you can start operating the
standby database immediately, and continue working without significant downtime.
Advantages:
o No storage system is needed. Therefore standby databases can run in a less
expensive hardware environment.
o Depending on the configuration, you can restore the standby instance to the
status it had at a previous point in time.
• Hot Standby
A hot standby system consists of a master component and one or more standby
components. The hot standby system behaves externally like any normal database
instance. The standby components must run on separate hosts.
Hot standby often uses switchover software to transfer control to the standby
instance.
Advantages:
o Rapid and automatic switchover
o Processing can resume without loss of data
You must always mirror the log areas of the database for all instances. For more information,
see the NW04s installation documentation at service.sap.com/installnw2004s
Scalability
liveCache runs on a single host.
High Availability
See liveCache.
Scalability
Content server runs on a single host.
March 2007 34
Installable Software Units
High Availability
The Process Server can be protected by switchover in a cluster. The Process Server is
switched completely.
Scalability
The Job Scheduler can be scaled by adding Process Servers, running on different hosts.
However, the Job Scheduler license provided by SAP NetWeaver allows the operation on
one host only. An additional license is necessary to add Process Servers.
For more information, see SAP Service Marketplace at service.sap.com/job-
scheduling.
4.2.5 Gateway
AS ABAP can be installed as a standalone gateway. The standalone gateway has no work
process types (dialog, background, update, enqueue, or spool); only the gateway process
(gwrd) is started.
The standalone gateway is also needed on the SLD host to enable the SLD to receive RFC
calls from ABAP data suppliers.
For more information, see usage type AS ABAP.
April 2007 35
Web Infrastructure
5 Web Infrastructure
In order to run an application in a stable manner, with high performance, security and low
costs, the technical infrastructure must support the application in an optimal way. The
infrastructure has a very broad range, from computer hardware, operating systems, storage
devices, high availability solutions to networks, load balancing devices, firewalls and so on.
The Web infrastructure is a crucial part of the technical infrastructure. It consists of every
piece of equipment needed to convey HTTP(S) requests between the browser and server.
The Web infrastructure plays a meaningful role in the stability, performance, and cost of
ownership of a business solution.
This section outlines the technical considerations and load balancing solution approaches for
building a business-ready Web infrastructure for SAP NetWeaver.
For more information about security, refer to the security guide on SAP Help Portal at
help.sap.com/nw2004s → SAP NetWeaver 2004s → English → SAP Library → SAP
NetWeaver → Security → SAP NetWeaver Security Guide
March 2007 36
Web Infrastructure
Message
Server
Central
Instance RDBMS
SAP
Web
Dispatcher
http://web.acme.com
Dialog
Instance
Dialog
Instance
The SAP Web dispatcher is located between the Web client (browser) and your SAP system
that is running the Web application. It forwards the incoming requests to the AS Java and AS
ABAP of the SAP system. The Web dispatcher is a load balancing solution that retrieves
system administration and configuration from the message server.
April 2007 37
Web Infrastructure
March 2007 38
Web Infrastructure
Internet
Firewall
Firewall
SAP Web Corporate
Dispatcher Network
SAP Web
AS-Java
AS-ABAP
AS
If only the SAP Web dispatcher work process is stopped, the watchdog starts
this process again.
April 2007 39
Web Infrastructure
• File system with the executable and the profile files (these can be also maintained
locally on each cluster node)
• The application
You can check the status of the process using the PID (you can find this in
dev_webdisp or ev_webdisp_watchdog when using automatic restart).
Firewall
Standby
RDBMS
DB Server
Web Application
Dispatcher Servers
Firewall
Web
Dispatcher
RDBMS
Web switch
(3rd party) DB Server
Web Application
Dispatcher Servers
March 2007 40