limitations.asciidoc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. [role="xpack"]
  2. [[transform-limitations]]
  3. = {transform-cap} limitations
  4. [subs="attributes"]
  5. ++++
  6. <titleabbrev>Limitations</titleabbrev>
  7. ++++
  8. The following limitations and known problems apply to the {version} release of
  9. the Elastic {transform} feature. The limitations are grouped into the following
  10. categories:
  11. * <<transform-config-limitations>> apply to the configuration process of the
  12. {transforms}.
  13. * <<transform-operational-limitations>> affect the behavior of the {transforms}
  14. that are running.
  15. * <<transform-ui-limitations>> only apply to {transforms} managed via the user
  16. interface.
  17. [discrete]
  18. [[transform-config-limitations]]
  19. == Configuration limitations
  20. [discrete]
  21. [[transforms-ccs-limitation]]
  22. === {transforms-cap} support {ccs} if the remote cluster is configured properly
  23. If you use <<modules-cross-cluster-search,{ccs}>>, the remote cluster must
  24. support the search and aggregations you use in your {transforms}.
  25. {transforms-cap} validate their configuration; if you use {ccs} and the
  26. validation fails, make sure that the remote cluster supports the query and
  27. aggregations you use.
  28. [discrete]
  29. [[transform-painless-limitation]]
  30. === Using scripts in {transforms}
  31. {transforms-cap} support scripting in every case when aggregations support them.
  32. However, there are certain factors you might want to consider when using scripts
  33. in {transforms}:
  34. * {transforms-cap} cannot deduce index mappings for output fields when the
  35. fields are created by a script. In this case, you might want to create the
  36. mappings of the destination index yourself prior to creating the transform.
  37. * Scripted fields may increase the runtime of the {transform}.
  38. * {transforms-cap} cannot optimize queries when you use scripts for all the
  39. groupings defined in `group_by`, you will receive a warning message when you
  40. use scripts this way.
  41. [discrete]
  42. [[transform-runtime-field-limitation]]
  43. === {transforms-cap} perform better on indexed fields
  44. {transforms-cap} sort data by a user-defined time field, which is frequently
  45. accessed. If the time field is a {ref}/runtime.html[runtime field], the
  46. performance impact of calculating field values at query time can significantly
  47. slow the {transform}. Use an indexed field as a time field when using
  48. {transforms}.
  49. [discrete]
  50. [[transform-scheduling-limitations]]
  51. === {ctransform-cap} scheduling limitations
  52. A {ctransform} periodically checks for changes to source data. The functionality
  53. of the scheduler is currently limited to a basic periodic timer which can be
  54. within the `frequency` range from 1s to 1h. The default is 1m. This is designed
  55. to run little and often. When choosing a `frequency` for this timer consider
  56. your ingest rate along with the impact that the {transform}
  57. search/index operations has other users in your cluster. Also note that retries
  58. occur at `frequency` interval.
  59. [discrete]
  60. [[transform-operational-limitations]]
  61. == Operational limitations
  62. [discrete]
  63. [[transform-rolling-upgrade-limitation]]
  64. === {transforms-cap} reassignment suspended during a rolling upgrade from 7.2 and 7.3
  65. If your cluster contains mixed version nodes, for example during a rolling
  66. upgrade from 7.2 or 7.3 to a newer version, {transforms} whose nodes are stopped
  67. will not be reassigned until the upgrade is complete. After the upgrade is done,
  68. {transforms} resume automatically; no action is required.
  69. [discrete]
  70. [[transform-aggresponse-limitations]]
  71. === Aggregation responses may be incompatible with destination index mappings
  72. When a {transform} is first started, it will deduce the mappings
  73. required for the destination index. This process is based on the field types of
  74. the source index and the aggregations used. If the fields are derived from
  75. <<search-aggregations-metrics-scripted-metric-aggregation,`scripted_metrics`>>
  76. or <<search-aggregations-pipeline-bucket-script-aggregation,`bucket_scripts`>>,
  77. <<dynamic-mapping,dynamic mappings>> will be used. In some instances the
  78. deduced mappings may be incompatible with the actual data. For example, numeric
  79. overflows might occur or dynamically mapped fields might contain both numbers
  80. and strings. Please check {es} logs if you think this may have occurred.
  81. You can view the deduced mappings by using the
  82. https://www.elastic.co/guide/en/elasticsearch/reference/current/preview-transform.html[Preview transform API].
  83. See the `generated_dest_index` object in the API response.
  84. If it's required, you may define custom mappings prior to starting the
  85. {transform} by creating a custom destination index using the
  86. https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html[Create index API].
  87. As deduced mappings cannot be overwritten by an index template, use the Create
  88. index API to define custom mappings. The index templates only apply to fields
  89. derived from scripts that use dynamic mappings.
  90. [discrete]
  91. [[transform-batch-limitations]]
  92. === Batch {transforms} may not account for changed documents
  93. A batch {transform} uses a
  94. <<search-aggregations-bucket-composite-aggregation,composite aggregation>>
  95. which allows efficient pagination through all buckets. Composite aggregations
  96. do not yet support a search context, therefore if the source data is changed
  97. (deleted, updated, added) while the batch {dataframe} is in progress, then the
  98. results may not include these changes.
  99. [discrete]
  100. [[transform-consistency-limitations]]
  101. === {ctransform-cap} consistency does not account for deleted or updated documents
  102. While the process for {transforms} allows the continual recalculation of the
  103. {transform} as new data is being ingested, it does also have some limitations.
  104. Changed entities will only be identified if their time field has also been
  105. updated and falls within the range of the action to check for changes. This has
  106. been designed in principle for, and is suited to, the use case where new data is
  107. given a timestamp for the time of ingest.
  108. If the indices that fall within the scope of the source index pattern are
  109. removed, for example when deleting historical time-based indices, then the
  110. composite aggregation performed in consecutive checkpoint processing will search
  111. over different source data, and entities that only existed in the deleted index
  112. will not be removed from the {dataframe} destination index.
  113. Depending on your use case, you may wish to recreate the {transform} entirely
  114. after deletions. Alternatively, if your use case is tolerant to historical
  115. archiving, you may wish to include a max ingest timestamp in your aggregation.
  116. This will allow you to exclude results that have not been recently updated when
  117. viewing the destination index.
  118. [discrete]
  119. [[transform-deletion-limitations]]
  120. === Deleting a {transform} does not delete the destination index or {kib} index pattern
  121. When deleting a {transform} using `DELETE _transform/index`
  122. neither the destination index nor the {kib} index pattern, should one have been
  123. created, are deleted. These objects must be deleted separately.
  124. [discrete]
  125. [[transform-aggregation-page-limitations]]
  126. === Handling dynamic adjustment of aggregation page size
  127. During the development of {transforms}, control was favoured over performance.
  128. In the design considerations, it is preferred for the {transform} to take longer
  129. to complete quietly in the background rather than to finish quickly and take
  130. precedence in resource consumption.
  131. Composite aggregations are well suited for high cardinality data enabling
  132. pagination through results. If a <<circuit-breaker,circuit breaker>> memory
  133. exception occurs when performing the composite aggregated search then we try
  134. again reducing the number of buckets requested. This circuit breaker is
  135. calculated based upon all activity within the cluster, not just activity from
  136. {transforms}, so it therefore may only be a temporary resource
  137. availability issue.
  138. For a batch {transform}, the number of buckets requested is only ever adjusted
  139. downwards. The lowering of value may result in a longer duration for the
  140. {transform} checkpoint to complete. For {ctransforms}, the number of buckets
  141. requested is reset back to its default at the start of every checkpoint and it
  142. is possible for circuit breaker exceptions to occur repeatedly in the {es} logs.
  143. The {transform} retrieves data in batches which means it calculates several
  144. buckets at once. Per default this is 500 buckets per search/index operation. The
  145. default can be changed using `max_page_search_size` and the minimum value is 10.
  146. If failures still occur once the number of buckets requested has been reduced to
  147. its minimum, then the {transform} will be set to a failed state.
  148. [discrete]
  149. [[transform-dynamic-adjustments-limitations]]
  150. === Handling dynamic adjustments for many terms
  151. For each checkpoint, entities are identified that have changed since the last
  152. time the check was performed. This list of changed entities is supplied as a
  153. <<query-dsl-terms-query,terms query>> to the {transform} composite aggregation,
  154. one page at a time. Then updates are applied to the destination index for each
  155. page of entities.
  156. The page `size` is defined by `max_page_search_size` which is also used to
  157. define the number of buckets returned by the composite aggregation search. The
  158. default value is 500, the minimum is 10.
  159. The index setting <<dynamic-index-settings,`index.max_terms_count`>> defines
  160. the maximum number of terms that can be used in a terms query. The default value
  161. is 65536. If `max_page_search_size` exceeds `index.max_terms_count` the
  162. {transform} will fail.
  163. Using smaller values for `max_page_search_size` may result in a longer duration
  164. for the {transform} checkpoint to complete.
  165. [discrete]
  166. [[transform-failed-limitations]]
  167. === Handling of failed {transforms}
  168. Failed {transforms} remain as a persistent task and should be handled
  169. appropriately, either by deleting it or by resolving the root cause of the
  170. failure and re-starting.
  171. When using the API to delete a failed {transform}, first stop it using
  172. `_stop?force=true`, then delete it.
  173. [discrete]
  174. [[transform-availability-limitations]]
  175. === {ctransforms-cap} may give incorrect results if documents are not yet available to search
  176. After a document is indexed, there is a very small delay until it is available
  177. to search.
  178. A {ctransform} periodically checks for changed entities between the time since
  179. it last checked and `now` minus `sync.time.delay`. This time window moves
  180. without overlapping. If the timestamp of a recently indexed document falls
  181. within this time window but this document is not yet available to search then
  182. this entity will not be updated.
  183. If using a `sync.time.field` that represents the data ingest time and using a
  184. zero second or very small `sync.time.delay`, then it is more likely that this
  185. issue will occur.
  186. [discrete]
  187. [[transform-date-nanos]]
  188. === Support for date nanoseconds data type
  189. If your data uses the <<date_nanos,date nanosecond data type>>, aggregations
  190. are nonetheless on millisecond resolution. This limitation also affects the
  191. aggregations in your {transforms}.
  192. [discrete]
  193. [[transform-data-streams-destination]]
  194. === Data streams as destination indices are not supported
  195. {transforms-cap} update data in the destination index which requires writing
  196. into the destination. <<data-streams>> are designed to be append-only, which
  197. means you cannot send update or delete requests directly to a data stream. For
  198. this reason, data streams are not supported as destination indices for
  199. {transforms}.
  200. [discrete]
  201. [[transform-ilm-destination]]
  202. === ILM as destination index may cause duplicated documents
  203. <<index-lifecycle-management,ILM>> is not recommended to use as a {transform}
  204. destination index. {transforms-cap} update documents in the current destination,
  205. and cannot delete documents in the indices previously used by ILM. This may lead
  206. to duplicated documents when you use {transforms} combined with ILM in case of a
  207. rollover.
  208. If you use ILM to have time-based indices, please consider using the
  209. <<date-index-name-processor>> instead. The processor works without duplicated
  210. documents if your {transform} contains a `group_by` based on `date_histogram`.
  211. [discrete]
  212. [[transform-ui-limitations]]
  213. == Limitations in {kib}
  214. [discrete]
  215. [[transform-space-limitations]]
  216. === {transforms-cap} are visible in all {kib} spaces
  217. {kibana-ref}/xpack-spaces.html[Spaces] enable you to organize your source and
  218. destination indices and other saved objects in {kib} and to see only the objects
  219. that belong to your space. However, this limited scope does not apply to
  220. {transforms}; they are visible in all spaces.
  221. [discrete]
  222. [[transform-rolling-upgrade-ui-limitation]]
  223. === {transforms-cap} UI will not work during a rolling upgrade from 7.2
  224. If your cluster contains mixed version nodes, for example during a rolling
  225. upgrade from 7.2 to a newer version, and {transforms} have been created in 7.2,
  226. the {transforms} UI (earler {dataframe} UI) will not work. Please wait until all
  227. nodes have been upgraded to the newer version before using the {transforms} UI.
  228. [discrete]
  229. [[transform-kibana-limitations]]
  230. === Up to 1,000 {transforms} are listed in {kib}
  231. The {transforms} management page in {kib} lists up to 1000 {transforms}.