limitations.asciidoc 9.3 KB

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