Browse Source

Switch fleet's built-in ILM policies to use .actions.rollover.max_primary_shard_size (#99984)

Fixes #99983

Signed-off-by: Craig Rodrigues <rodrigc@crodrigues.org>
Craig Rodrigues 2 years ago
parent
commit
06e7127283

+ 6 - 0
docs/changelog/99984.yaml

@@ -0,0 +1,6 @@
+pr: 99984
+summary: Switch fleet's built-in ILM policies to use .actions.rollover.max_primary_shard_size
+area: ILM+SLM
+type: enhancement
+issues:
+ - 99983

+ 2 - 2
x-pack/plugin/core/template-resources/src/main/resources/fleet-actions-results-ilm-policy.json

@@ -4,7 +4,7 @@
       "min_age": "0ms",
       "actions": {
         "rollover": {
-          "max_size": "300gb",
+          "max_primary_shard_size": "300gb",
           "max_age": "30d"
         }
       }
@@ -22,4 +22,4 @@
     "description": "default policy for fleet action results indices",
     "managed": true
   }
-}
+}

+ 2 - 2
x-pack/plugin/core/template-resources/src/main/resources/fleet-file-fromhost-data-ilm-policy.json

@@ -4,7 +4,7 @@
       "min_age": "0ms",
       "actions": {
         "rollover": {
-          "max_size": "10gb",
+          "max_primary_shard_size": "10gb",
           "max_age": "7d"
         }
       }
@@ -22,4 +22,4 @@
     "description": "policy for fleet uploaded files",
     "managed": true
   }
-}
+}

+ 2 - 2
x-pack/plugin/core/template-resources/src/main/resources/fleet-file-fromhost-meta-ilm-policy.json

@@ -4,7 +4,7 @@
       "min_age": "0ms",
       "actions": {
         "rollover": {
-          "max_size": "10gb",
+          "max_primary_shard_size": "10gb",
           "max_age": "30d"
         }
       }
@@ -22,4 +22,4 @@
     "description": "policy for fleet uploaded file metadata",
     "managed": true
   }
-}
+}

+ 2 - 2
x-pack/plugin/core/template-resources/src/main/resources/fleet-file-tohost-data-ilm-policy.json

@@ -4,7 +4,7 @@
       "min_age": "0ms",
       "actions": {
         "rollover": {
-          "max_size": "10gb",
+          "max_primary_shard_size": "10gb",
           "max_age": "14d"
         }
       }
@@ -22,4 +22,4 @@
     "description": "policy for fleet deliverable files",
     "managed": true
   }
-}
+}

+ 2 - 2
x-pack/plugin/core/template-resources/src/main/resources/fleet-file-tohost-meta-ilm-policy.json

@@ -4,7 +4,7 @@
       "min_age": "0ms",
       "actions": {
         "rollover": {
-          "max_size": "10gb",
+          "max_primary_shard_size": "10gb",
           "max_age": "30d"
         }
       }
@@ -22,4 +22,4 @@
     "description": "policy for fleet deliverable file metadata",
     "managed": true
   }
-}
+}