Company or project name
No response
Question
I follow the installation guide to install ClickHouse at ubuntu 26.04 inside WSL2. After installation completed, I run systemctl stop to terminate the ClickHouse service.
But the status log show ubuntu just kill the process with signal SIGKILL. I wonder is there a better approach to shutdown ClickHouse service and avoid data lost?
I search the doc and only find something like SYSTEM FLUSH ASYNC INSERT QUEUE and async_insert_queue_flush_on_shutdown. Some other source said it need to monitor process by using SHOW PROCESSLIST;.
So my questions is, given that ubuntu 26.04 doesn't seem to handle shutdown gracefully, what is the manual steps require to shutdown ClickHouse service?
I install and try systemctl stop at both ubuntu 26.04 and CentOS Stream 10 and both do signal SIGKILL...
The log of systemctl status
clickhouse-server[1878]: Processing configuration file '/etc/clickhouse-server/config.xml'.
clickhouse-server[1878]: Logging trace to /var/log/clickhouse-server/clickhouse-server.log
clickhouse-server[1878]: Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
systemd[1]: clickhouse-server.service: Supervising process 1886 which is not our child. We'll most likely not notice when it exits.
systemd[1]: Started clickhouse-server.service - ClickHouse Server (analytic DBMS for big data).
systemd[1]: Stopping clickhouse-server.service - ClickHouse Server (analytic DBMS for big data)...
systemd[1]: clickhouse-server.service: Killing process 1886 (n/a) with signal SIGKILL.
systemd[1]: clickhouse-server.service: Deactivated successfully.
systemd[1]: Stopped clickhouse-server.service - ClickHouse Server (analytic DBMS for big data).
systemd[1]: clickhouse-server.service: Consumed 2.719s CPU time over 35.604s wall clock time, 362.7M memory peak.
Company or project name
No response
Question
I follow the installation guide to install ClickHouse at ubuntu 26.04 inside WSL2. After installation completed, I run systemctl stop to terminate the ClickHouse service.
But the status log show ubuntu just kill the process with signal SIGKILL. I wonder is there a better approach to shutdown ClickHouse service and avoid data lost?
I search the doc and only find something like
SYSTEM FLUSH ASYNC INSERT QUEUEand async_insert_queue_flush_on_shutdown. Some other source said it need to monitor process by usingSHOW PROCESSLIST;.So my questions is, given that ubuntu 26.04 doesn't seem to handle shutdown gracefully, what is the manual steps require to shutdown ClickHouse service?
I install and try systemctl stop at both ubuntu 26.04 and CentOS Stream 10 and both do signal SIGKILL...
The log of systemctl status