limitations.asciidoc 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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:
  10. [float]
  11. [[transform-ui-limitation]]
  12. ==== {transforms-cap} UI will not work during a rolling upgrade from 7.2
  13. If your cluster contains mixed version nodes, for example during a rolling
  14. upgrade from 7.2 to a newer version, and {transforms} have been created in 7.2,
  15. the {transforms} UI (earler {dataframe} UI) will not work. Please wait until all
  16. nodes have been upgraded to the newer version before using the {transforms} UI.
  17. [float]
  18. [[transform-rolling-upgrade-limitation]]
  19. ==== {transforms-cap} reassignment suspended during a rolling upgrade from 7.2 and 7.3
  20. If your cluster contains mixed version nodes, for example during a rolling
  21. upgrade from 7.2 or 7.3 to a newer version, {transforms} whose nodes are stopped will
  22. not be reassigned until the upgrade is complete. After the upgrade is done, {transforms}
  23. resume automatically; no action is required.
  24. [float]
  25. [[transform-datatype-limitations]]
  26. ==== {dataframe-cap} data type limitation
  27. {dataframes-cap} do not (yet) support fields containing arrays – in the UI or
  28. the API. If you try to create one, the UI will fail to show the source index
  29. table.
  30. [float]
  31. [[transform-kibana-limitations]]
  32. ==== Up to 1,000 {transforms} are supported
  33. A single cluster will support up to 1,000 {transforms}. When using the
  34. {ref}/get-transform.html[GET {transforms} API] a total `count` of {transforms}
  35. is returned. Use the `size` and `from` parameters to enumerate through the full
  36. list.
  37. [float]
  38. [[transform-aggresponse-limitations]]
  39. ==== Aggregation responses may be incompatible with destination index mappings
  40. When a {transform} is first started, it will deduce the mappings
  41. required for the destination index. This process is based on the field types of
  42. the source index and the aggregations used. If the fields are derived from
  43. {ref}/search-aggregations-metrics-scripted-metric-aggregation.html[`scripted_metrics`]
  44. or {ref}/search-aggregations-pipeline-bucket-script-aggregation.html[`bucket_scripts`],
  45. {ref}/dynamic-mapping.html[dynamic mappings] will be used. In some instances the
  46. deduced mappings may be incompatible with the actual data. For example, numeric
  47. overflows might occur or dynamically mapped fields might contain both numbers
  48. and strings. Please check {es} logs if you think this may have occurred. As a
  49. workaround, you may define custom mappings prior to starting the
  50. {transform}. For example,
  51. {ref}/indices-create-index.html[create a custom destination index] or
  52. {ref}/indices-templates.html[define an index template].
  53. [float]
  54. [[transform-batch-limitations]]
  55. ==== Batch {transforms} may not account for changed documents
  56. A batch {transform} uses a
  57. {ref}/search-aggregations-bucket-composite-aggregation.html[composite aggregation]
  58. which allows efficient pagination through all buckets. Composite aggregations
  59. do not yet support a search context, therefore if the source data is changed
  60. (deleted, updated, added) while the batch {dataframe} is in progress, then the
  61. results may not include these changes.
  62. [float]
  63. [[transform-consistency-limitations]]
  64. ==== {ctransform-cap} consistency does not account for deleted or updated documents
  65. While the process for {transforms} allows the continual recalculation of the
  66. {transform} as new data is being ingested, it does also have some limitations.
  67. Changed entities will only be identified if their time field has also been
  68. updated and falls within the range of the action to check for changes. This has
  69. been designed in principle for, and is suited to, the use case where new data is
  70. given a timestamp for the time of ingest.
  71. If the indices that fall within the scope of the source index pattern are
  72. removed, for example when deleting historical time-based indices, then the
  73. composite aggregation performed in consecutive checkpoint processing will search
  74. over different source data, and entities that only existed in the deleted index
  75. will not be removed from the {dataframe} destination index.
  76. Depending on your use case, you may wish to recreate the {transform} entirely
  77. after deletions. Alternatively, if your use case is tolerant to historical
  78. archiving, you may wish to include a max ingest timestamp in your aggregation.
  79. This will allow you to exclude results that have not been recently updated when
  80. viewing the destination index.
  81. [float]
  82. [[transform-deletion-limitations]]
  83. ==== Deleting a {transform} does not delete the destination index or {kib} index pattern
  84. When deleting a {transform} using `DELETE _transform/index`
  85. neither the destination index nor the {kib} index pattern, should one have been
  86. created, are deleted. These objects must be deleted separately.
  87. [float]
  88. [[transform-aggregation-page-limitations]]
  89. ==== Handling dynamic adjustment of aggregation page size
  90. During the development of {transforms}, control was favoured over performance.
  91. In the design considerations, it is preferred for the {transform} to take longer
  92. to complete quietly in the background rather than to finish quickly and take
  93. precedence in resource consumption.
  94. Composite aggregations are well suited for high cardinality data enabling
  95. pagination through results. If a {ref}/circuit-breaker.html[circuit breaker]
  96. memory exception occurs when performing the composite aggregated search then we
  97. try again reducing the number of buckets requested. This circuit breaker is
  98. calculated based upon all activity within the cluster, not just activity from
  99. {transforms}, so it therefore may only be a temporary resource
  100. availability issue.
  101. For a batch {transform}, the number of buckets requested is only ever adjusted
  102. downwards. The lowering of value may result in a longer duration for the
  103. {transform} checkpoint to complete. For {ctransforms}, the number of buckets
  104. requested is reset back to its default at the start of every checkpoint and it
  105. is possible for circuit breaker exceptions to occur repeatedly in the {es} logs.
  106. The {transform} retrieves data in batches which means it calculates several
  107. buckets at once. Per default this is 500 buckets per search/index operation. The
  108. default can be changed using `max_page_search_size` and the minimum value is 10.
  109. If failures still occur once the number of buckets requested has been reduced to
  110. its minimum, then the {transform} will be set to a failed state.
  111. [float]
  112. [[transform-dynamic-adjustments-limitations]]
  113. ==== Handling dynamic adjustments for many terms
  114. For each checkpoint, entities are identified that have changed since the last
  115. time the check was performed. This list of changed entities is supplied as a
  116. {ref}/query-dsl-terms-query.html[terms query] to the {transform} composite
  117. aggregation, one page at a time. Then updates are applied to the destination
  118. index for each page of entities.
  119. The page `size` is defined by `max_page_search_size` which is also used to
  120. define the number of buckets returned by the composite aggregation search. The
  121. default value is 500, the minimum is 10.
  122. The index setting
  123. {ref}/index-modules.html#dynamic-index-settings[`index.max_terms_count`] defines
  124. the maximum number of terms that can be used in a terms query. The default value
  125. is 65536. If `max_page_search_size` exceeds `index.max_terms_count` the
  126. {transform} will fail.
  127. Using smaller values for `max_page_search_size` may result in a longer duration
  128. for the {transform} checkpoint to complete.
  129. [float]
  130. [[transform-scheduling-limitations]]
  131. ==== {ctransform-cap} scheduling limitations
  132. A {ctransform} periodically checks for changes to source data. The functionality
  133. of the scheduler is currently limited to a basic periodic timer which can be
  134. within the `frequency` range from 1s to 1h. The default is 1m. This is designed
  135. to run little and often. When choosing a `frequency` for this timer consider
  136. your ingest rate along with the impact that the {transform}
  137. search/index operations has other users in your cluster. Also note that retries
  138. occur at `frequency` interval.
  139. [float]
  140. [[transform-failed-limitations]]
  141. ==== Handling of failed {transforms}
  142. Failed {transforms} remain as a persistent task and should be handled
  143. appropriately, either by deleting it or by resolving the root cause of the
  144. failure and re-starting.
  145. When using the API to delete a failed {transform}, first stop it using
  146. `_stop?force=true`, then delete it.
  147. [float]
  148. [[transform-availability-limitations]]
  149. ==== {ctransforms-cap} may give incorrect results if documents are not yet available to search
  150. After a document is indexed, there is a very small delay until it is available
  151. to search.
  152. A {ctransform} periodically checks for changed entities between the time since
  153. it last checked and `now` minus `sync.time.delay`. This time window moves
  154. without overlapping. If the timestamp of a recently indexed document falls
  155. within this time window but this document is not yet available to search then
  156. this entity will not be updated.
  157. If using a `sync.time.field` that represents the data ingest time and using a
  158. zero second or very small `sync.time.delay`, then it is more likely that this
  159. issue will occur.
  160. [[transform-date-nanos]]
  161. ==== Support for date nanoseconds data type
  162. If your data uses the <<date_nanos,date nanosecond data type>>, aggregations
  163. are nonetheless on millisecond resolution. This limitation also affects the
  164. aggregations in your {transforms}.