Installing the Database
This section provides information about configuring the database server and installing the ArcSight Database.
- Preparing the Database Node for Installation
- Configuring BIOS for Maximum Performance
- Enabling Passwordless Communication
- Modifying the System Clock
- Configuring and Installing the Database Server
Preparing the Database Node for Installation
- Provision the server with at least 2 GB of swap space.
In case the pre-check on swap space fails after provisioned 2 GB on swap, a provision swap with 2.2 GB should solve the problem.
- Add the following parameters to
/etc/sysctl.conf. - Add the following parameters to
/etc/rc.local. - In
/etc/default/grub, append lineGRUB_CMDLINE_LINUXwithintel_idle.max_cstate=0 processor.max_cstate=1. For example:GRUB_CMDLINE_LINUX="vconsole.keymap=us crashkernel=auto vconsole.font=latarcyrheb-sun16 rhgb quiet intel_idle.max_cstate=0 processor.max_cstate=1"
Execute the following command:
grub2-mkconfig -o /boot/grub2/grub.cfg
-
Use
iptablesto disable the firewall WARN (N0010):iptables -Fiptables -t nat -Fiptables -t mangle -Fiptables -Xsystemctl mask firewalldsystemctl disable firewalldsystemctl stop firewalldThe database requires several ports to be open on the local network. Micro Focus does not recommend that you place a firewall between nodes (all nodes should be behind a firewall), but if you must use a firewall between nodes, ensure that all the database ports are available (see Firewall ports in Technical Requirements for ArcSight Platform). For more information, see Firewall Considerations. - Set SELinux to permissive mode in
/etc/selinux/config.SELINUX=permissive
For more information, see SELinux Configuration.
- Reboot the system for your changes to take effect.
| Parameter | Description |
net.core.somaxconn = 1024
|
Increases the number of incoming connections |
net.core.wmem_max = 16777216
|
Sets the send socket buffer maximum size in bytes |
net.core.rmem_max = 16777216
|
Sets the receive socket buffer maximum size in bytes |
net.core.wmem_default = 262144
|
Sets the receive socket buffer default size in bytes |
net.core.rmem_default = 262144
|
Controls the default size of receive buffers used by sockets |
net.core.netdev_max_backlog = 100000
|
Increase the length of the network interface input queue |
net.ipv4.tcp_mem = 16777216 16777216 16777216
|
|
net.ipv4.tcp_wmem = 8192 262144 8388608
|
|
net.ipv4.tcp_rmem = 8192 262144 8388608
|
|
net.ipv4.udp_mem = 16777216 16777216 16777216
|
|
net.ipv4.udp_rmem_min = 16384
|
|
net.ipv4.udp_wmem_min = 16384
|
|
vm.swappiness = 1
|
Defines the amount and frequency at which the kernel copies RAM contents to a swap space For more information, see Check for Swappiness. |
| Parameter | Description |
|
|
Resolve FAIL (S0150) |
|
|
Resolve FAIL (S0020) when database resides on /dev/sdb |
echo always > /sys/kernel/mm/transparent_hugepage/enabled
|
|
tuned-adm profile throughput-performance
|
Resolve WARN (S0140/S0141) (CentOS only) |
Configuring BIOS for Maximum Performance
Depending on your hardware, you might be able to access options to configure power and performance. Configure the system for maximum performance in the BIOS while the system is powering on. For example, for HPE hardware, the following setting is available.
System Configuration > BIOS/Platform Configuration (RBSU) > Power Management > HPE Power Profile > Maximum Performance
Enabling Passwordless Communication
This section describes how to configure passwordless communication from the node1 server to all of the node servers in the cluster.
- On the node1 server, run the
ssh-keygencommand: - Copy the key from node1 to all of the nodes, including node1, using the node IP address:
- Enter the required credentials for the node.
- The operation is successful when the system displays the following message:
- To verify successful key installation, run the following command from node1 to the target node to verify that node1 can successfully log in:
ssh-keygen -q -t rsa
ssh-copy-id -i ~/.ssh/id_rsa.pub root@11.111.111.111
The system displays the key fingerprint and requests to authenticate with the node server.
Number of key(s) added: 1
ssh root@11.111.111.111
Modifying the System Clock
A network time server must be available. chrony implements this protocol and is installed by default on some versions of RHEL and CentOS. chrony must be installed on every node.
Verify the chrony configuration by using the command:
# chronyc tracking
To install chrony, start the chrony daemon, then verify operation with these commands:
# yum install chrony # systemctl start chronyd # systemctl enable chronyd # chronyc tracking
Determining FIPS Configuration
To enable or disable FIPS, follow the steps in Enabling FIPS Mode on the Database Server
Configuring and Installing the Database Server
- On the Database cluster node1 server, create a folder for the database installer.
- From the master node where you performed the Downloading Installation Packages steps, copy the following directory on the Database cluster node1 server:
- To extract the installer file and place it in the correct directory, run the following commands:
- Edit the
config/db_user.propertiesfile. Thehostsproperty is required. - Install the database.
- When prompted, create the database administrator user.
- Create the schema.
- When prompted, create the following users:
-
App admin user: A regular database user granted elevated permissions for performing operations on the database to manage the database, schema, and resource pools. The credentials for this user will need to be provided later in the CDF Management Portal when you are deploying capabilities.
-
Search user: A regular database user with permissions restricted to event search operations. The credentials for this user will need to be provided later in the CDF Management Portal when you are deploying capabilities.
- Monitor your database cluster status constantly. For more information, see Monitoring the Database.
- Database nodes status: Ensures all nodes are up
- Database nodes storage status: Ensures storage is sufficient
For example:
mkdir /opt/arcsight-db-tools
/opt/arcsight-db-tools should not be under /root or /opt/vertica.{unzipped-installer-dir}/installers/database/db-installer_x.x.x-x.tar.gz file to the /opt/arcsight-db-tools
cd /opt/arcsight-db-tools tar xvfz db-installer_x.x.x.x.tar.gz
|
Property |
Description |
|---|---|
|
|
A comma separated list of the database servers in IPv4 format (for example, 1.1.1.1,1.1.1.2,1.1.1.3). If it is necessary to construct the cluster, avoid using local loopback (localhost, 127.0.0.1, etc.). |
./db_installer install
The database administrator user account is used during database deployment, configuration, upgrade, and debugging. For security reasons, the platform deployed capabilities will not ask you for the credentials for this user.
./db_installer create-schema