docs: best practices - update some system config information.
updated XFS mount options
updated GPDB/ipv4_local_port_range information
added example for setting blockdev.
PR for 5X_STABLE
Will be ported to MAIN
<title>File System</title>
<p>XFS is the file system used for Greenplum Database data directories. XFS should be mounted
with the following mount options:
- <codeblock>rw,noatime,nobarrier,nodev,inode64,allocsize=16m</codeblock></p>
+ <codeblock>rw,nodev,noatime,nobarrier,inode64</codeblock></p>
</section>
<section id="port_config">
<title>Port Configuration</title>
<p>Set up <codeph>ip_local_port_range</codeph> so it does not conflict with the Greenplum
- Database port ranges. For example:
- <codeblock>net.ipv4.ip_local_port_range = 3000 65535
-PORT_BASE=2000
-MIRROR_PORT_BASE=2100
-REPLICATION_PORT_BASE=2200
-MIRROR_REPLICATION_PORT_BASE=2300</codeblock></p>
+ Database port ranges. For example, setting this range in
+ <systemoutput>/etc/sysctl.conf</systemoutput>:
+ <codeblock>net.ipv4.ip_local_port_range = 10000 65535</codeblock></p>
+ <p>you could set the Greenplum Database base port numbers to these
+ values.<codeblock>PORT_BASE = 6000
+MIRROR_PORT_BASE = 7000
+REPLICATION_PORT_BASE = 8000
+MIRROR_REPLICATION_PORT_BASE = 9000</codeblock></p>
</section>
<section id="io_config">
<title>I/O Configuration</title>
- <p>Set the blockdev read-ahead size to 16384 on the devices that contain data directories.</p>
+ <p>Set the blockdev read-ahead size to 16384 on the devices that contain data directories.
+ This command sets the read-ahead size for <codeph>/dev/sdb</codeph>.</p>
+ <codeblock># /sbin/blockdev --setra 16384 /dev/sdb</codeblock>
+ <p>This command returns the read-ahead size for <codeph>/dev/sdb</codeph>.</p>
<codeblock># /sbin/blockdev --getra /dev/sdb
16384</codeblock>
<p>The deadline IO scheduler should be set for all data directory devices. </p>
