[SERVER-56507] Change default block compressor to Zstandard Created: 30/Apr/21  Updated: 04/Apr/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Vamsi Boyapati Assignee: Vamsi Boyapati
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-51735 Document server config file changes Closed
Problem/Incident
Related
is related to SERVER-56858 Change default order of network compr... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Storage - Ra 2021-05-03, Storage - Ra 2021-05-17
Participants:
Linked BF Score: 0
Story Points: 3

 Description   

At the moment, the default compressor is snappy and it will be changed to zstd.

The scope of this ticket is only to change the default block compressor from snappy to zstd. 

 Ability to customize the compression level is not part of this ticket. 



 Comments   
Comment by Luke Chen [ 28/May/21 ]

The change was reverted on both master and v5.0 branches.

Comment by Githook User [ 28/May/21 ]

Author:

{'name': 'Monica Ng', 'email': 'monica.ng@mongodb.com', 'username': 'mm-ng'}

Message: Revert "SERVER-56507 Change default block compressor to Zstandard"

This reverts commit 02d6940401bd6ff2696decc90dd01398f0bd6065.
Branch: v5.0
https://github.com/mongodb/mongo/commit/668b4b960866d0ed7bd57726c7be65a53c19d2d2

Comment by Githook User [ 28/May/21 ]

Author:

{'name': 'Monica Ng', 'email': 'monica.ng@mongodb.com', 'username': 'mm-ng'}

Message: Revert "SERVER-56507 Change default block compressor to Zstandard"

This reverts commit 02d6940401bd6ff2696decc90dd01398f0bd6065.
Branch: master
https://github.com/mongodb/mongo/commit/8572568d933c61cde410af65771baae16df1e313

Comment by Githook User [ 12/May/21 ]

Author:

{'name': 'Monica Ng', 'email': 'monica.ng@mongodb.com', 'username': 'mm-ng'}

Message: SERVER-56507 Change default block compressor to Zstandard
Branch: master
https://github.com/mongodb/mongo/commit/02d6940401bd6ff2696decc90dd01398f0bd6065

Comment by Vamsi Boyapati [ 07/May/21 ]

I have created separate patch builds for block compressor change and for journal compressor change.
Block compressor master patch build.
Block compressor perf patch build.
Journal compressor master patch build.
Journal compressor perf patch build.

Comment by Vamsi Boyapati [ 05/May/21 ]

As part of this ticket, we ran in to issue with upgrade/downgrade.
The options available are :
1. Explore FCV version setting

  1. 1a. Use zstd compressor when FCV equals 5.0
  2. 1b. Use snappy compressor when FCV equals 4.4
  3. 1c. Transition compressor when set FCV is called.
  4. #1ca. Switch the log file.
  5. 1d.Ensure startup works before FCV is available in 4.4 and 5.0 compatibility.
    2. Force transition to snappy on clean shutdown in 5.0
    3. Change compressor from zstd to snappy during shutdown while closing.
    4. 5.0 should be able to start with existing snappy log files.
Generated at Thu Feb 08 05:39:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.