
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
https://img.shields.io/crates/v/tectonicdb.svg](https://crates.io/crates/tectonicdb) https://travis-ci.org/rickyhan/tectonicdb.svg?branch=master](https://travis-ci.org/rickyhan/tectonicdb) https://img.shields.io/crates/v/tectonicdb.svg](https://crates.io/crates/tectonicdb)
tectonicdb is a fast, highly compressed standalone datastore and streaming protocol for order book ticks.
This software is motivated by reducing expenditure. 1TB stored on Google Cloud PostgreSQL was too expensive and too slow. Since financial data is usually read and stored in bulk, it is possible to convert into a more efficient format.
Uses a simple binary file format: Dense Tick Format(DTF)
Stores order book tick data tuple of shape: (timestamp, seq, is_trade, is_bid, price, size).
Sorted by timestamp + seq
12 bytes per row
There are several ways to install tectonicdb.
Binaries are available for https://github.com/rickyhan/tectonic/releases. Make sure to put the path to the binary into your PATH. Currently only build is for Linux x86_64.
Requires Rust. Once you have Rust installed, simply run:
cargo install tectonicdb
This will download and compile tectonic-server and tectonic-cli.
To contribute you will need the copy of the source code on your local machine.
git clone https://github.com/rickyhan/tectonic cd tectonic cargo build --lib cargo build --bin tectonic-server cargo build --bin tectonic-cli
The binaries can be found under target/release/debug folder.
It's very easy to setup.
chmod +x tectonic-server ./tectonic-server --help
For example:
bash./tectonic-server -vv -a -i 10000 # run the server on INFO verbosity # turn on autoflush and flush every 10000
This sets log verbosity to max and maximum connection to 1000.
To config the Google Cloud Storage and Data Collection Backend integration, the following environment variables are used:
| Variable Name | Default | Description |
|---|---|---|
GCLOUD_OAUTH_TOKEN | unset | Token used to authenticate with Google Cloud for uploading DTF files |
GCLOUD_BUCKET_NAME | tick_data | Name of the bucket in which uploaded DTF files are stored |
GCLOUD_FOLDER | `` | Name of the folder inside of the bucket into which the DTF files are stored |
GCLOUD_UPLOAD_INTERVAL | 3600 | Interval in seconds between uploads of DTF files to Google Cloud |
GCLOUD_REMOVE_ON_UPLOAD | true | If true, the uploaded DTF files are deleted after upload |
DCB_URL | `` | The URL of the Data Collection Backend's batch ingestion endpoint (leave unset if you don't know what the DCB is or aren't using it) |
There is a history granularity option that sets the interval (in second) to periodically record item count for each data store. Then a client can call PERF command and retreive historical item counts in JSON.
Log file defaults to tectonic.log.
Tectonic comes with a commandline tool dtfcat to inspect the file metadata and all the stored rows into either JSON or CSV.
Options:
USAGE: dtfcat [FLAGS] --input <INPUT> FLAGS: -c, --csv output csv -h, --help Prints help information -m, --metadata read only the metadata -V, --version Prints version information OPTIONS: -i, --input <INPUT> file to read
It is possible to use the Dense Tick Format streaming protocol / file format in a different application. Works nicely with any buffer implementing the Write trait.
TectonicDB is a standalone service.
Linux
macOS
Language bindings:
TypeScript
Rust
Python
JavaScript
Usage statistics like Cloud SQL
Commandline inspection tool for dtf file format
Logging
Query by timestamp
This software is release under GNU General Public License which means you are required to contribute back and disclose source.
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务