Skip to content

Commit 0747c9a

Browse files
feorlendjwfyiravindk89
authored
mention that tiny files are not compressed, also other typos (#1357)
Came up in a customer issue. Specifically the threshold is 4 kb and there is no configuration option. (Nor does Klaus want one.) Worth adding? With how much detail? The threshold choice is because of typical block size on disk. You will use at least that much anyway so why bother compressing. Staged: http://192.241.195.202:9000/staging/dont-compress-small-objects/linux/administration/object-management/data-compression.html#excluded-file-types Drive-by fix tacked onto this PR: correct typos in some `mc anonymous` examples. Staged: http://192.241.195.202:9000/staging/dont-compress-small-objects/linux/reference/minio-mc/mc-anonymous.html --------- Co-authored-by: Daryl White <[email protected]> Co-authored-by: Ravind Kumar <[email protected]>
1 parent f3f3206 commit 0747c9a

File tree

8 files changed

+22
-17
lines changed

8 files changed

+22
-17
lines changed

source/administration/object-management/data-compression.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ You can control which objects are compressed by specifying the desired file exte
4848
Excluded File Types
4949
~~~~~~~~~~~~~~~~~~~
5050

51-
Some data cannot be effectively compressed, such as video or already compressed data.
51+
Some data cannot be effectively compressed.
52+
For example: video, already compressed data, or files less than 4KiB.
5253
MinIO does not compress common incompressible file types, even if they are specified in the compression configuration.
5354

5455
Objects of these types are never compressed:

source/includes/common-mc-admin-config.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@
5454
- | ``application/zip``
5555
| ``application-x-zip-compressed``
5656
57+
* - Smaller than 4 KiB
58+
-
59+
-
60+
5761
.. end-minio-data-compression-default-excluded-desc
5862
5963
.. start-minio-data-compression-default-desc
@@ -116,4 +120,4 @@ Some settings have only an environment variable or a configuration setting, but
116120
Each configuration setting controls fundamental MinIO behavior and functionality.
117121
MinIO **strongly recommends** testing configuration changes in a lower environment, such as DEV or QA, before applying to production.
118122

119-
.. end-minio-settings-test-before-prod
123+
.. end-minio-settings-test-before-prod

source/reference/minio-mc/mc-anonymous-get-json.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Parameters
6565

6666
.. code-block:: shell
6767
68-
mc get-json public play/mybucket
68+
mc anonymous get-json public play/mybucket
6969
7070
Global Flags
7171
~~~~~~~~~~~~
@@ -101,4 +101,4 @@ S3 Compatibility
101101

102102
.. include:: /includes/common-minio-mc.rst
103103
:start-after: start-minio-mc-s3-compatibility
104-
:end-before: end-minio-mc-s3-compatibility
104+
:end-before: end-minio-mc-s3-compatibility

source/reference/minio-mc/mc-anonymous-get.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Parameters
6969

7070
.. code-block:: shell
7171
72-
mc get public play/mybucket
72+
mc anonymous get public play/mybucket
7373
7474
Global Flags
7575
~~~~~~~~~~~~
@@ -105,4 +105,4 @@ S3 Compatibility
105105

106106
.. include:: /includes/common-minio-mc.rst
107107
:start-after: start-minio-mc-s3-compatibility
108-
:end-before: end-minio-mc-s3-compatibility
108+
:end-before: end-minio-mc-s3-compatibility

source/reference/minio-mc/mc-anonymous-links.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Parameters
6767

6868
.. code-block:: shell
6969
70-
mc links public [FLAGS] play/mybucket
70+
mc anonymous links public [FLAGS] play/mybucket
7171
7272
.. mc-cmd:: --recursive
7373

@@ -108,4 +108,4 @@ S3 Compatibility
108108

109109
.. include:: /includes/common-minio-mc.rst
110110
:start-after: start-minio-mc-s3-compatibility
111-
:end-before: end-minio-mc-s3-compatibility
111+
:end-before: end-minio-mc-s3-compatibility

source/reference/minio-mc/mc-anonymous-list.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Parameters
6666

6767
.. code-block:: shell
6868
69-
mc list public play/mybucket
69+
mc anonymous list public play/mybucket
7070
7171
Global Flags
7272
~~~~~~~~~~~~
@@ -102,4 +102,4 @@ S3 Compatibility
102102

103103
.. include:: /includes/common-minio-mc.rst
104104
:start-after: start-minio-mc-s3-compatibility
105-
:end-before: end-minio-mc-s3-compatibility
105+
:end-before: end-minio-mc-s3-compatibility

source/reference/minio-mc/mc-anonymous-set-json.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Parameters
7272

7373
.. code-block:: shell
7474
75-
mc set-json public play/mybucket
75+
mc anonymous set-json public play/mybucket
7676
7777
Global Flags
7878
~~~~~~~~~~~~
@@ -127,4 +127,4 @@ S3 Compatibility
127127

128128
.. include:: /includes/common-minio-mc.rst
129129
:start-after: start-minio-mc-s3-compatibility
130-
:end-before: end-minio-mc-s3-compatibility
130+
:end-before: end-minio-mc-s3-compatibility

source/reference/minio-mc/mc-anonymous-set.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ Parameters
8787
prefix. For example:
8888

8989
.. code-block:: shell
90-
91-
mc set public play/mybucket
90+
91+
mc anonymous set public play/mybucket
9292
9393
Specify a bucket prefix to set the policy on only that prefix. For example,
9494
this command sets distinct anonymous bucket policies on the
9595
``mybucket/downloads`` and ``mybucket/uploads`` prefixes:
9696

9797
.. code-block:: shell
9898
99-
mc set download play/mybucket/downloads
100-
mc set upload play/mybucket/uploads
99+
mc anonymous set download play/mybucket/downloads
100+
mc anonymous set upload play/mybucket/uploads
101101
102102
Global Flags
103103
~~~~~~~~~~~~
@@ -136,4 +136,4 @@ S3 Compatibility
136136

137137
.. include:: /includes/common-minio-mc.rst
138138
:start-after: start-minio-mc-s3-compatibility
139-
:end-before: end-minio-mc-s3-compatibility
139+
:end-before: end-minio-mc-s3-compatibility

0 commit comments

Comments
 (0)