1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-19 02:02:17 +03:00
Files
Alan Mologorsky 687aa463af fix!(cmapi): MCOL-5454: Self-signed certificate autorenew. (#3213)
[add] managers/certificate.py with CertificateManger class
[mv] creating self-signed certificate logic into CertificateManger class
[add] renew and days_before_expire methods to CertificateManger class
[mv] several certificate dependent constants to managers/certificate.py
[add] CherryPy BackgroundTask to invoke certificate check hourly (3600 secs)
[fix] tests
[fix] bug with txn timer clean (clean_txn_by_timeout, worker and invoking of it)
2024-07-21 05:25:32 +01:00
..
2024-06-26 20:57:10 +03:00
2024-06-21 05:47:13 +03:00

CMAPI REST server

Build Status

Overview

This RESTfull server enables multi-node setups for MCS.

Requirements

See requirements.txt file.

All the Python packages prerequisits are shipped with a pre-built Python enterpreter.

Usage

To run the server using defaults call:

python3 -m cmapi_server

There is a configuration server inside cmapi_server.

Testing

To launch the integration and unit tests use unittest discovery mode.

python3 -m unittest discover -v mcs_node_control
python3 -m unittest discover -v cmapi_server
python3 -m unittest discover -v failover

mcs_control_node unit tests ask for root privileges and additional systemd unit to run smoothly.

Build packages

Packages have bundled python interpreter and python dependencies.

Get dependencies

get portable python

wget -qO- https://cspkg.s3.amazonaws.com/python-dist-no-nis.tar.gz | tar xzf - -C ./

install python dependencies

python/bin/pip3 install -t deps --only-binary :all -r requirements.txt

RPM

./cleanup.sh
yum install -y wget cmake make rpm-build
cmake -DRPM=1 .
make package

DEB

./cleanup.sh
DEBIAN_FRONTEND=noninteractive apt update && apt install -y cmake make
cmake -DDEB=1 .
make package