zstandard compression for parameters and results#5995
zstandard compression for parameters and results#5995guzzijones wants to merge 71 commits intoStackStorm:masterfrom
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 |
cognifloyd
left a comment
There was a problem hiding this comment.
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 <cognifloyd@gmail.com>
… found in api response
remove comment Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
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? |
|
Are we any closer to a release so we can eventually merge this? |
why
mitigate (as much as possible) 'document too large' mongo exceptions. 16 mb is the limit for mongodb document size.
done
executionDBmodel for theliveactionparamter as it is now a string as opposed to an embedded document