-
-
Notifications
You must be signed in to change notification settings - Fork 746
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
zstandard compression for parameters and results #5995
base: master
Are you sure you want to change the base?
Conversation
st2common/tests/unit/migrations/test_v35_migrate_db_dict_field_values.py
Outdated
Show resolved
Hide resolved
@amanda11 @cognifloyd would you please take a look at this and give me some feedback. I am interested in if the direction the code is going in is acceptable. We are having numerous instances now of mongo documents being too large. I ran a check and one of the larger objects we have would compress down to .5 mb from 10 mb using zstandard. |
Benchmark resultsTLDR. The cost here is minimal from a speed perspective
|
This will require a data migration for the |
data migration tested
|
I added a config option to turn off zstandard compression for parameters and results in the execution db and the liveaction db |
|
st2common/bin/migrations/v3.9/st2-migrate-liveaction-executiondb
Outdated
Show resolved
Hide resolved
st2common/bin/migrations/v3.9/st2-migrate-liveaction-executiondb
Outdated
Show resolved
Hide resolved
I changed to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the migration, I wonder if there's a raw query we can use that delegates the migration to mongo. Something like {"$set": {"liveaction_id": doc.liveaction.id}}
Since |
also, what is up with the circle-ci failures? is there anything we can do to fix that? |
I changed the migration to use a raw query. I couldn't get it to work in one update statement so I had to write a for loop. |
Co-authored-by: Jacob Floyd <[email protected]>
… found in api response
remove comment Co-authored-by: Jacob Floyd <[email protected]>
2433cb0
to
798bd78
Compare
I rebased the changes. Now that we completed the mongo, python3.9, 3.10 migration code can we look at this again? |
why
mitigate (as much as possible) 'document too large' mongo exceptions. 16 mb is the limit for mongodb document size.
done
executionDB
model for theliveaction
paramter as it is now a string as opposed to an embedded document