[MCOL-3726] Native support for systemd in ProcMon Created: 2020-01-16  Updated: 2023-10-25  Resolved: 2023-10-25

Status: Closed
Project: MariaDB ColumnStore
Component/s: installation
Affects Version/s: 1.4.2
Fix Version/s: Icebox

Type: New Feature Priority: Major
Reporter: Assen Totin (Inactive) Assignee: Todd Stoffel (Inactive)
Resolution: Won't Fix Votes: 0
Labels: None


 Description   

Currently, ProcMon has no native support for systemd. As a result, whenever "systemctl start columsntore" is issued, the prompt is returned immediately (because an intermediate shell script run.sh is used). This creates the false sense that the service has been fully started - which is not true, as it may take up to a minute to do so (e.g., after a backup has been restored).

Implementing systemd support is not hard. ProcMon should be linked to libsystemd and it should wait until all expected ColumnStore processes are all truly started/synchronised/whatever, then call

sd_notify(0, "READY=1");

The current startup script run.sh should no longer be used with systemd, but could be retained for cases when systemd is not available (if such exists at all).

With native sytsmed support the unit file for ColumnStore should specific longer startup timeout than the default; also, longer wait time before scheduled restart in case of failure may be useful too.


Generated at Thu Feb 08 02:44:59 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.