- Introduction
- Documentation
- Prerequisites
- Building
- Packaging
- Installation
- Running
- Testing
- Releasing
- CI/CD
- Contributing
TDgpt: an analytic platform for TDengine
For user manual, system design and architecture, please refer to TDengine Documentation (TDengine 文档).
List the software and tools required to work on the project.
- python 3.10.12+ (for test)
Step-by-step instructions to set up the prerequisites software.
Make sure Python3.10 or above is available before installing anode in your system.
In case of Ubuntu, use the following instructions to install Python 3.10.
sudo apt-get install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt update
sudo apt install python3.10
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 2
sudo update-alternatives --config python3
sudo apt install python3.10-venv
sudo apt install python3.10-dev
Install the Pip3.10
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
Add the ~/.local/bin
into ~/.bashrc
or ~/.bash_profile
export PATH=$PATH:~/.local/bin
There is no need to build the taosanode, since it is implemented in Python, which is an interpreted language.
In the base directory, you can use the following command to package to build an tarball.
cd script && ./release.sh
After the packaging is completed, you will find the tarball in the release
directory.
ls -lht release
-rw-rw-r-- 1 root root 74K Feb 21 17:04 TDengine-enterprise-anode-1.0.1.tar.gz
Please use the following command to install taosanode in your system.
./install.sh
During the installation, Python virtual environment will be established in /var/lib/taos/taosanode/venv
by default, as well as the required libraries.
The taosanode will be installed as an system service, but will not automatic started when installed. You need to start the service mannually, by using the following command
systemctl start taosanoded
taosanode provides the RESTFul service powered by uWSGI
. You can config the options to tune the
performance by changing the default configuration file taosanode.ini
located in /etc/taos
, which is also the configuration directory for taosd
service.
# taosanode service ip:port
http = 127.0.0.1:6090
systemctl start/stop/restart taosanoded.service
will start/stop/restart the service of taosanode.
The command rmtaosanode
will remove the installed taosanode from your system. Note that the python environment won't removed by this script, you need to remove it mannually.
We use Github Actions to run the test suite. Please refer to the workflow definition yaml file in .github/workflows for details.
For the complete list of taosanode Releases, please see Releases.
We use Github Actions for CI/CD workflow configuration. Please refer to the workflow definition yaml file in .github/workflows for details.
Guidelines for contributing to the project:
- Fork the repository
- Create a feature branch
- Submit a pull request