Gaius
1d033d2a61
feat: add download_piece_from_source to task ( #90 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-14 17:50:05 +08:00
Gaius
c22e170be1
feat: implement download piece in task ( #89 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-13 18:19:30 +08:00
Gaius
8fe0ea6e0e
feat: optimize storage func ( #88 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-12 12:09:07 +08:00
dependabot[bot]
4447232630
chore(deps): Bump actions/checkout from 3 to 4 ( #87 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 20:28:10 +08:00
Gaius
781aebc79a
fix: get available schedulers from manager ( #86 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-11 15:22:10 +08:00
AngrySean
2a2dd73ad7
refactor: reduce the lock scope ( #85 )
2023-09-11 09:15:35 +08:00
Gaius
60111f8851
feat: refresh scheduler client endpoints when grpc initialized ( #84 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-08 18:00:03 +08:00
Gaius
0a2d8ea5fc
feat: run server uses clone shutdown ( #83 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-08 13:46:46 +08:00
Gaius
028dcea0ae
feat: optimize shutdown and add clone to shutdown ( #82 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-08 12:05:58 +08:00
Gaius
0bafb3394e
feat: add RwLock to dynconfig data ( #81 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-07 22:05:40 +08:00
Gaius
dd976107b7
feat: replace mut with clone in grpc ( #80 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-07 12:25:22 +08:00
Gaius
3f832ef4d9
feat: manager_client use arc to avoid tokio:span move variable ( #79 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-09-07 11:27:50 +08:00
AngrySean
ff815807d9
refactor: remove unnessery mut ( #74 )
...
* refactor: remove unnessery mut
1. mut is like a virus in rust, the grpc channel is cloneable, and
it's trival to clone the object, so we could clone the client to
avoid mut ref
2. use anyhow context instead of unwrap the result
3. use anyhow::Error instead of Box<dyn Error>
Signed-off-by: xujihui1985 <xujihui1985@gmail.com>
* fix: cargo fmt
Signed-off-by: xujihui1985 <xujihui1985@gmail.com>
---------
Signed-off-by: xujihui1985 <xujihui1985@gmail.com>
2023-09-05 10:47:16 +08:00
Gaius
c4af079617
feat: refresh available_scheduler and available_scheduler_cluster_id ( #73 )
...
Dynconfig will be periodically refreshed avaliable-schedulers and
available_scheduler_cluster_id from manager.
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-28 20:52:03 +08:00
Gaius
f4bd6b5180
feat: add GIT_HASH to announcer request ( #72 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-28 17:30:07 +08:00
Gaius
c44225b018
feat: add dynconfig to dfdaemon ( #70 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-28 16:51:14 +08:00
Gaius
09fcb6eed6
feat: add object_storage_port and scheduler_cluster_id to SchedulerAnnouncer ( #71 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-25 17:26:24 +08:00
Gaius
afbacb1102
feat: delete seed peer when shutting down ( #68 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-03 11:05:19 +08:00
Gaius
3ca018cf12
feat: add ManagerAnnouncer and SchedulerAnnouncer to client ( #67 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-08-02 19:50:38 +08:00
Gaius
cdafb45628
feat: update dragonfly-api verison and tonic version ( #64 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-28 16:02:48 +08:00
Gaius
bee7ac5fb0
feat: use channel to connect grpc ( #63 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-26 13:50:16 +08:00
Gaius
dfc1d5b872
feat: add announcer and id_generator to dfdaemon ( #61 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-25 21:32:06 +08:00
Gaius
ee612506ec
feat: add reflection to dfdaemon grpc server ( #60 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-20 16:10:22 +08:00
Gaius
b10d8b17ac
feat: add dfdaemon grpc server ( #59 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-20 12:53:54 +08:00
Gaius
162ae265bb
feat: add CompressionEncoding to dfdaemon grpc client ( #58 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-19 17:28:14 +08:00
Gaius
d5b43483a8
feat: add client of dfdaemon grpc ( #57 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-19 11:12:41 +08:00
Gaius
b22f153532
feat: add grpc client implements ( #56 )
2023-07-18 22:36:08 +08:00
Gaius
000de0ef2b
chore: rename crate name to dragonfly-client ( #55 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-18 14:19:40 +08:00
Gaius
e035f62cd5
feat: remove uploader in the client ( #54 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-13 15:41:35 +08:00
Gaius
d2865104e6
feat: add tokio to http backend and storage ( #53 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-13 14:47:38 +08:00
Gaius
5622a12f3e
feat: add http client to download piece ( #51 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-06 21:40:36 +08:00
Gaius
583fd05c7d
feat: optimize use crate ( #52 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-04 16:08:39 +08:00
Gaius
a477dba0d8
feat: remove state for piece ( #50 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-07-03 12:07:55 +08:00
Gaius
9491454c1c
feat: add reuse_piece to storage ( #49 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-30 18:30:54 +08:00
Gaius
86eab0b6ff
feat: optimize get_piece_state in storage ( #48 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-21 17:22:01 +08:00
Gaius
57aa01af64
feat: add error to storage ( #47 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-21 15:37:25 +08:00
Gaius
125f43ff08
feat: add storage and content to dfdaemon ( #46 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-20 17:10:42 +08:00
Gaius
960281117d
feat: add p2p functions in metadata ( #45 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-19 15:29:06 +08:00
Gaius
a3d1310a0e
feat: add metadata feature with rocksdb ( #44 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-16 18:22:05 +08:00
Gaius
23397196c8
feat: add default port const ( #43 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-08 19:02:11 +08:00
Gaius
ab6b37f5b1
feat: add graceful shutdown to multi servers ( #42 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-08 16:09:15 +08:00
Gaius
e0eb83f5ab
feat: add graceful shutdown to tokio ( #41 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-07 22:10:01 +08:00
Gaius
4f03015614
feat: remove health config ( #40 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-06 14:27:08 +08:00
Gaius
7aaf413d3f
feat: add health server ( #39 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-05 17:48:15 +08:00
Gaius
f5f9a76e14
feat: change convert to private func in config ( #38 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-05 12:22:42 +08:00
Gaius
9aa02821db
feat: support to get local ip with local-ip-address ( #37 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-02 19:11:55 +08:00
Gaius
0ae97a36d4
feat: add fields to config ( #36 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-06-02 18:41:42 +08:00
Gaius
1316e456f7
feat: add DOWNLOAD_PEER_COUNT and VERSION_GAUGE metrics ( #35 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-05-31 17:54:58 +08:00
Gaius
c7af9b1f32
feat: add metrics in client ( #33 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-05-24 12:23:23 +08:00
Gaius
5ce6cfcf60
feat: add jaeger layer to subscriber ( #30 )
...
Signed-off-by: Gaius <gaius.qi@gmail.com>
2023-05-18 15:33:22 +08:00