Commit Graph

16 Commits (7f2594c01258560614963aafee8a25eb7d942e4a)

Author SHA1 Message Date
kodiakhq[bot] 2caed5456e
Merge branch 'main' into crepererum/run_modes_boilerplate3 2021-10-29 07:06:12 +00:00
Marco Neumann 7b938fa521
docs: extend `CommonServerState` docs
Co-authored-by: Andrew Lamb <alamb@influxdata.com>
2021-10-29 09:05:29 +02:00
Marco Neumann f340738aa5 docs: explain `influxdb_ioxd::main` 2021-10-29 09:04:39 +02:00
Marco Neumann 3c22d93e38 fix: remove TODO error handling 2021-10-29 08:59:04 +02:00
Raphael Taylor-Davies 8a2410e161
feat: mutable batch write entry (#2724) (#2973)
* feat: mutable batch write entry (#2724)

* chore: lint

* chore: review feedback

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-10-28 20:15:28 +00:00
Marco Neumann 641c7b3051 refactor: make `influxdb_ioxd` server-type-generic 2021-10-28 17:38:06 +02:00
Marco Neumann 9996cfc6b3 fix: things I forgot to rename 2021-10-28 16:33:03 +02:00
Marco Neumann 9cd3dfb624 refactor: make gRPC server code reusable
Sadly `tonic` is a bit of a type nightmare (see
<23c1392fb7/tonic/src/transport/server/mod.rs (L452-L470)>
). So I wasn't able to pull into a simple "add all your
services"-function. Instead the server type now builds its own gRPC
server but relies on some helper macros to for common functionality.
2021-10-28 13:19:24 +02:00
Marco Neumann a6e0a069cc refactor: rename "run mode" to "server type" 2021-10-28 11:16:41 +02:00
Marco Neumann 843551d291 docs: improve
Co-authored-by: Andrew Lamb <alamb@influxdata.com>
2021-10-28 11:16:41 +02:00
Marco Neumann c465d0af8f refactor: abstract HTTP inteface for different run modes
First iteration of a common interface for the different server run
modes. This splits the existing HTTP server into a part that can be used
by all run modes (e.g. health checks, metrics endpoint, profiling) and a
part that is specific to the the database run mode.

Note that the interface is not final and might require more iterations,
but we have to start somewhere.
2021-10-28 11:16:41 +02:00
kodiakhq[bot] 6ebca13ed7
Merge branch 'main' into crepererum/prepare_run_mode_cli 2021-10-27 11:04:07 +00:00
Marko Mikulicic cdc0c63cb7
feat: Add LP batch size histogram metric
Part of #2752
2021-10-27 12:14:48 +02:00
Marco Neumann 6e29cec502 refactor: rename `query` mode to `database` 2021-10-27 09:31:46 +02:00
Marco Neumann 41bc373fe8 refactor: offer different modes via "run" CLI
Running a server is now using `influxdb_iox run MODE [args]`, e.g.
`influxdb_iox run query --server-id 1`. Another mode that will follow
soon is `router`.

The old syntax `influxdb_iox run [args]` (w/o the mode part) is still
supported but a deprecation note will be printed.
2021-10-27 09:31:46 +02:00
Marco Neumann a0cdca7781 chore: move `influxdb_iox` into a proper workspace package 2021-10-26 11:02:33 +02:00