Skip to content

grpc: Service for triggering indexer pruning - #1260

Closed
werty144 wants to merge 156 commits into
feature/adr101-pull-companionfrom
anton/issue1258_grpc_for_pruning
Closed

werty144 wants to merge 156 commits into
feature/adr101-pull-companionfrom
anton/issue1258_grpc_for_pruning

Conversation

@werty144

@werty144 werty144 commented Aug 17, 2023 •

Copy link
Copy Markdown
Contributor

Closes #1258


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

Comment thread state/store_test.go Resolved
@andynog andynog added the P:storage-optimization Priority: Give operators greater control over storage and storage optimization label Sep 1, 2023
werty144 pushed a commit that referenced this pull request Sep 11, 2023
@werty144

Copy link
Copy Markdown
Contributor Author

Superseded by #1327

@werty144 werty144 closed this Sep 12, 2023
jmalicevic pushed a commit that referenced this pull request Sep 19, 2023
* done gRPC endpoint for TxIndexer and BlockIndexer pruning

* re-ordering function signatures (#1260)

* added .changelog

---------

Co-authored-by: Andy Nogueira <[email protected]>
jmalicevic pushed a commit that referenced this pull request Oct 11, 2023
* done gRPC endpoint for TxIndexer and BlockIndexer pruning

* re-ordering function signatures (#1260)

* added .changelog

---------

Co-authored-by: Andy Nogueira <[email protected]>
jmalicevic added a commit that referenced this pull request Oct 13, 2023
* indexer: Implement pruning mechanism (#1176)

* done stateDB writes batching

* remove forgotten debug print

* benchmarking for state db save

* state db save benchmarking

* batching in store

* benchmarking for store batching

* Added pruning mechanism  -initial version

* removed comments

* Rewrore pruning mechanism as service. Working code but tests need to change.

* Minor edits

* Removed comments

* Fixed linter

* Fixed linter

* Fixed state and block store tests
Proper ticker used instead of sleep for pruning service job

* Fixed failing http test

* fixed linter errors and reduced sleep in http test

* Fixed e2e test and failing linter

* Applied some of @thanethomson's PR comments

* add changelog

* Separated retain height functions

* fixed linter and test

* Fixed code in select min height`

* Fixed bugs causing failing tests

* Added config flag for companion initial height
Fixed failing test due to wrong check on blockstore base height

* Tested setting the companion initial height via config.
Moved pruner initialization into blockExecutor again.

* Added config for pruning frequency

* minor

* Added additional test for companion retain height setting

* script for adjasting test loadtime parameeters

* Added simple testing tool for goleveldb

* measuring tool + pruning setting

* draft of tx_index pruning

* using bus to prune tx_index

* draft of pruning

* working prototipe on tx_index txIndexer pruning

* consensus: Fix test broken due to missing state store mocks

Signed-off-by: Thane Thomson <[email protected]>

* config: Refactor to match updated ADR

ADR-101 was updated recently to reflect the desired configuration file
changes - this updates the code to match the ADR.

It also changes the "frequency" variable to more accurately be called an
"interval", since it represents a sleep period between pruning
operations as opposed to the number of times it should be run per
second. The interval is also defined as a time.Duration now to
facilitate more ergonomic usage from the configuration file.

Signed-off-by: Thane Thomson <[email protected]>

* Format

Signed-off-by: Thane Thomson <[email protected]>

* state: Rename pruner sleep time to "interval"

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruner config

Make the pruner config private such that its configuration is fixed at
runtime. With the previous approach, the PrunerInterval method could be
abused to change the interval at runtime since it returns a function
that can operate on the public type.

Signed-off-by: Thane Thomson <[email protected]>

* state: Fix minor nits in function docstrings

Signed-off-by: Thane Thomson <[email protected]>

* state: Remove unused method

Signed-off-by: Thane Thomson <[email protected]>

* state: Remove unnecessary OnStart/OnStop logic

The base service OnStart/OnStop logic is purposefully empty, so there's
no need to explicitly call it. And by not defining the OnStop method on
Pruner the base service's OnStop (a noop) will automatically be called
because of Go's "inheritance" mechanism.

Signed-off-by: Thane Thomson <[email protected]>

* state: Make pruner belong to Node primarily

Move the pruner "ownership" the Node. This doesn't actually have a
meaningful effect on the lifetime of the pruner, but it is more of a
signal to readers of the code that it should be considered a service in
its own right, and the block executor simply has access to it to trigger
one method call.

Signed-off-by: Thane Thomson <[email protected]>

* store: Format comment for readability

Signed-off-by: Thane Thomson <[email protected]>

* state: Add docstring for PruneABCIResponses

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruningRoutine to condense logging

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruningRoutine - extract function for block pruning

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruningRoutine - extract function for ABCI result pruning

Signed-off-by: Thane Thomson <[email protected]>

* node: Only save companion retain height on startup if not yet present

Expand the check on node creation to only set the companion retain
height if 3 conditions are met:

1. The companion retain height has not yet been set previously.
2. The companion is enabled.
3. The configured companion retain height is > 0.

Signed-off-by: Thane Thomson <[email protected]>

* config: Impose restriction on pruning interval to be > 0

Signed-off-by: Thane Thomson <[email protected]>

* test for txindex pruning

* node: Fail construction if setting data companion retain height fails

Signed-off-by: Thane Thomson <[email protected]>

* node: Start pruner on node startup after state sync

Signed-off-by: Thane Thomson <[email protected]>

* light: Remove sleep from test

Signed-off-by: Thane Thomson <[email protected]>

* state: Handle error cases where retain height keys are not set

Signed-off-by: Thane Thomson <[email protected]>

* state: Make Pruner.FindMinRetainHeight private

Signed-off-by: Thane Thomson <[email protected]>

* state: Improve logging in block executor pruning

Signed-off-by: Thane Thomson <[email protected]>

* block indexer pruning + test

* Format

Signed-off-by: Thane Thomson <[email protected]>

* state: Export FindMinRetainHeight exclusively for testing

Signed-off-by: Thane Thomson <[email protected]>

* node: Extract function for initializing companion retain height

Signed-off-by: Thane Thomson <[email protected]>

* Add changelog entries

Signed-off-by: Thane Thomson <[email protected]>

* docs: Update configuration-related content

Signed-off-by: Thane Thomson <[email protected]>

* finilizing

* undoing testing setup

* Revert "done stateDB writes batching"

This reverts commit 78d8d38.

* Revert "benchmarking for state db save"

This reverts commit f3b757a.

* Revert "batching in store"

This reverts commit 7ca253f.

* Revert "benchmarking for store batching"

This reverts commit 2fa2e38.

* Revert "add changelog"

This reverts commit ec60b4a.

* Revert "fixed linter and test"

This reverts commit fac927e.

* Revert "remove forgotten comments"

This reverts commit fae7d59.

* fixed go.sum

* shut up linter

* add changelog

* node: Stop pruner when the node stops

Signed-off-by: Thane Thomson <[email protected]>

* Remove redundunt variable

Co-authored-by: Thane Thomson <[email protected]>

* remove redundunt search for block heights

* rebased to PR 1150

* state: Refactor ABCI response pruning

Signed-off-by: Thane Thomson <[email protected]>

* state: Add parameter names to Store interface for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Rename helper for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Optimize ABCI responses pruning

Avoid iterating through all possible heights when pruning ABCI
responses.

Signed-off-by: Thane Thomson <[email protected]>

* Fixed couting of the last height pruned for abci respnses and blocks

* Set application retain height on startup to avoid pruning by the data companion
before the application has indicated so

* Apply suggestions from code review

Co-authored-by: Thane Thomson <[email protected]>

* Set app retain height on startup only if it was not set before

* Fixed linter

* Simplified abci res pruning

* fixed tests to support indexerService in pruner

* forgotten file

* updated test

* ADR 101: Recommended updates to pruner service (#1201)

* state: Reference retain heights instead of pruned heights for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Explicitly assign variable values for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor - early returns

Signed-off-by: Thane Thomson <[email protected]>

* state: Add mutex to Pruner to serialize retain height setting requests

Signed-off-by: Thane Thomson <[email protected]>

* state: Add convenience getters to Pruner

Signed-off-by: Thane Thomson <[email protected]>

* state: Export Pruner errors

Signed-off-by: Thane Thomson <[email protected]>

* state: Rename PrunerInterval option to WithPrunerInterval for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Fix error message references

Signed-off-by: Thane Thomson <[email protected]>

---------

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: Jasmina Malicevic <[email protected]>

* ADR 101: Add observer for pruner (#1183)

* state: Add observer for Pruner

Signed-off-by: Thane Thomson <[email protected]>

* state: Wire in pruner observer

Signed-off-by: Thane Thomson <[email protected]>

* state: Make test more deterministic

Signed-off-by: Thane Thomson <[email protected]>

* Fix renames

Signed-off-by: Thane Thomson <[email protected]>

* state: Simplify NoopPrunerObserver usage

Signed-off-by: Thane Thomson <[email protected]>

* state: Fix order of expected/actual params in assertion

Signed-off-by: Thane Thomson <[email protected]>

* state: Clarify field meanings

Signed-off-by: Thane Thomson <[email protected]>

---------

Signed-off-by: Thane Thomson <[email protected]>

* persisting last retained height for the block indexer

* separate index pruning

* adjust go.sum

* Separated ABCI result pruning into separate routine

Added observer into the pruner tests.

* optimizing event search

* linter fix

* pruning benchmark

* fix linter

* persisting indexer retain height

* indexer last retain height

* fix linter

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* remove reduntant dependencies

* added separate persisting of block and tx indexer retain heights

* ADR-101: implement gRPC `PruningService` (#1154)

* proto: Add proto files for the PruningService

* proto: generate *.pb.go files for PruningService

* config: add grpc.privileged incl. pruning_service

As described in ADR-101, add the node configuration section named
grpc.privileged to control the privileged server socket,
containing a pruning_service section for the pruning service.

* config: add pruning service config to the template

* grpc: package for privileged server

The privileged server optionally instantiated with the pruning service.

* node: add setup for the privileged gRPC server

* rpc: enable PruningService in test helper config

Also stop the makeAddrs function from growing grotesquely repetitive
and replace it with makeAddr returning a single, supposedly random,
local address string.

* grpc: privileged client with PruningService

Add client-side support for the privileged connection that features
an optionally enabled pruning service.

* e2e tests for PruningService

* config: refer to [storage.pruning] section in config.toml

Replace potentially confusing text in the comments on the pruning service configuration.

Co-authored-by: Thane Thomson <[email protected]>

* grpc: tracing with error logs for PruningService

---------

Co-authored-by: Andy Nogueira <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>

* Update state/txindex/indexer_service.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* Update state/indexer/block/kv/kv.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* ADR-101: Metrics to monitor the pruning  (#1234)

* Metrics to report on the data companion retain height

* Added metric to report the application retain height as well

* Added metrics to report the blockstore base height and the abci results base height
---------

Co-authored-by: Thane Thomson <[email protected]>

* using built in bytes function

* fix missing import

* reducing self-written functions

* exporting getKeys for testing

* removing indexer service as middle layer between indexers and pruner

* separate tx and block indexers

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* fix naming

* revert go.mod go.sum changes

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* fix ill merge resolution

* batch pruning

* block indexer: non-nil keyArray

* block indexer: remove event keys record optimization

* block indexer: remove getEventKeys optimization

* periodically flushing pruning batch

* revert package renaming, delete unused functions

* minor changes

* .changelog: add missing method to pruner update

* txindexer: change panic to returning an error

* remove exposal of GetKeys outside testing

---------

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: Jasmina Malicevic <[email protected]>
Co-authored-by: Adi Seredinschi <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>
Co-authored-by: Mikhail Zabaluev <[email protected]>
Co-authored-by: Andy Nogueira <[email protected]>

* Fixed bad merge

* Fixed changelog structure

* Fixed changelog order

* gRPC for Tx and Block indexer pruning (#1327)

* done gRPC endpoint for TxIndexer and BlockIndexer pruning

* re-ordering function signatures (#1260)

* added .changelog

---------

Co-authored-by: Andy Nogueira <[email protected]>

* fixed lint

---------

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: werty144 <[email protected]>
Co-authored-by: Adi Seredinschi <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>
Co-authored-by: Mikhail Zabaluev <[email protected]>
Co-authored-by: Andy Nogueira <[email protected]>
lasarojc pushed a commit that referenced this pull request Nov 13, 2023
* indexer: Implement pruning mechanism (#1176)

* done stateDB writes batching

* remove forgotten debug print

* benchmarking for state db save

* state db save benchmarking

* batching in store

* benchmarking for store batching

* Added pruning mechanism  -initial version

* removed comments

* Rewrore pruning mechanism as service. Working code but tests need to change.

* Minor edits

* Removed comments

* Fixed linter

* Fixed linter

* Fixed state and block store tests
Proper ticker used instead of sleep for pruning service job

* Fixed failing http test

* fixed linter errors and reduced sleep in http test

* Fixed e2e test and failing linter

* Applied some of @thanethomson's PR comments

* add changelog

* Separated retain height functions

* fixed linter and test

* Fixed code in select min height`

* Fixed bugs causing failing tests

* Added config flag for companion initial height
Fixed failing test due to wrong check on blockstore base height

* Tested setting the companion initial height via config.
Moved pruner initialization into blockExecutor again.

* Added config for pruning frequency

* minor

* Added additional test for companion retain height setting

* script for adjasting test loadtime parameeters

* Added simple testing tool for goleveldb

* measuring tool + pruning setting

* draft of tx_index pruning

* using bus to prune tx_index

* draft of pruning

* working prototipe on tx_index txIndexer pruning

* consensus: Fix test broken due to missing state store mocks

Signed-off-by: Thane Thomson <[email protected]>

* config: Refactor to match updated ADR

ADR-101 was updated recently to reflect the desired configuration file
changes - this updates the code to match the ADR.

It also changes the "frequency" variable to more accurately be called an
"interval", since it represents a sleep period between pruning
operations as opposed to the number of times it should be run per
second. The interval is also defined as a time.Duration now to
facilitate more ergonomic usage from the configuration file.

Signed-off-by: Thane Thomson <[email protected]>

* Format

Signed-off-by: Thane Thomson <[email protected]>

* state: Rename pruner sleep time to "interval"

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruner config

Make the pruner config private such that its configuration is fixed at
runtime. With the previous approach, the PrunerInterval method could be
abused to change the interval at runtime since it returns a function
that can operate on the public type.

Signed-off-by: Thane Thomson <[email protected]>

* state: Fix minor nits in function docstrings

Signed-off-by: Thane Thomson <[email protected]>

* state: Remove unused method

Signed-off-by: Thane Thomson <[email protected]>

* state: Remove unnecessary OnStart/OnStop logic

The base service OnStart/OnStop logic is purposefully empty, so there's
no need to explicitly call it. And by not defining the OnStop method on
Pruner the base service's OnStop (a noop) will automatically be called
because of Go's "inheritance" mechanism.

Signed-off-by: Thane Thomson <[email protected]>

* state: Make pruner belong to Node primarily

Move the pruner "ownership" the Node. This doesn't actually have a
meaningful effect on the lifetime of the pruner, but it is more of a
signal to readers of the code that it should be considered a service in
its own right, and the block executor simply has access to it to trigger
one method call.

Signed-off-by: Thane Thomson <[email protected]>

* store: Format comment for readability

Signed-off-by: Thane Thomson <[email protected]>

* state: Add docstring for PruneABCIResponses

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruningRoutine to condense logging

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruningRoutine - extract function for block pruning

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor pruningRoutine - extract function for ABCI result pruning

Signed-off-by: Thane Thomson <[email protected]>

* node: Only save companion retain height on startup if not yet present

Expand the check on node creation to only set the companion retain
height if 3 conditions are met:

1. The companion retain height has not yet been set previously.
2. The companion is enabled.
3. The configured companion retain height is > 0.

Signed-off-by: Thane Thomson <[email protected]>

* config: Impose restriction on pruning interval to be > 0

Signed-off-by: Thane Thomson <[email protected]>

* test for txindex pruning

* node: Fail construction if setting data companion retain height fails

Signed-off-by: Thane Thomson <[email protected]>

* node: Start pruner on node startup after state sync

Signed-off-by: Thane Thomson <[email protected]>

* light: Remove sleep from test

Signed-off-by: Thane Thomson <[email protected]>

* state: Handle error cases where retain height keys are not set

Signed-off-by: Thane Thomson <[email protected]>

* state: Make Pruner.FindMinRetainHeight private

Signed-off-by: Thane Thomson <[email protected]>

* state: Improve logging in block executor pruning

Signed-off-by: Thane Thomson <[email protected]>

* block indexer pruning + test

* Format

Signed-off-by: Thane Thomson <[email protected]>

* state: Export FindMinRetainHeight exclusively for testing

Signed-off-by: Thane Thomson <[email protected]>

* node: Extract function for initializing companion retain height

Signed-off-by: Thane Thomson <[email protected]>

* Add changelog entries

Signed-off-by: Thane Thomson <[email protected]>

* docs: Update configuration-related content

Signed-off-by: Thane Thomson <[email protected]>

* finilizing

* undoing testing setup

* Revert "done stateDB writes batching"

This reverts commit 78d8d38.

* Revert "benchmarking for state db save"

This reverts commit f3b757a.

* Revert "batching in store"

This reverts commit 7ca253f.

* Revert "benchmarking for store batching"

This reverts commit 2fa2e38.

* Revert "add changelog"

This reverts commit ec60b4a.

* Revert "fixed linter and test"

This reverts commit fac927e.

* Revert "remove forgotten comments"

This reverts commit fae7d59.

* fixed go.sum

* shut up linter

* add changelog

* node: Stop pruner when the node stops

Signed-off-by: Thane Thomson <[email protected]>

* Remove redundunt variable

Co-authored-by: Thane Thomson <[email protected]>

* remove redundunt search for block heights

* rebased to PR 1150

* state: Refactor ABCI response pruning

Signed-off-by: Thane Thomson <[email protected]>

* state: Add parameter names to Store interface for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Rename helper for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Optimize ABCI responses pruning

Avoid iterating through all possible heights when pruning ABCI
responses.

Signed-off-by: Thane Thomson <[email protected]>

* Fixed couting of the last height pruned for abci respnses and blocks

* Set application retain height on startup to avoid pruning by the data companion
before the application has indicated so

* Apply suggestions from code review

Co-authored-by: Thane Thomson <[email protected]>

* Set app retain height on startup only if it was not set before

* Fixed linter

* Simplified abci res pruning

* fixed tests to support indexerService in pruner

* forgotten file

* updated test

* ADR 101: Recommended updates to pruner service (#1201)

* state: Reference retain heights instead of pruned heights for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Explicitly assign variable values for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Refactor - early returns

Signed-off-by: Thane Thomson <[email protected]>

* state: Add mutex to Pruner to serialize retain height setting requests

Signed-off-by: Thane Thomson <[email protected]>

* state: Add convenience getters to Pruner

Signed-off-by: Thane Thomson <[email protected]>

* state: Export Pruner errors

Signed-off-by: Thane Thomson <[email protected]>

* state: Rename PrunerInterval option to WithPrunerInterval for clarity

Signed-off-by: Thane Thomson <[email protected]>

* state: Fix error message references

Signed-off-by: Thane Thomson <[email protected]>

---------

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: Jasmina Malicevic <[email protected]>

* ADR 101: Add observer for pruner (#1183)

* state: Add observer for Pruner

Signed-off-by: Thane Thomson <[email protected]>

* state: Wire in pruner observer

Signed-off-by: Thane Thomson <[email protected]>

* state: Make test more deterministic

Signed-off-by: Thane Thomson <[email protected]>

* Fix renames

Signed-off-by: Thane Thomson <[email protected]>

* state: Simplify NoopPrunerObserver usage

Signed-off-by: Thane Thomson <[email protected]>

* state: Fix order of expected/actual params in assertion

Signed-off-by: Thane Thomson <[email protected]>

* state: Clarify field meanings

Signed-off-by: Thane Thomson <[email protected]>

---------

Signed-off-by: Thane Thomson <[email protected]>

* persisting last retained height for the block indexer

* separate index pruning

* adjust go.sum

* Separated ABCI result pruning into separate routine

Added observer into the pruner tests.

* optimizing event search

* linter fix

* pruning benchmark

* fix linter

* persisting indexer retain height

* indexer last retain height

* fix linter

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* remove reduntant dependencies

* added separate persisting of block and tx indexer retain heights

* ADR-101: implement gRPC `PruningService` (#1154)

* proto: Add proto files for the PruningService

* proto: generate *.pb.go files for PruningService

* config: add grpc.privileged incl. pruning_service

As described in ADR-101, add the node configuration section named
grpc.privileged to control the privileged server socket,
containing a pruning_service section for the pruning service.

* config: add pruning service config to the template

* grpc: package for privileged server

The privileged server optionally instantiated with the pruning service.

* node: add setup for the privileged gRPC server

* rpc: enable PruningService in test helper config

Also stop the makeAddrs function from growing grotesquely repetitive
and replace it with makeAddr returning a single, supposedly random,
local address string.

* grpc: privileged client with PruningService

Add client-side support for the privileged connection that features
an optionally enabled pruning service.

* e2e tests for PruningService

* config: refer to [storage.pruning] section in config.toml

Replace potentially confusing text in the comments on the pruning service configuration.

Co-authored-by: Thane Thomson <[email protected]>

* grpc: tracing with error logs for PruningService

---------

Co-authored-by: Andy Nogueira <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>

* Update state/txindex/indexer_service.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* Update state/indexer/block/kv/kv.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* ADR-101: Metrics to monitor the pruning  (#1234)

* Metrics to report on the data companion retain height

* Added metric to report the application retain height as well

* Added metrics to report the blockstore base height and the abci results base height
---------

Co-authored-by: Thane Thomson <[email protected]>

* using built in bytes function

* fix missing import

* reducing self-written functions

* exporting getKeys for testing

* removing indexer service as middle layer between indexers and pruner

* separate tx and block indexers

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* fix naming

* revert go.mod go.sum changes

* Update state/pruner.go

Co-authored-by: Jasmina Malicevic <[email protected]>

* fix ill merge resolution

* batch pruning

* block indexer: non-nil keyArray

* block indexer: remove event keys record optimization

* block indexer: remove getEventKeys optimization

* periodically flushing pruning batch

* revert package renaming, delete unused functions

* minor changes

* .changelog: add missing method to pruner update

* txindexer: change panic to returning an error

* remove exposal of GetKeys outside testing

---------

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: Jasmina Malicevic <[email protected]>
Co-authored-by: Adi Seredinschi <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>
Co-authored-by: Mikhail Zabaluev <[email protected]>
Co-authored-by: Andy Nogueira <[email protected]>

* Fixed bad merge

* Fixed changelog structure

* Fixed changelog order

* gRPC for Tx and Block indexer pruning (#1327)

* done gRPC endpoint for TxIndexer and BlockIndexer pruning

* re-ordering function signatures (#1260)

* added .changelog

---------

Co-authored-by: Andy Nogueira <[email protected]>

* fixed lint

---------

Signed-off-by: Thane Thomson <[email protected]>
Co-authored-by: werty144 <[email protected]>
Co-authored-by: Adi Seredinschi <[email protected]>
Co-authored-by: Thane Thomson <[email protected]>
Co-authored-by: Mikhail Zabaluev <[email protected]>
Co-authored-by: Andy Nogueira <[email protected]>
@zrbecker
zrbecker deleted the anton/issue1258_grpc_for_pruning branch February 7, 2025 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

grpc Anything relating to the gRPC API P:storage-optimization Priority: Give operators greater control over storage and storage optimization storage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants