DataPower Gateway for Linux
DataPower® Gateway for Linux® is installed from RPM packages.
The DataPower Gateway runs as an application on a Linux host. The DataPower Gateway requires exclusive access to some host resources. You can control the interaction by configuring the datapower.conf file.
- Resource requirements on Linux hosts
- The datapower.conf file
- What running as an application means
- DataPower Gateway for Docker compared to DataPower Gateway for Linux
Resource requirements on Linux hosts
- To install the RPM packages, the host must be running a supported 64-bit version of Linux.
- 2 GiB of free storage must be available on /opt.
- 5 GiB of free storage must be available on /var.
- At least two free loop devices are needed, with another loop device when RAID storage is used.
- RAID storage, if used, must be configured in the datapower.conf file.
- Without API workload
- The minimum resource allocation is 4 vCPU (virtual processors) and 4 GB RAM.
- With API workload
- The minimum resource allocation is 4 vCPU and 8 GB RAM independent of edition.
The datapower.conf file
The DataPower service reads the /opt/ibm/datapower/datapower.conf file on startup. The file sets directives for features such as local: and config: directory mapping, RAID configuration, and standalone standby control. For a change to take effect, restart the DataPower service. The datapower.conf file contains self-explanatory comments for each directive.
admin account as explained in Initializing the DataPower Gateway. In other words, you want different startup processing for the
initial startup than for each subsequent startup.DataPowerAcceptLicense=true
false for the cited cases. In other
words, you want to follow the following steps.- Install the RPMs
- Log in to DataPower service, and complete the initialization. Be sure to save the configuration
with the following command sequence.
top;configure terminal;write memory - Edit the datapower.conf file to change the
DataPowerAcceptLicensedirective totrue. - Restart the DataPower service with the systemctl restart datapower command.
With these steps, you do not need to access the DataPower GUI to accept the terms of license agreements.
By default, the startup of the DataPower service is as follows.
- Standby control is not enabled
- RAID function is not enabled
- The service uses all available CPUs
- The service uses all available memory
- The service reads and writes config: and local: inside its own file system
- Free encrypted space is 4 GiB
- License agreements require manual acceptance in the DataPower GUI
The following list explains each directive in the datapower.conf file.
- High availability that the DataPower service manages
-
EnableStandbyControl=[ true | false ] - Control how the DataPower service emulates the RAID device
-
DataPowerRaidDevice=[ (none) | device | file ] - Number of CPUs to allocate to the DataPower service
-
DataPowerCpuCount=number - Total memory to allocate to the DataPower service
-
DataPowerMemoryLimit=memory_limit - External directory access for the DataPower service
-
DataPowerConfigDir=path DataPowerLocalDir=path - Primary disk device size for the encrypted /var file system of the DataPower service
-
DataPowerImageSize=disk_space - Accept the terms of the license agreements for the DataPower service
-
DataPowerAcceptLicense=[ true | false ]
What running as an application means
- The DataPower Gateway runs as
root. - Depending on the host, the DataPower Gateway is controlled with different commands.
- When installed from RPM packages, the DataPower Gateway daemon is controlled with the systemctl command.
- On Docker, the DataPower Gateway is started with the datapower-launch command.
- The DataPower Gateway inherits many settings and some configuration from
the operating system.
- DNS settings are inherited. You cannot modify the inherited DNS configuration in DataPower. You can modify only in the host. For more information, see DNS settings and DataPower Gateway for Linux.
- The hostname is inherited. The hostname is the system identifier for the DataPower Gateway in system settings. If you attempt to change the system identifier, the change is silently ignored.
- Time management, which the operating system handles. Time and date settings are not available on the DataPower Gateway.
- Network interfaces are used as they are found. The Ethernet, VLAN, and link aggregation interfaces are not available for configuration in the DataPower Gateway.
- Host aliases are created from the network interfaces that are defined in the operating system.
The name for each host alias uses the
ethernet_version_nformat and its value is the original IP address from the operating system. For example,eth0_ipv4_1is the host alias that is created for the first IP address oneth0that uses IPv4.
- Sysplex target control service is not available.
- The installation wizard, started with the startup command, is not available.
DataPower Gateway for Docker compared to DataPower Gateway for Linux
Although DataPower Gateway for Linux can run inside a Docker container, DataPower Gateway for Docker is more flexible, less resource intensive, requires fewer privileges, and requires less preparation work. Therefore, DataPower Gateway for Docker is the preferable approach to deploy a DataPower Gateway in a Docker container.