Prepare TAS Datastore server (TAS 8)

Prepare the TAS Datastore server to host the customer index and data.

The procedures for server preparation are based on third party software which is subject to change. The instructions as such are to be considered as a suggested method for server preparation. Alternative commands may be used. In addition, it is possible that some of the commands may not be necessary as your servers may already have the required software.

Before you begin 

Prepare TAS Application server (TAS 8)

Procedure 

  1. Create the data directory to store the index, configuration, log, and transaction log files, and assign the required permissions:

    1. Create the /<data_folder> directory:

      Copy
      mkdir -p /<data_folder>

      where:

      <data_folder> is the folder defined for data storage, and is by default opt/app/data.

      If you require a different data directory, you must define it in the Site Preparation Checklist.

    2. Assign the TAS user group and the tas_app user as the owner of the directory:

      Copy
      chown -R tas_app:tas /<data_folder>
    3. Assign the following permissions:

      Copy
      chmod -R 770 /<data_folder>
  2. Schedule a cron job in CronTab to purge log files:

    1. Edit the current CronTab:

      Copy
      crontab -e
    2. Add the line to purge the log files every 30 minutes:

      Copy
      30 * * * * find /<data_folder>/log -type f -mtime +15 -delete
  3. Configure the Text Indexing Service (TINS):

    1. Open the /etc/sysctl.conf file and add the following line:

      Copy
      vm.swappiness=1
    2. Create the /tas directory:

      Copy
      mkdir -p /etc/tuned/tas
  4. Create and configure a defrag file:

    1. Go to the /etc/tuned/tas directory.

    2. Create the huge_pages_defrag.sh file:

      Copy
      vi huge_pages_defrag.sh
    3. Add the following content to the file and save it:

      Copy
      #!/bin/sh
      . /usr/lib/tuned/functions
      start() {
           echo never > /sys/kernel/mm/transparent_hugepage/defrag
          return 0
      }
      stop() {
         return 0
      }
      process $@
  5. In /etc/tuned/tas, create and edit the tuned.conf configuration file:

    1. Create the tuned.conf file:

      Copy
      vi tuned.conf
    2. Add the following content to the file and save it:

      Copy
      [main]
      include=throughput-performance
      [vm]
      transparent_hugepages=always
      [sysctl]
      vm.swappiness = 1
      [script]
      script=huge_pages_defrag.sh
    3. Create the tas profile and enable it:

      Copy
      tuned-adm profile tas
    4. Open the /etc/security/limits.conf file and add the following lines to the end of the file:

      Copy
      * soft nofile 60000
      * hard nofile 60000
  6. Optional. Install diagnostic tools for troubleshooting:

    Copy
    yum -y install sysstat htop iotop iftop sysbench collectl
     

What to do next 

Configure TAS Datastore servers for high availability