โœ•

Join us at two must-attend conferences this summer and claim your exclusive SWAG! ๐ŸŽ

IOT TECH EXPO, June 5-6 in Santa Clara! Booth 270 | DATA + AI SUMMIT, June 11-13 in San Francisco! Booth e12

โœ•
Skip to content
On this page

Subscribe to our newsletter

Get the latest dates and news about GreptimeDB.
Biweekly
โ€ข
April 03, 2023

Biweekly Report (Mar.13 - Mar.26) โ€“ Support executing PromQL queries through gRPC

A recap of the past two-weeks progress and changes happened on GreptimeDB.

Summary โ€‹

Together with all our contributors worldwide, we are glad to see GreptimeDB making remarkable progress for the better. Below are some highlights:

  • Support executing PromQL queries through gRPC
  • Graceful shutdown implemented for all components
  • Support for manually triggering Flush
  • COPY TO statement with CONNECTION option
  • Adding a private gRPC protocol to improve write efficiency

Contributor list: (in alphabetical order) โ€‹

For the past two weeks, our community has been super active with a total of 12 PRs from 3 contributors merged successfully and lots pending to be merged. Congrats on becoming our most active contributors in the past 2 weeks:

A big THANK YOU for the generous and brilliant contributions! It is people like you who are making GreptimeDB a great product. Let's build an even greater community together.

Highlights of Recent PR โ€‹

Support executing PromQL queries through gRPC โ€‹

Previously, PromQL queries could only be executed through the HTTP API /v1/promql. Now, we are able to execute PromQL queries through gRPC services, giving us the option of a more efficient query method for wider application scenarios.

Protocol updates are as follows:

sql
message QueryRequest {
  oneof query {
    string sql = 1;
    bytes logical_plan = 2;
    PromRangeQuery prom_range_query = 3; // <-- new
  }
}

Graceful shutdown implemented for all components โ€‹

Now, all the components of GreptimeDB, namely Frontend, Datanode, Metasrv, and Standalone, have incorporated the feature of graceful shutdown. By doing so, the system can guarantee the completion of ongoing tasks during the shutdown process, which mitigates the possibility of data loss and enhances the overall reliability of the system. This enhancement is bound to offer a more stable and secure experience.

Support for manually triggering Flush โ€‹

We have introduced a manual trigger for flushing data to disk or remote storage, which is available at both the gRPC and HTTP layers. To execute this operation, you may use the curl utility. For instance:

sql
# flush region 1 of table greptime.benchmark.tab

curl -XPOST 'localhost:4000/v1/admin/flush?catalog=greptime&db=benchmark&table=tab&region=1'# flush all regions of table greptime.benchmark.tab

curl -XPOST 'localhost:4000/v1/admin/flush?catalog=greptime&db=benchmark&table=tab'# flush all tables of table greptime.benchmark

curl -XPOST 'localhost:4000/v1/admin/flush?catalog=greptime&db=benchmark'

COPY TO statement with CONNECTION option โ€‹

COPY TO SQL statement now supports the CONNECTION option, which means you can not only back up your data to local storage but also to cloud storage easily. This improvement provides users with more flexibility, making data backups more efficient, secure and reliable.

Adding a private gRPC protocol to improve write efficiency โ€‹

To further enhance write performance, we have incorporated a private gRPC protocol alongside ArrowFlight. This protocol supports Unary Call and Client Streaming Call to boost the efficiency of data writing. Meanwhile, ArrowFlight remains dedicated to improving query performance.

New things โ€‹

  • We have been working on a GreptimeDB sink for vector, a powerful agent framework for collecting metrics and logs. We are going to upstream it when all code gets ready. Stay tuned.

Join our community

Get the latest updates and discuss with other users.

Subscribe to our newsletter

Get the latest dates and news about GreptimeDB.