[MCOL-5170] Rework process and service management in CMAPI Created: 2022-07-26  Updated: 2023-03-28  Resolved: 2023-03-28

Status: Closed
Project: MariaDB ColumnStore
Component/s: cmapi
Affects Version/s: None
Fix Version/s: 23.02

Type: Task Priority: Major
Reporter: Alan Mologorsky Assignee: Alan Mologorsky
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MCOL-5272 drone - merge CMAPI into engine repo Closed
PartOf
includes MCOL-5054 Allow CMAPI installation without syst... Closed
includes MCOL-5345 Fix SingleNode.xml causing PrimProc f... Closed
includes MCOL-5457 Fix storagemanager startup in contain... Closed
Relates
relates to MCOL-5445 While adding several nodes into clust... Closed
Assigned for Review: Roman Roman
Assigned for Testing: Daniel Lee Daniel Lee (Inactive)

 Description   

Rework process and services dispatcher to automatically detect order and what to start\stop.
Rewrite container.sh files into python.
Move columnstore initialisation shell code to python code and make cmapi rule it.
-restore dbbuilder.log

UPD:
Rewrite both systemd and container dispatchers. Remove container.sh file.
Add top level class to use needed process dispatcher. Remove OSOperations and
apply config logic. Additional error handling added.
Now ownership of each datafile changes even if in container.
This was done to future support non-systemd installations.
Many other improvements explained in details in corresponding PR.

Short bullets about changes:
container.sh now deprecated, container.py used instead
systemd.py dispatcher rewrited
top level process manager class added: MCSProcessManager instead of OSOperations
fixed SingleNode.xml causing PrimProc failure, related to MCOL-5345
improved logging added + new logging for container installations + dbbuilder missed logging added
psutil library now used in some cases instead of custom solutions
improved error handling added while starting\stopping node
StorageManager process stop timeout increased up to 300 seconds for container installations



 Comments   
Comment by Daniel Lee (Inactive) [ 2023-02-09 ]

Please provide info for testing, including
1. what was changed
2. testing instruction

Comment by alexey vorovich (Inactive) [ 2023-03-22 ]

I think these are not new and we can review these later.
In case of sky
-we don't scale down
-maxscale by operator

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