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

Send small variables to storage without blob storage #8897

Merged

Conversation

khoaguin
Copy link
Member

@khoaguin khoaguin commented Jun 11, 2024

Issue: https://github.com/OpenMined/Heartbeat/issues/1274

  • Only save ActionObject to blob storage if it is bigger than a min_size variable (e.g. 16 MB)
  • The min size can be set with an environment variable (e.g. MIN_SIZE_BLOB_STORAGE_MB) so it can be configured when we change database implementations
  • Add tests for 2 cases: ActionObject bigger than MIN_SIZE_BLOB_STORAGE_MB and smaller than MIN_SIZE_BLOB_STORAGE_MB

- getting size of twin object before client uploading dataset
@khoaguin khoaguin self-assigned this Jun 11, 2024
@shubham3121 shubham3121 changed the title Send small variables to storage without blob storage [WIP] Send small variables to storage without blob storage Jun 11, 2024
khoaguin and others added 10 commits June 12, 2024 09:51
…n an env varialbe

- print out this min size in dev mode when launching nodes
…ge to node and `BlobStorageConfig`

- only pass the min size as an env varialbe so it can be read by both the client / server and can easily be configured by the client

Co-authored-by: Shubham Gupta <[email protected]>
…tings` and `BlobStorageConfig` which then is passed into a `Node`

- `Node` then pass this information around by `NodeMetadata` / `NodeMetadataJSON`
- Update utility methods to see if a client can upload an object to the blob storage
- Modify test in `blob_storage_test` to reflect these changes

Co-authored-by: Shubham Gupta <[email protected]>
…a try-catch

- if can't save the data to blob store, save the data to `syft_action_data_cache`
@khoaguin khoaguin changed the title [WIP] Send small variables to storage without blob storage Send small variables to storage without blob storage Jun 14, 2024
@madhavajay
Copy link
Collaborator

onhold for now.

Merge this later after this pr:
#8896

@madhavajay madhavajay removed the 0.8.7 label Jul 1, 2024
@madhavajay madhavajay added this to the 24Q3 - G1M2 Organic Fixes milestone Jul 1, 2024
Copy link
Member

@shubham3121 shubham3121 left a comment

Choose a reason for hiding this comment

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

@khoaguin left some comments.

@khoaguin
Copy link
Member Author

khoaguin commented Jul 3, 2024

Thank you very much for the review, @shubham3121. I changed accordingly

@shubham3121 shubham3121 merged commit 5b4c8e0 into OpenMined:dev Jul 3, 2024
23 checks passed
@khoaguin khoaguin deleted the save-small-variables-without-blob-storage branch July 3, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants