Preparing for Cluster Edition Installation
Confirm and Change File LIMIT
To increase the maximum number of files that can be opened, do the following.
- Modify the file /etc/security/limits.conf
sudo vi /etc/security/limits.conf
* hard nofile 65535
* soft nofile 65535
- Reboot.
sudo reboot
# or
sudo shutdown -r now
- Check the results. If the output is 65535, it has been successfully changed.
unlimit -Sn
Server Time Synchronization
You must synchronize the server time between each host. If they are already synchronized, check for confirmation.
- Synchronize the time on all servers with the time server.
# Synchronize with the following command.
/usr/bin/rdate -s time.bora.net && /sbin/clock -w
- If the time server can not be used, modify it with a direct command.
# Modify with the following command.
date -s "2017-10-31 11:15:30"
- Check the modified time
# Check with the following command.
date
Change Network Kernel Parameters
- Check the current set value.
Check with the following command.
sysctl -a | egrep 'mem_(max|default)|tcp_.*mem'
- Change the setting value with the following command (for 64GB Memory).
sysctl -w net.core.rmem_default = "33554432" # 32MB
sysctl -w net.core.wmem_default = "33554432"
sysctl -w net.core.rmem_max = "268435456" # 256MB
sysctl -w net.core.wmem_max = "268435456"
sysctl -w net.ipv4.tcp_rmem = "262144 33554432 268435456"
sysctl -w net.ipv4.tcp_wmem = "262144 33554432 268435456"
# 8388608 Page * 4KB = 32GB
sysctl -w net.ipv4.tcp_mem = "8388608 8388608 8388608"
- To keep the changes, add them to the /etc/sysctl.conf file and restart the host OS.
# Modify the file /etc/sysctl.conf.
net.core.rmem_default = "33554432"
net.core.wmem_default = "33554432"
net.core.rmem_max = "268435456"
net.core.wmem_max = "268435456"
net.ipv4.tcp_rmem = "262144 33554432 268435456"
net.ipv4.tcp_wmem = "262144 33554432 268435456"
net.ipv4.tcp_mem = "8388608 8388608 8388608"
Create User
- Create a Linux OS user ‘machbase’ for Machbase installation. The user account directory is created as: /home/machbase.
$ sudo useradd machbase --home-dir "/home/machbase"
- Set password (machbase)
sudo passwd machbase
Last updated on