limitations.asciidoc 13 KB

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