-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
kvcoord: Add observability for actively running range feeds.
Add a `crdb_internal.active_range_feeds` virtual table which lists all currently running range feeds on a node. The table lists the span for which the range feed was started, along with all of the ranges making up that span. Per range information, including the node where the range feed is running against, as well as the timestamp when the last non-error event has been seen from the range is recorded in the table. ``` root@:26257/defaultdb> select * from crdb_internal.active_range_feeds order by id, range_start; id | tags | range_start | range_end | startts | diff | node_id | partial_range_start | partial_range_end | resolved | last_event_utc ---------------+--------------------------------+-------------+-------------+--------------------------------+-------+---------+------------------------------+------------------------------+--------------------------------+----------------- 824655839232 | n?,rangefeed=table-stats-cache | /Table/20 | /Table/21 | 1629329537656207000.0000000000 | false | 1 | /Table/20 | /Table/21 | 1629335390881550000.0000000000 | NULL 824657576368 | n1,rangefeed=lease | /Table/3 | /Table/4 | 0.0000000000 | false | 1 | /Table/3 | /Table/4 | 1629335390881550000.0000000000 | NULL 824680146768 | n1,job=685578580453523457 | /Table/53/2 | /Table/53/3 | 1629329458537238000.0000000000 | false | 1 | /Table/53/2 | /Table/53/2/"\x80" | 1629335390881550000.0000000000 | NULL 824680146768 | n1,job=685578580453523457 | /Table/53/2 | /Table/53/3 | 1629329458537238000.0000000000 | false | 1 | /Table/53/2/"\x80"/PrefixEnd | /Table/53/3 | 1629335390881550000.0000000000 | NULL 824680146768 | n1,job=685578580453523457 | /Table/53/2 | /Table/53/3 | 1629329458537238000.0000000000 | false | 1 | /Table/53/2/"\x80" | /Table/53/2/"\x80"/PrefixEnd | 1629335390881550000.0000000000 | NULL (11 rows) ``` Release Notes: Improve range feed observability by adding a `crdb_internal.active_range_feeds` virtual table which lists all currently executing range feeds on the node.
- Loading branch information
Yevgeniy Miretskiy
committed
Aug 19, 2021
1 parent
b16c86d
commit 165fb88
Showing
12 changed files
with
244 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.