Kirill Bulatov
bce4233d3a
Rework Cargo.toml dependencies ( #3322 )
...
* Use workspace variables from cargo, coming with rustc
[1.64](https://github.com/rust-lang/rust/blob/master/RELEASES.md#version-1640-2022-09-22 )
See
https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-package-table
and
https://doc.rust-lang.org/nightly/cargo/reference/workspaces.html#the-dependencies-table
sections.
Now, all dependencies in all non-root `Cargo.toml` files are defined as
```
clap.workspace = true
```
sometimes, when extra features are needed, as
```
bytes = {workspace = true, features = ['serde'] }
```
With the actual declarations (with shared features and version
numbers/file paths/etc.) in the root Cargo.toml.
Features are additive:
https://doc.rust-lang.org/nightly/cargo/reference/specifying-dependencies.html#inheriting-a-dependency-from-a-workspace
* Uses the mechanism above to set common, 2021, edition and license across the
workspace
* Mechanically bumps a few dependencies
* Updates hakari format, as it suggested:
```
work/neon/neon kb/cargo-templated ❯ cargo hakari generate
info: no changes detected
info: new hakari format version available: 3 (current: 2)
(add or update `dep-format-version = "3"` in hakari.toml, then run `cargo hakari generate && cargo hakari manage-deps`)
```
2023-01-13 18:13:34 +02:00
Vadim Kharitonov
0b428f7c41
Enable licenses check for 3rd-parties
2023-01-03 15:11:50 +01:00
Dmitry Ivanov
61194ab2f4
Update rust-postgres everywhere
...
I've rebased[1] Neon's fork of rust-postgres to incorporate
latest upstream changes (including dependabot's fixes),
so we need to advance revs here as well.
[1] https://github.com/neondatabase/rust-postgres/commits/neon
2022-12-17 00:26:10 +03:00
Dmitry Ivanov
83baf49487
[proxy] Forward compute connection params to client
...
This fixes all kinds of problems related to missing params,
like broken timestamps (due to `integer_datetimes`).
This solution is not ideal, but it will help. Meanwhile,
I'm going to dedicate some time to improving connection machinery.
Note that this **does not** fix problems with passing certain parameters
in a reverse direction, i.e. **from client to compute**. This is a
separate matter and will be dealt with in an upcoming PR.
2022-12-16 21:37:50 +03:00
Arseny Sher
f013d53230
Switch to clap derive API in safekeeper.
...
Less lines and easier to read/modify. Practically no functional changes.
2022-12-12 16:25:23 +03:00
Arseny Sher
32662ff1c4
Replace etcd with storage_broker.
...
This is the replacement itself, the binary landed earlier. See
docs/storage_broker.md.
ref
https://github.com/neondatabase/neon/pull/2466
https://github.com/neondatabase/neon/issues/2394
2022-12-12 13:30:16 +03:00
Dmitry Ivanov
c38f38dab7
Move pq_proto to its own crate
2022-11-03 22:56:04 +03:00
Kirill Bulatov
d42700280f
Remove daemonize from storage components ( #2677 )
...
Move daemonization logic into `control_plane`.
Storage binaries now only crate a lockfile to avoid concurrent services running in the same directory.
2022-11-02 02:26:37 +02:00
Kirill Bulatov
c4ee62d427
Bump clap and other minor dependencies ( #2623 )
2022-10-17 12:58:40 +03:00
Kirill Bulatov
f03b7c3458
Bump regular dependencies ( #2618 )
...
* etcd-client is not updated, since we plan to replace it with another client and the new version errors with some missing prost library error
* clap had released another major update that requires changing every CLI declaration again, deserves a separate PR
2022-10-15 01:55:31 +03:00
sharnoff
580584c8fc
Remove control_plane deps on pageserver/safekeeper ( #2513 )
...
Creates new `pageserver_api` and `safekeeper_api` crates to serve as the
shared dependencies. Should reduce both recompile times and cold compile
times.
Decreases the size of the optimized `neon_local` binary: 380M -> 179M.
No significant changes for anything else (mostly as expected).
2022-10-04 11:14:45 -07:00
Arthur Petukhovsky
566e816298
Refactor safekeeper timelines handling ( #2329 )
...
See https://github.com/neondatabase/neon/pull/2329 for details
2022-09-20 07:42:39 +00:00
Kirill Bulatov
b8eb908a3d
Rename old project name references
2022-09-14 08:14:05 +03:00
Ankur Srivastava
84d1bc06a9
refactor: replace lazy-static with once-cell ( #2195 )
...
- Replacing all the occurrences of lazy-static with `once-cell::sync::Lazy`
- fixes #1147
Signed-off-by: Ankur Srivastava <best.ankur@gmail.com >
2022-08-05 19:34:04 +02:00
Heikki Linnakangas
b4c74c0ecd
Clean up unnecessary dependencies.
...
Just to be tidy.
2022-07-20 16:31:25 +03:00
Arseny Sher
0e1bd57c53
Add WAL offloading to s3 on safekeepers.
...
Separate task is launched for each timeline and stopped when timeline doesn't
need offloading. Decision who offloads is done through etcd leader election;
currently there is no pre condition for participating, that's a TODO.
neon_local and tests infrastructure for remote storage in safekeepers added,
along with the test itself.
ref #1009
Co-authored-by: Anton Shyrabokau <ahtoxa@Antons-MacBook-Pro.local >
2022-05-27 06:19:23 +04:00
Kirill Bulatov
51c0f9ab2b
Force git version to be up to date via decl macro
2022-05-13 16:34:32 +03:00
Kirill Bulatov
de37f982db
Share the remote storage as a crate
2022-05-07 00:30:36 +03:00
Kirill Bulatov
d4e155aaa3
Librarify common etcd timeline logic
2022-05-06 22:32:57 +03:00
Dmitry Ivanov
d3f356e7a8
Update rust-postgres project-wide ( #1525 )
...
* Update `rust-postgres` project-wide
This commit points to https://github.com/neondatabase/rust-postgres/commits/neon
in order to test our patches on top of the latest version of this crate.
* [proxy] Update `hmac` and `sha2`
2022-04-22 17:31:58 +03:00
Kirill Bulatov
81cad6277a
Move and library crates into a dedicated directory and rename them
2022-04-21 13:30:33 +03:00
Kirill Bulatov
81417788c8
walkeeper -> safekeeper
2022-04-18 12:52:31 +03:00