Important
The SingleStore 9.1 release candidate (RC) is available now. It will be promoted to general availability (GA) soon and at that time it will be renamed to SingleStore 10.
In the interim, SingleStore 9.1 RC can be used to preview, evaluate, and provide feedback on the new and upcoming features in SingleStore 10, while SingleStore 9.0 is recommended for production workloads.
Run Flow as a Linux Service
Flow can be set up as a systemd service on Linux that runs in the background, persists across reboots and user logouts, automatically restarts on crashes, and can use integrated logging via journalctl.
Note: This procedure is compatible with systemd-based Linux distributions.
Follow these steps to configure Flow to run as a service:
-
Create the
systemdunit file.sudo vi /etc/systemd/system/<your-service-name>.serviceReplace
<your-service-name>with a name of your choice, such as flow-ingest or flow-xl-ingest. -
Add the following content into the file, and update the
User,WorkingDirectory, andExecStartfields to match your environment.[Unit] Description=SingleStore Flow Ingest After=network.target [Service] Type=simple User=<your-username> # e.g., ec2-user WorkingDirectory=<path-to-your-working-directory> # e.g., /home/ec2-user/ingest # Adjust JVM options if you need memory limits, GC tuning, etc. ExecStart=/usr/bin/java -jar <path-to-your-jar> # e.g., /home/ec2-user/ingest/ingest.jar # SuccessExitStatus=143 # Uncomment so Ctrl+C / SIGTERM is treated as a clean exit Restart=always RestartSec=10 LimitNOFILE=65536 # Increase the open-file limit if ingest opens many files [Install] WantedBy=multi-user.target -
Enable and start the service.
sudo systemctl daemon-reload sudo systemctl enable --now <your-service-name> -
Check service status and logs.
sudo systemctl status <your-service-name> # health-check sudo journalctl -u <your-service-name> -f # live logs (Ctrl-C to quit)
Last modified: