HEAVY.AI features two system services:
heavy_web_server. You can start these services individually using
For permanent installations of HeavyDB, HEAVY.AI recommends that you use
systemdto manage HeavyDB services.
systemdautomatically handles tasks such as log management, starting the services on restart, and restarting the services if there is a problem.
systemdmanages the open-file limit in Linux. Some cloud providers and distributions set this limit too low, which can result in errors as your HEAVY.AI environment and usage grow. For more information about adjusting the limits on open files, see Why am I seeing the error "Too many open files...erno24" in the Troubleshooting and Monitoring Solutions section of our knowledgebase.
You use the
install_heavy_systemd.shscript to prepare
systemdto run HEAVY.AI services. The script asks questions about your environment, then installs the
systemdservice files in the correct location. You must run the script as the root user so that the script can perform tasks such as creating directories and changing ownership.
install_heavy_systemd.shscript asks for the information described in the following table.
To manually start HeavyDB using
sudo systemctl start heavydb
sudo systemctl start heavy_web_server
You can use
systemdto restart HeavyDB — for example, after making configuration changes:
sudo systemctl restart heavydb
sudo systemctl restart heavy_web_server
To manually stop HeavyDB using
sudo systemctl stop heavydb
sudo systemctl stop heavy_web_server
To enable the HeavyDB services to start on restart, run:
sudo systemctl enable heavydb
sudo systemctl enable heavy_web_server