Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add gc worker #408

Merged
merged 1 commit into from
May 10, 2023
Merged

feat: add gc worker #408

merged 1 commit into from
May 10, 2023

Conversation

will-2012
Copy link
Collaborator

@will-2012 will-2012 commented May 9, 2023

Description

Add GC worker.

Rationale

Add a GC worker inside the manager module, periodically obtain the deleted object list from the metadata, delete their specific data in the piece store, and free the storage space.
The GC worker will be refactored according to the design of the task scheduler and task node in the future.

Example

N/A.

Changes

Notable changes:

  • manager: add gc worker.

@will-2012 will-2012 added the wip Working in process label May 9, 2023
@will-2012 will-2012 marked this pull request as draft May 9, 2023 10:53
@will-2012 will-2012 force-pushed the feat-gc-worker branch 3 times, most recently from 612381c to 1ac71e3 Compare May 9, 2023 13:38
@will-2012 will-2012 added r4r Ready for review and removed wip Working in process labels May 10, 2023
@will-2012 will-2012 marked this pull request as ready for review May 10, 2023 01:52
@will-2012 will-2012 requested review from sysvm and BarryTong65 May 10, 2023 01:55
Copy link
Collaborator

@sysvm sysvm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@will-2012 will-2012 merged commit 76b3dd8 into develop May 10, 2023
joeylichang added a commit that referenced this pull request May 15, 2023
* feat: sp services add pprof

* feat:block syncer add read concurrency support

* fix: rename pprof var name

* fix:debug log

* fix: fix the content of sp readme

* feat: add universal endpoint view option (#383)

* feat: add universal endpoint view option

fix: imports

* fix: add space before comments

* fix: put header in right place (#385)

* feat: signer async send sealObject tx

* fix: simplify gnfd client signature test case

* fix: return function when get nonce on chain failed

* fix: annotation

* fix: cross region netroek opt

* feat: implement stop serving on testnet (#336)

* feat: localup shell adds generate sp.info and db.info function (#398)

* feat: localup shell adds generate sp.info and db.info function

* fix: fix reset db function name

* feat: support full-memory replicate task (#410)

* feat: add gc worker (#408)

* feat: bsdb switch (#402)

* feat: update metadata db config and startDBSwitchListener
* feat: update e2e config
* fix: rename bsdbflag and update config/config_template.toml

* feat:add upload download add bandwidth limit

* feat: list objects pagination & folder path (#404)

* feat: add pagination for list objects

* fix: define constant queries & update func name

* fix: update filter for listobjects when delimiter is empty

* fix: refine query name

* fix: nil config.SQLDBConfig (#413)

* feat: add get object meta and get bucket meta apis (#412)

* feat: add get object and get bucket with payment apis

feat: modify long name

feat: sort import correctly

fix: typos

fix: typo

* fix: address comments, change path params to query params

fix: typo

* feat: add unit tests for new apis

* fix: rename services and comments according to comments

fix: import position

* fix:BandwidthLimit config

* fix:bandwidth config

* feat: adapt greenfield v0.47 (#406)

* fix: upgrade greenfield version to v0.2.0 (#415)

Co-authored-by: VM <arimas@foxmail.com>

* feat: add dual db warm up support for blocksyncer (#401)

* feat: add dual db warm up support for blocksyncer

* feat: add stop main service logic

* feat: update chain version to v0.47 and some adapts

* fix: upgrade e2e ci greenfield version to v0.2.0 (#418)

Co-authored-by: VM <arimas@foxmail.com>

* docs: add v0.2.0 changelog (#417)

* docs: add v0.2.0 changelog

* fix: add blocksycner dual db feature in changelog

* docs: add localup shell feature in changelog

---------

Co-authored-by: actioncli <joeycli0919@qq.com>
Co-authored-by: krish-nr <krish.z@nodereal.io>
Co-authored-by: VM <arimas@foxmail.com>

* feat: replace github.com/gogo/protobuf with github.com/cosmos/gogoproto (#422)

---------

Co-authored-by: VM <arimas@foxmail.com>
Co-authored-by: constwz <changbohao30@gmail.com>
Co-authored-by: Annie <108039750+annielz@users.noreply.github.com>
Co-authored-by: j75689 <j75689@gmail.com>
Co-authored-by: constwz <122766871+constwz@users.noreply.github.com>
Co-authored-by: forcodedancing <just.haha.it@gmail.com>
Co-authored-by: VM <112189277+sysvm@users.noreply.github.com>
Co-authored-by: will-2012 <117156346+will-2012@users.noreply.github.com>
Co-authored-by: Barry <122767193+BarryTong65@users.noreply.github.com>
Co-authored-by: Chris Li <jingjunLi@users.noreply.github.com>
Co-authored-by: krish-z <122767080+krish-nr@users.noreply.github.com>
Co-authored-by: actioncli <joeycli0919@qq.com>
Co-authored-by: krish-nr <krish.z@nodereal.io>
Co-authored-by: yutianwu <wzxingbupt@gmail.com>
@will-2012 will-2012 deleted the feat-gc-worker branch May 26, 2023 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
r4r Ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants