knuu icon indicating copy to clipboard operation
knuu copied to clipboard

Adding the capability of reading an entire folder for running knuu instances

Open staheri14 opened this issue 1 year ago • 3 comments

We are about to run a large scale test with 100 nodes, where each of them collect traced data locally inside a specific folder, and we wish to retrieve it from the instances all at once. Since the number of files in that folder varies based on the current state of the codebase (celstia-app), and the number of files can be high, it is less error prone and more reliable to read the entire folder at once, needless to keep track of the exact file names. This feature is not currently supported in knuu and its addition would be really appreciated!

staheri14 avatar Apr 24 '24 12:04 staheri14

I would propose something like this:

  • Having a sidecar that mounts the same PVCs as the main container (specified by using AddVolume())
  • The sidecar has logic installed to take files/folders and upload them to a S3 bucket (minio or external)
  • The sidecar exposes some CLI or API
  • Adding a function to knuu, like BackupFileToS3() that forwards that request to the sidecar

smuu avatar Apr 29 '24 09:04 smuu

we have discussed this topic to find the best way to solve it, we will add the following feature:

download_folder_flow

we'll create a new release as soon as it'll be done

cheers!

tty47 avatar May 03 '24 10:05 tty47

Ref: https://github.com/celestiaorg/knuu/issues/272

smuu avatar Jul 04 '24 14:07 smuu