Commit Graph

10080 Commits

Author SHA1 Message Date
Abdon Pijpelink 4bb7b2c8ff
[DOCS] Updated landing page (#91361)
* [DOCS] New landing page

* Add links for alerting, painless, and plugins

* Change 'Get started with Elastic Cloud' into 'Get started'

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2022-11-17 15:36:35 +01:00
David Turner 9671cabefc
Adjust docs for new systemd startup timeout (#91648)
The docs introduced in #91333 apply to older versions in which the `systemd`
startup timeout was 75s by default, but in #91338 we extended the `systemd`
startup timeout to 900s from 8.7.0 and 7.17.8 onwards. This commit adjusts the
docs to match.
2022-11-17 14:20:01 +00:00
David Turner d8e7cce08e
Add docs about TimeoutStartSec in systemd (#91333)
Adds a short note about the effects of `TimeoutStartSec` in older
`systemd` versions.
2022-11-17 12:11:21 +00:00
David Kyle 7b9a6fe3db
{ML] Correct index for text_similarity config (#91644) 2022-11-17 10:58:36 +00:00
Nik Everett 02138dc70a
Docs: synthetic _source can remove some arrays (#91632)
Synthetic _source's array flattening activities can remove some arrays
entirely. Specifically:
```
{
  "foo": [
    {
      "bar": 1
    },
    {
      "baz": 2
    }
  ]
}
```

Turns into:
```
{
  "foo": {
    "bar": 1,
    "baz": 2
  }
}
```

See, no more array! It's because the values are flattend to the leaf
fields and didn't have multiple values. This is implied by the docs we
had, but sure wasn't obvious. So now it's documented specifically.
2022-11-16 15:19:42 -05:00
David Kilfoyle c772e0fc0e
[DOCS] Fix docs build break from 8.6 RN link (#91619)
Fixes

```

09:43:34 INFO:build_docs:Bad cross-document links: 09:43:34
INFO:build_docs: 
/tmp/docsbuild/target_repo/html/en/elasticsearch/reference/master/release-highlights.html
contains broken links to: 09:43:34 INFO:build_docs:   -
en/elasticsearch/reference/8.6/release-highlights.html

```
2022-11-16 10:31:22 -05:00
Nikola Grcevski 3fd338ffd1
Bind the readiness service to the wildcard address (#91329)
This change changes the host binding on the readiness service to all from localhost.
2022-11-16 09:46:28 -05:00
Iraklis Psaroudakis a3b06e1d68 Bump to version 8.7.0 2022-11-16 16:32:19 +02:00
Pooya Salehi 327f50ba46
Prevalidate node removal API (pt. 1) (#88952)
This PR adds the first part of the Prevalidate Node Removal API. This
API allows checking whether attempting to remove some node(s) from the
cluster is likely to succeed or not. This check is useful when a node
needs to be removed from a RED cluster, without risking loosing the last
copy of some RED shards.

In this PR, we only check whether a RED index is a Searchable Snapshot
index or not, in which case the removal of any node is safe as the RED
index is backed by a snapshot.

Relates #87776
2022-11-16 13:44:00 +01:00
István Zoltán Szabó 612a7b673a
[DOCS] Highlights inference caching behavior (#91608) 2022-11-16 13:17:49 +01:00
Artem Prigoda 79ca59bc96
DesiredBalance: expose it via _internal/desired_balance (#91038)
Add an internal endpoint for exposed the desired balance and computation stats at a master node as GET _internal/desired_balance and returns
```
{
  "stats": {
    "computation_active": false,
    "computation_submitted": 5,
    "computation_executed": 5,
    "computation_converged": 5,
    "computation_iterations": 4,
    "computation_converged_index": 4,
    "computation_time_in_millis": 0,
    "reconciliation_time_in_millis": 0
  },
  "routing_table": {
    "test": {
      "0": {
        "current": [
          {
            "state": "STARTED",
            "primary": true,
            "node": "UPYt8VwWTt-IADAEbqpLxA",
            "node_is_desired": true,
            "relocating_node": null,
            "relocating_node_is_desired": false,
            "shard_id": 0,
            "index": "test"
          }
        ],
        "desired": {
          "node_ids": [
            "UPYt8VwWTt-IADAEbqpLxA"
          ],
          "total": 1,
          "unassigned": 0,
          "ignored": 0
        }
      },
      "1": {
        "current": [
          {
            "state": "STARTED",
            "primary": true,
            "node": "2x1VTuSOQdeguXPdN73yRw",
            "node_is_desired": true,
            "relocating_node": null,
            "relocating_node_is_desired": false,
            "shard_id": 1,
            "index": "test"
          }
        ],
        "desired": {
          "node_ids": [
            "2x1VTuSOQdeguXPdN73yRw"
          ],
          "total": 1,
          "unassigned": 0,
          "ignored": 0
        }
      }
    }
  }
}
```

Fixes #90583
2022-11-16 02:54:10 +01:00
tmgordeeva de99a235cd
Update docs for v8.5.1 release (#91600)
* Update docs for 8.5.1 release

* Update docs/reference/release-notes/8.5.1.asciidoc

Co-authored-by: debadair <debadair@elastic.co>
2022-11-15 16:14:11 -08:00
Luca Cavanna 238163cd60
Expose telemetry about search usage (#91528)
This is the continuation of #90176 which leverages #90425 to count query types. This PR adds search usage stats to the existing telemetry by counting sections being used as part of a search request, as well as query types. Each distinct query type is counted once per search request.

The counting is performed while parsing, for the following REST search endpoints:

- _search
- _msearch
- _async_search
- _search/template
- _msearch/template
- _fleet/_fleet_search
- _fleet/_fleet_msearch

All other API using search internally, like reindex, ML transform, rank eval, sql etc. are not counted as part of these search usage stats. Such additional functionalities should have its own dedicated telemetry if needed.

The counting of the search sections is not extensive, only the ones that are interesting to collect counts for are tracked.

The following is the new section added to the cluster stats API response, including some sample stats:

```
"search" : {
  "total" : 63,
  "sections" : {
    "knn" : 42,
    "query" : 21, 
    "aggs" : 46
  }, 
  "query" : {
    "match" : 58
  }
}
```

A big part of the change is actually the plumbing to make a common service class that holds the counters available to all the different callers of the parsing methods, especially plugins. Ideally, there would be a separate component that exposes the search parsing functionality rather than static methods, but changing that would require making the additional component available to the REST layer which is not trivial. I reused the existing UsageService which the RestController already holds, and is already used to count access to the different REST endpoints.

Co-authored-by: Mayya Sharipova mayya.sharipova@elastic.co
2022-11-15 21:34:49 +01:00
David Kilfoyle ddef28bd2f
Revert "Update tech preview notice for synthetic source (#91474)" (#91589)
This reverts commit c9b13f5f53.
2022-11-15 09:33:40 -05:00
Iraklis Psaroudakis 7bfc672eb4
Tie snapshot speed to node bandwidth settings (#91021)
If the recovery node bandwidth settings exist,
then the default value for max snapshot speed will
be infinite, and the speed will be rate limited
by the recovery rate limit as well.

Fixes #57023
2022-11-15 16:13:09 +02:00
Luigi Dell'Aquila 6e5c3d952c
Update docs about EQL CCS (#91542) 2022-11-15 14:07:26 +01:00
István Zoltán Szabó b7c75b9214
[DOCS] Fixes asciidoc syntax in semantic search API docs. (#91588) 2022-11-15 13:51:37 +01:00
Lisa Cawley d7c0b37924
[DOCS] Edits frequent items aggregation (#91564) 2022-11-14 17:20:27 -08:00
Abdon Pijpelink dceff3f862
[DOCS] Warn about potential overhead of named queries (#91512) 2022-11-14 14:05:40 +01:00
Jack Conradson 89e0a6d249
Add fielddata and scripting support for byte-sized vectors (#91184)
This change adds support fielddata and subsequently scripting for byte vectors. This is a follow up to 
#90774 and completes the initial work for #89784.
2022-11-10 15:00:04 -08:00
David Kilfoyle c9b13f5f53
Update tech preview notice for synthetic source (#91474) 2022-11-10 12:59:28 -05:00
István Zoltán Szabó e715f3c737
[DOCS] Adds KNN object sub-properties individually to common params (#91503) 2022-11-10 17:23:55 +01:00
Julie Tibshirani 509b636d25
Correct docs for multi_match scoring (#91430)
The documentation claimed that for the most_fields type, the score is equal to
the sum of all matches divided by the number of matches. This is not correct,
we actually don't divide by the number of matches.

This line in the documentation was added several years ago as part of a large
PR, and was likely just a mistake.
2022-11-10 08:16:56 -08:00
István Zoltán Szabó ed452fb53d
[DOCS] Adds knn object to common parameters (#91464) 2022-11-10 11:21:01 +01:00
Alan Woodward 547c8327b2
Allow FetchSubPhaseProcessors to report their required stored fields (#91269)
Loading of stored fields is currently handled directly in FetchPhase, with
some fairly complex logic examining various bits of the FetchContext to work
out what fields need to be loaded. This is further complicated by synthetic
source, which may have its own stored field requirements.

This commit tries to separate out these concerns a little by adding a new
StoredFieldsSpec record that holds information about which stored fields
need to be loaded. Each FetchSubPhaseProcessor can now report a
StoredFieldsSpec detailing what its requirements are, and these specs can
be merged together, along with requirements from a SourceLoader, to
determine up-front what fields should be loaded by the StoredFieldLoader.
The stored fields themselves are added into the SearchHit by a new
StoredFieldsPhase, which handles alias resolution and value post-
processing. The logic to determine when source should be loaded and
when not, based on the presence of script fields or stored fields, is
moved into FetchContext, which highlights some inconsistencies that
can be fixed in follow-up commits.
2022-11-10 08:40:22 +00:00
debadair 93d59e71de
[DOCS] Replace dependencies list with a link. Closes #84863 (#90694)
* [DOCS] Replace dependencies list with a link to the generated dependencies list. Closes #84863

* Made conditional based on the release state.

* Fixed missing end statement
2022-11-09 14:37:55 -08:00
debadair 3cad9f420f
[DOCS] Add 8.6 to CCS table (#91436)
* [DOCS] Add 8.6 to CCS table

* [DOCS] Fixed header
2022-11-09 14:04:18 -08:00
Iraklis Psaroudakis 756fcc212d
Log YAML test file on failure (#91349)
Relates #91081
2022-11-09 18:35:36 +02:00
Keith Massey d5b4584612
Adding more detail about ingest.geoip.downloader.endpoint (#91182) 2022-11-09 09:17:33 -06:00
Etki cec0ab20ff
Added reference to terms_set query in regular terms query documentation (#91204)
* Added reference to terms_set query in regular terms query documentation

* Update docs/reference/query-dsl/terms-query.asciidoc

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2022-11-09 16:00:52 +01:00
David Kyle b46ee9caaa
[ML] Hybrid retrieval for Semantic search. (#91348)
Adds the query option to the _semantic_search endpoint for hybrid retrieval. 
Scoring is controlled by the boost fields of the knn search and the query.
2022-11-09 13:48:48 +00:00
David Roberts 3dbaa3ff23
[ML] Make categorize_text aggregation GA (#88600)
Removes the experimental tag from the categorize_text aggregation.
2022-11-09 13:05:35 +00:00
Pooya Salehi c7bfdf89b6
Revert "[CI] mute DocsClientYamlTestSuiteIT.test {yaml=reference/cluster/nodes-info/line_283} (#91445)" (#91452)
Relates https://github.com/elastic/elasticsearch/issues/91444
2022-11-09 06:02:22 -05:00
Pooya Salehi 87608da4cf
[CI] mute DocsClientYamlTestSuiteIT.test {yaml=reference/cluster/nodes-info/line_283} (#91445)
Relates https://github.com/elastic/elasticsearch/issues/91444
2022-11-09 05:09:16 -05:00
Andrei Dan c8e08fd512
[HealthAPI] Rename explain to verbose (#91417)
This renames the explain Health API parameter to verbose.

We decided to rename explain because verbose is a more established
term in the industry for "opt-in to get more information" and allows for more
flexibility to control what exactly that extra information is (explain is already
pushing the limits of what it semantically represents as it's controlling both
the diagnosis insights and the raw details information)
2022-11-09 08:47:53 +00:00
Abdon Pijpelink d0d2c74573
[DOCS] Clarify that lookup runtime sub-fields can't be used in queries and aggs (#91410) 2022-11-08 19:05:31 +01:00
debadair b5dd2cd406
[DOC] Update CCS version matrix (#91371)
* [DOC] Update CCS version matrix

* Add two extra columns to table definition

Co-authored-by: Abdon Pijpelink <abdon.pijpelink@elastic.co>
2022-11-08 08:24:52 -08:00
Julie Tibshirani 3948d4b215
Link to kNN search guide in dense_vector docs (#91372)
Before it linked to script_score and approximate kNN separately, but now we have
a single page that describes both approaches. This change also removes a link to
the deprecated _knn_search API.
2022-11-08 07:46:01 -08:00
David Kilfoyle 7722daa197
[DOCS] Add downsampling reference to rollup docs (#91295) 2022-11-08 10:02:17 -05:00
Tim Brooks c1b39322af
Update network threading documentation (#91027)
Currently the documentation on network threading suggests that we still
use a model where we have individual workers dedicated to server
sockets. That is no longer true and server sockets are assigned to
normal workers. This commit updates the documentation.
2022-11-08 09:19:39 -05:00
Benjamin Trent 2e8bf33b0a
[ML] allow model_aliases to be used with Pytorch trained models (#91296)
This adds model_alias support for native pytorch models.

Model aliases can be used in `_infer` or within the inference processor. This way the alias can be atomically changed without down time to another deployed model. 

Restrictions:
 - Model alias changes need to be done between two models of the same kind (e.g. pytorch -> pytorch)
 - Model alias change is not allowed between a model that is deployed to a model that is not
 - Model alias change is not allowed between a model that deployed AND allocated to a model that is deployed but NOT allocated (not assigned to any nodes).
 - A deployment cannot be stopped (without supplying the `force` parameter) when the model has a model alias that is used by a pipeline.


closes: https://github.com/elastic/elasticsearch/issues/90960
2022-11-08 08:35:33 -05:00
saryeHaddadi f66f10fe34
Fix confusion in runtime_mapping (#90999) 2022-11-08 14:16:41 +01:00
Iraklis Psaroudakis aa083ce419
[CI] Mute reference/cluster/nodes-stats (#91399)
relates #91081
2022-11-08 14:57:37 +02:00
Iraklis Psaroudakis dcdf58721d
[CI] Mute reference/cluster/nodes-stats/line_2735 (#91380)
relates #91081
2022-11-08 05:04:49 -05:00
Liam Thompson cd6be58860
[DOCS] Add reference for ingest pipelines in Enterprise Search (#91357) 2022-11-08 09:22:01 +01:00
Hendrik Muhs 1b556d75fa
mute another node stats test (#91346)
muting another test part as it causes a lot of CI failures

relates #91081
2022-11-07 06:07:09 -05:00
Lisa Cawley 99877382a0
[DOCS] Remove coming tag from release notes (#91330) 2022-11-04 18:36:37 -07:00
Lisa Cawley 9e83084020
[DOCS] Clarify description of geo_results (#91237) 2022-11-04 08:15:46 -07:00
David Kilfoyle 3295662697
[DOCS] Add time range info to TSDS docs (#91291)
* [DOCS] Add time range info to TSDS docs

* Fixup
2022-11-04 09:18:35 -04:00
Dimitris Athanasiou 4e67df8b05
[ML] Low priority trained model deployments (#91234)
This adds a new parameter to the start trained model deployment API,
namely `priority`. The available settings are `normal` and `low`.

For normal priority deployments the allocations get distributed so that
node processors are never oversubscribed.

Low priority deployments allow users to test model functionality even if there
are no node processors available. They are limited to 1 allocation with a single thread.
In addition, the process is executed in low priority which limits the amount of
CPU that can be used when the CPU is under pressure. The intention of this is to
limit the impact of low priority deployments on normal priority deployments.

When we rebalance model assignments we now:

  1. compute a plan just for normal priority deployments
  2. fix the resources used by normal deployments
  3. compute a plan just for low priority deployments
  4. merge the two plans

Closes #91024
2022-11-04 14:22:30 +02:00