Partitioning and Range Setup
Partitioning Setup
Follow the steps below to set up the partitioning:
-
On the Modeling Environment screen, choose the Environment button located in the screen header buttons section. The system opens the Environment Details section on the right-hand side of the screen.
-
Go to the Partitioning tab and choose the Edit button located in the upper right corner of the screen, then choose Add.
-
Define the following parameters in the Add Details window that appears:
-
Partitioning: Enter an alphanumeric ID that is assigned to the partitioning
-
Description: Enter a description to name the partitioning
-
Run Mode: The run mode defines the system's behavior when a run for a function is triggered, or when a Model BW or Model Table with source environment is activated. The default run mode is specified in the partitioning setup.
The following settings are available to determine the run mode:
- Parallel (P) or Sequential (S):
- “Parallel” means that the control returns immediately to the caller and does not wait for the function execution to be finished. The success of the execution is noted in the application log.
- “Sequential” means that the control returns to the caller only after the function execution is finished.
- Packaged (P) or Unpackaged (U):
- “Packaged” means that the ranges of the partitioning are used to trigger multiple instances of the function executions, each of them restricted to the field value defined in the range.
- “Unpackaged” means that one instance of the function execution is triggered without restriction to a range field value.
- Batch (B), Dialog (D) or Process like Caller (X):
- “Batch” means that a new background job is opened, the execution of the function is submitted to this background job and the job definition is closed afterwards.
- “Dialog” means that a new task is opened in dialog mode, where the execution of the function is triggered.
- “Process Like Caller” means that the execution of the function is triggered directly in the process of the caller (which can be either in dialog or background mode)
- Partitioned (P):
- “Partitioned” means that the environment managed Model Table or Model BW is activated in such a way that the partitioning range information is applied on the database. This is especially helpful in scale-out environments.
- Parallel (P) or Sequential (S):
-
Field: Target field that is used as a partition key. You can set up the partition key in two steps:
- Register a field on the Partitioning tab within the environment. This field must be available in the input data being processed, which is then suitable for the logical separation of datasets into independent parts.
- Enter separate values for each partition to identify and select the data in the partition.
-
Range Setup
-
Choose the Add button located in the Range section.
-
Define the following parameters in the Add Details window that appears:
-
Range: Enter an alphanumeric ID to which each package partition relates.
-
Level: This is used to control the number of packages to be executed in parallel or in sequence.
- Application Server Destination: The name of the application server host, only applicable for the run modes “PPDP” (Parallel, Packaged, Dialog-Process, Partition) and “PPD” (Parallel, Packaged, Dialog-Process).
Follow the steps below to configure the application server destination:
-
Enter transaction code SM51 to get the destination name of the application server instance in the Host column.
-
Enter a value in the Application Server Destination field using the format XXXXXXXX_SYS_IN:
- XXXXXXXX = Host name obtained from SM51
- SYS = System name
- IN = Instance
-
When you trigger the run, you can see in transaction SM50 which packages are being run in the specified application server instances, where the Application Server Instance reflects the name that you assigned in the Application Server Destination.
-
- Volume ID: In a scale-out system, the routing of a packaged procedure execution is usually handled implicitly by the SAP HANA database. That means, it decides which of the multiple hosts is used to execute the procedure.
In some cases, you notice a particular host is loaded with a high number of procedure executions and you want to explicitly control the routing of the procedure execution to another specific host (for better distribution over multiple hosts to control memory and CPU resources). If you define a valid SAP HANA volume ID for a package, the SAP HANA HINT ROUTE_TO(<Volume ID>) is applied during the SAP HANA procedure call of that package fromSAP Profitability and Performance Management. SAP HANA carries out an explicit routing and tries to execute this package procedure on the host indicated by the volume ID. If an assigned volume ID does not exist in the system where it is being executed, the execution switches to the default behavior of implicit routing.
- Low: Single package selection values of the package or partition field
-