Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Conversation

penberg
Copy link
Contributor

@penberg penberg commented Apr 26, 2023

This adds support for server heartbeats.

The patch adds three new command line options:

--heartbeat-url URL is the URL to send a HTTP POST request to
periodically to indicate server heatbeat.

--heartbeat-auth AUTH is the HTTP "Authorization" header to send
as part of the HTTP POST request.

--heartbeat-period SECS is the heartbeat period in seconds.

The payload of the HTTP POST request is pretty simple for now:

{"rows_read":1234,"rows_written":8765}

Fixes #343

This adds support for server heartbeats.

The patch adds three new command line options:

  `--heartbeat-url URL` is the URL to send a HTTP POST request to
  periodically to indicate server heatbeat.

  `--heartbeat-auth AUTH` is the HTTP "Authorization" header to send
  as part of the HTTP POST request.

  `--heartbeat-period SECS` is the heartbeat period in seconds.

The payload of the HTTP POST request is pretty simple for now:

```json
{"rows_read":1234,"rows_written":8765}
```

Fixes #343
@MarinPostma
Copy link
Contributor

bors merge

@bors
Copy link
Contributor

bors bot commented Apr 26, 2023

Build succeeded:

@bors bors bot merged commit 2c39268 into main Apr 26, 2023
@MarinPostma MarinPostma deleted the heartbeats branch August 25, 2023 13:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Server heartbeat
2 participants