mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-05 21:02:58 +00:00
fb4495eb46758cd6e0c4b4612183152c0ede4baf
* feat: Add `open_table()` method to `TableEngine` * feat: Implements MitoEngine::open_table() For simplicity, this implementation just use the table name as region name, and using that name to open a region for that table. It also introduce a mutex to avoid opening the same table simultaneously. * refactor: Shorten generic param name Use `S` instead of `Store` for `MitoEngine`. * test: Mock storage engine for table engine test Add a `MockEngine` to mock the storage engine, so that testing the mito table engine can sometimes use the mocked storage. * test: Add open table test Also remove `storage::gen_region_name` method, and always use table name as default region name, so the table engine can open the table created by `create_table()`. * chore: Add open table log
GreptimeDB
GreptimeDB: the next-generation hybrid timeseries/analytics processing database in the cloud.
Getting Started
Prerequisites
To compile GreptimeDB from source, you'll need the following:
- Rust
- C++ toolchain
- cmake
- OpenSSL
Rust
The easiest way to install Rust is to use rustup, which will check our rust-toolchain file and install correct Rust version for you.
C++ toolchain
The prost-build dependency requires C++ toolchain and cmake to build its bundled protoc. For more info on what the required dependencies are check here.
cmake
Follow the instructions for your operating system on the cmake site.
For macOS users, you can also use homebrew to install cmake.
brew install cmake
OpenSSL
For Ubuntu:
sudo apt install libssl-dev
For RedHat-based: Fedora, Oracle Linux, etc:
sudo dnf install openssl-devel
For macOS:
brew install openssl
Usage
// Start datanode with default options.
cargo run -- datanode start
OR
// Start datanode with `http-addr` option.
cargo run -- datanode start --http-addr=0.0.0.0:9999
OR
// Start datanode with `log-dir` and `log-level` options.
cargo run -- --log-dir=logs --log-level=debug datanode start
Description
Open-source, cloud-native, unified observability database for metrics, logs and traces, supporting SQL/PromQL/Streaming.
analyticscloud-nativedatabasedistributedgreptimedblogsmetricsmonitoringobservabilityobservability-databaseobservability-datalakepromqlrustrust-databasesqltime-seriestracestsdb
Readme
Apache-2.0
380 MiB
Languages
Rust
99.6%
Shell
0.1%