GreptimeTeam / greptimedb

An open-source, cloud-native, unified time series database for metrics, logs and events with SQL/PromQL supported. Available on GreptimeCloud.
https://greptime.com/
Apache License 2.0
4.23k stars 303 forks source link

feat: use the write runtime to handle the heartbeats #4177

Closed fengjiachun closed 3 months ago

fengjiachun commented 3 months ago

I hereby agree to the terms of the GreptimeDB CLA.

Refer to a related PR or issue link (optional)

What's changed and what's your intention?

As the title said, handling heartbeat is the most important work in metasrv(Processing heartbeats and generating scheduling instructions require substantial computation.), so we better to use the write runtime.

Checklist

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 95.65217% with 1 line in your changes missing coverage. Please review.

Project coverage is 84.80%. Comparing base (4306cba) to head (e8ebd2d).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #4177 +/- ## ========================================== - Coverage 85.12% 84.80% -0.32% ========================================== Files 1022 1022 Lines 179843 179849 +6 ========================================== - Hits 153094 152526 -568 - Misses 26749 27323 +574 ```