2015-09-03 09:00:52 -04:00
|
|
|
[[breaking-changes-3.0]]
|
|
|
|
== Breaking changes in 3.0
|
|
|
|
|
|
|
|
This section discusses the changes that you need to be aware of when migrating
|
|
|
|
your application to Elasticsearch 3.0.
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
* <<breaking_30_search_changes>>
|
|
|
|
* <<breaking_30_rest_api_changes>>
|
|
|
|
* <<breaking_30_parent_child_changes>>
|
|
|
|
* <<breaking_30_settings_changes>>
|
|
|
|
* <<breaking_30_mapping_changes>>
|
|
|
|
* <<breaking_30_plugins>>
|
|
|
|
* <<breaking_30_java_api_changes>>
|
|
|
|
* <<breaking_30_cache_concurrency>>
|
|
|
|
* <<breaking_30_non_loopback>>
|
|
|
|
* <<breaking_30_thread_pool>>
|
|
|
|
|
|
|
|
[[breaking_30_search_changes]]
|
2015-09-03 09:00:52 -04:00
|
|
|
=== Search changes
|
|
|
|
|
|
|
|
==== `search_type=count` removed
|
|
|
|
|
|
|
|
The `count` search type was deprecated since version 2.0.0 and is now removed.
|
|
|
|
In order to get the same benefits, you just need to set the value of the `size`
|
|
|
|
parameter to `0`.
|
|
|
|
|
|
|
|
For instance, the following request:
|
2015-11-08 06:59:07 -05:00
|
|
|
|
2015-09-03 09:00:52 -04:00
|
|
|
[source,sh]
|
|
|
|
---------------
|
|
|
|
GET /my_index/_search?search_type=count
|
|
|
|
{
|
|
|
|
"aggs": {
|
|
|
|
"my_terms": {
|
|
|
|
"terms": {
|
|
|
|
"field": "foo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
---------------
|
|
|
|
|
|
|
|
can be replaced with:
|
2015-11-08 06:59:07 -05:00
|
|
|
|
2015-09-03 09:00:52 -04:00
|
|
|
[source,sh]
|
|
|
|
---------------
|
|
|
|
GET /my_index/_search
|
|
|
|
{
|
|
|
|
"size": 0,
|
|
|
|
"aggs": {
|
|
|
|
"my_terms": {
|
|
|
|
"terms": {
|
|
|
|
"field": "foo"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
---------------
|
|
|
|
|
|
|
|
==== `search_type=scan` removed
|
|
|
|
|
|
|
|
The `scan` search type was deprecated since version 2.1.0 and is now removed.
|
|
|
|
All benefits from this search type can now be achieved by doing a scroll
|
|
|
|
request that sorts documents in `_doc` order, for instance:
|
|
|
|
|
|
|
|
[source,sh]
|
|
|
|
---------------
|
|
|
|
GET /my_index/_search?scroll=2m
|
|
|
|
{
|
|
|
|
"sort": [
|
|
|
|
"_doc"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Scroll requests sorted by `_doc` have been optimized to more efficiently resume
|
|
|
|
from where the previous request stopped, so this will have the same performance
|
|
|
|
characteristics as the former `scan` search type.
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_rest_api_changes]]
|
2015-10-21 10:32:11 -04:00
|
|
|
=== REST API changes
|
|
|
|
|
2015-10-02 11:27:10 -04:00
|
|
|
==== search exists api removed
|
|
|
|
|
|
|
|
The search exists api has been removed in favour of using the search api with
|
|
|
|
`size` set to `0` and `terminate_after` set to `1`.
|
|
|
|
|
2015-10-21 10:32:11 -04:00
|
|
|
==== `/_optimize` endpoint removed
|
|
|
|
|
|
|
|
The deprecated `/_optimize` endpoint has been removed. The `/_forcemerge`
|
|
|
|
endpoint should be used in lieu of optimize.
|
|
|
|
|
2015-10-26 07:18:36 -04:00
|
|
|
==== Deprecated queries removed
|
|
|
|
|
|
|
|
The following deprecated queries have been removed:
|
|
|
|
* `filtered`: use `bool` query instead, which supports `filter` clauses too
|
|
|
|
* `and`: use `must` clauses in a `bool` query instead
|
|
|
|
* `or`: use should clauses in a `bool` query instead
|
|
|
|
* `limit`: use `terminate_after` parameter instead
|
|
|
|
* `fquery`: obsolete after filters and queries have been merged
|
|
|
|
* `query`: obsolete after filters and queries have been merged
|
|
|
|
|
2015-10-28 04:27:31 -04:00
|
|
|
==== Unified fuzziness parameter
|
|
|
|
|
|
|
|
* Removed support for the deprecated `min_similarity` parameter in `fuzzy query`, in favour of `similarity`.
|
|
|
|
* Removed support for the deprecated `fuzzy_min_sim` parameter in `query_string` query, in favour of `similarity`.
|
|
|
|
* Removed support for the deprecated `edit_distance` parameter in completion suggester, in favour of `similarity`.
|
|
|
|
|
|
|
|
==== indices query
|
|
|
|
|
|
|
|
Removed support for the deprecated `filter` and `no_match_filter` fields in `indices` query,
|
|
|
|
in favour of `query` and `no_match_query`.
|
|
|
|
|
|
|
|
==== nested query
|
|
|
|
|
|
|
|
Removed support for the deprecated `filter` fields in `nested` query, in favour of `query`.
|
|
|
|
|
|
|
|
==== terms query
|
|
|
|
|
|
|
|
Removed support for the deprecated `minimum_should_match` and `disable_coord` in `terms` query, use `bool` query instead.
|
|
|
|
Removed also support for the deprecated `execution` parameter.
|
|
|
|
|
|
|
|
==== function_score query
|
|
|
|
|
|
|
|
Removed support for the top level `filter` element in `function_score` query, replaced by `query`.
|
|
|
|
|
|
|
|
==== highlighters
|
|
|
|
|
|
|
|
Removed support for multiple highlighter names, the only supported ones are: `plain`, `fvh` and `postings`.
|
|
|
|
|
|
|
|
==== top level filter
|
|
|
|
|
|
|
|
Removed support for the deprecated top level `filter` in the search api, replaced by `post_filter`.
|
|
|
|
|
2015-11-02 05:57:15 -05:00
|
|
|
==== `query_binary` and `filter_binary` removed
|
|
|
|
|
|
|
|
Removed support for the undocumented `query_binary` and `filter_binary` sections of a search request.
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_parent_child_changes]]
|
2015-10-28 04:27:31 -04:00
|
|
|
=== Parent/Child changes
|
|
|
|
|
|
|
|
The `children` aggregation, parent child inner hits and `has_child` and `has_parent` queries will not work on indices
|
|
|
|
with `_parent` field mapping created before version `2.0.0`. The data of these indices need to be re-indexed into a new index.
|
|
|
|
|
|
|
|
The format of the join between parent and child documents have changed with the `2.0.0` release. The old
|
|
|
|
format can't read from version `3.0.0` and onwards. The new format allows for a much more efficient and
|
|
|
|
scalable join between parent and child documents and the join data structures are stored on on disk
|
|
|
|
data structures as opposed as before the join data structures were stored in the jvm heap space.
|
|
|
|
|
2015-09-10 10:16:48 -04:00
|
|
|
==== `score_type` has been removed
|
|
|
|
|
|
|
|
The `score_type` option has been removed from the `has_child` and `has_parent` queries in favour of the `score_mode` option
|
|
|
|
which does the exact same thing.
|
|
|
|
|
|
|
|
==== `sum` score mode removed
|
|
|
|
|
2015-10-28 04:27:31 -04:00
|
|
|
The `sum` score mode has been removed in favour of the `total` mode which does the same and is already available in
|
2015-09-10 10:16:48 -04:00
|
|
|
previous versions.
|
|
|
|
|
|
|
|
==== `max_children` option
|
|
|
|
|
|
|
|
When `max_children` was set to `0` on the `has_child` query then there was no upper limit on how many children documents
|
|
|
|
are allowed to match. This has changed and `0` now really means to zero child documents are allowed. If no upper limit
|
2015-09-21 22:09:26 -04:00
|
|
|
is needed then the `max_children` option shouldn't be defined at all on the `has_child` query.
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
|
|
|
|
[[breaking_30_settings_changes]]
|
|
|
|
=== Settings changes
|
2015-09-21 22:09:26 -04:00
|
|
|
|
2015-10-08 08:56:07 -04:00
|
|
|
==== Analysis settings
|
|
|
|
|
|
|
|
The `index.analysis.analyzer.default_index` analyzer is not supported anymore.
|
|
|
|
If you wish to change the analyzer to use for indexing, change the
|
|
|
|
`index.analysis.analyzer.default` analyzer instead.
|
|
|
|
|
2015-09-21 22:09:26 -04:00
|
|
|
==== Ping timeout settings
|
|
|
|
|
|
|
|
Previously, there were three settings for the ping timeout: `discovery.zen.initial_ping_timeout`,
|
|
|
|
`discovery.zen.ping.timeout` and `discovery.zen.ping_timeout`. The former two have been removed and
|
|
|
|
the only setting key for the ping timeout is now `discovery.zen.ping_timeout`. The default value for
|
|
|
|
ping timeouts remains at three seconds.
|
2015-09-25 08:55:37 -04:00
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_mapping_changes]]
|
|
|
|
=== Mapping changes
|
2015-09-18 10:12:54 -04:00
|
|
|
|
|
|
|
==== Transform removed
|
|
|
|
|
|
|
|
The `transform` feature from mappings has been removed. It made issues very hard to debug.
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_plugins]]
|
|
|
|
=== Plugin changes
|
2015-09-25 08:55:37 -04:00
|
|
|
|
|
|
|
Plugins implementing custom queries need to implement the `fromXContent(QueryParseContext)` method in their
|
|
|
|
`QueryParser` subclass rather than `parse`. This method will take care of parsing the query from `XContent` format
|
|
|
|
into an intermediate query representation that can be streamed between the nodes in binary format, effectively the
|
|
|
|
query object used in the java api. Also, the query parser needs to implement the `getBuilderPrototype` method that
|
|
|
|
returns a prototype of the `NamedWriteable` query, which allows to deserialize an incoming query by calling
|
|
|
|
`readFrom(StreamInput)` against it, which will create a new object, see usages of `Writeable`. The `QueryParser`
|
|
|
|
also needs to declare the generic type of the query that it supports and it's able to parse.
|
|
|
|
The query object can then transform itself into a lucene query through the new `toQuery(QueryShardContext)` method,
|
|
|
|
which returns a lucene query to be executed on the data node.
|
|
|
|
|
|
|
|
Similarly, plugins implementing custom score functions need to implement the `fromXContent(QueryParseContext)`
|
|
|
|
method in their `ScoreFunctionParser` subclass rather than `parse`. This method will take care of parsing
|
|
|
|
the function from `XContent` format into an intermediate function representation that can be streamed between
|
|
|
|
the nodes in binary format, effectively the function object used in the java api. Also, the query parser needs
|
|
|
|
to implement the `getBuilderPrototype` method that returns a prototype of the `NamedWriteable` function, which
|
|
|
|
allows to deserialize an incoming function by calling `readFrom(StreamInput)` against it, which will create a
|
|
|
|
new object, see usages of `Writeable`. The `ScoreFunctionParser` also needs to declare the generic type of the
|
|
|
|
function that it supports and it's able to parse. The function object can then transform itself into a lucene
|
|
|
|
function through the new `toFunction(QueryShardContext)` method, which returns a lucene function to be executed
|
|
|
|
on the data node.
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
==== Cloud AWS plugin changes
|
2015-09-27 11:20:53 -04:00
|
|
|
|
|
|
|
Cloud AWS plugin has been split in two plugins:
|
|
|
|
|
|
|
|
* {plugins}/discovery-ec2.html[Discovery EC2 plugin]
|
|
|
|
* {plugins}/repository-s3.html[Repository S3 plugin]
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
==== Cloud Azure plugin changes
|
2015-09-27 11:20:53 -04:00
|
|
|
|
|
|
|
Cloud Azure plugin has been split in three plugins:
|
|
|
|
|
|
|
|
* {plugins}/discovery-azure.html[Discovery Azure plugin]
|
|
|
|
* {plugins}/repository-azure.html[Repository Azure plugin]
|
|
|
|
* {plugins}/store-smb.html[Store SMB plugin]
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
==== Cloud GCE plugin changes
|
2015-09-26 05:53:21 -04:00
|
|
|
|
|
|
|
Cloud GCE plugin has been renamed to {plugins}/discovery-gce.html[Discovery GCE plugin].
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_java_api_changes]]
|
|
|
|
=== Java API changes
|
2015-09-25 08:55:37 -04:00
|
|
|
|
2015-10-16 12:02:34 -04:00
|
|
|
==== Count api has been removed
|
|
|
|
|
|
|
|
The deprecated count api has been removed from the Java api, use the search api instead and set size to 0.
|
|
|
|
|
|
|
|
The following call
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[source,java]
|
|
|
|
-----
|
2015-10-16 12:02:34 -04:00
|
|
|
client.prepareCount(indices).setQuery(query).get();
|
2015-11-08 06:59:07 -05:00
|
|
|
-----
|
2015-10-16 12:02:34 -04:00
|
|
|
|
|
|
|
can be replaced with
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[source,java]
|
|
|
|
-----
|
2015-10-16 12:02:34 -04:00
|
|
|
client.prepareSearch(indices).setSource(new SearchSourceBuilder().size(0).query(query)).get();
|
2015-11-08 06:59:07 -05:00
|
|
|
-----
|
2015-10-16 12:02:34 -04:00
|
|
|
|
2015-09-25 08:55:37 -04:00
|
|
|
==== BoostingQueryBuilder
|
|
|
|
|
|
|
|
Removed setters for mandatory positive/negative query. Both arguments now have
|
|
|
|
to be supplied at construction time already and have to be non-null.
|
|
|
|
|
|
|
|
==== SpanContainingQueryBuilder
|
|
|
|
|
|
|
|
Removed setters for mandatory big/little inner span queries. Both arguments now have
|
|
|
|
to be supplied at construction time already and have to be non-null. Updated
|
|
|
|
static factory methods in QueryBuilders accordingly.
|
|
|
|
|
|
|
|
==== SpanOrQueryBuilder
|
|
|
|
|
|
|
|
Making sure that query contains at least one clause by making initial clause mandatory
|
|
|
|
in constructor.
|
|
|
|
|
|
|
|
==== SpanNearQueryBuilder
|
|
|
|
|
|
|
|
Removed setter for mandatory slop parameter, needs to be set in constructor now. Also
|
|
|
|
making sure that query contains at least one clause by making initial clause mandatory
|
|
|
|
in constructor. Updated the static factory methods in QueryBuilders accordingly.
|
|
|
|
|
|
|
|
==== SpanNotQueryBuilder
|
|
|
|
|
|
|
|
Removed setter for mandatory include/exclude span query clause, needs to be set in constructor now.
|
|
|
|
Updated the static factory methods in QueryBuilders and tests accordingly.
|
|
|
|
|
|
|
|
==== SpanWithinQueryBuilder
|
|
|
|
|
|
|
|
Removed setters for mandatory big/little inner span queries. Both arguments now have
|
|
|
|
to be supplied at construction time already and have to be non-null. Updated
|
|
|
|
static factory methods in QueryBuilders accordingly.
|
|
|
|
|
|
|
|
==== QueryFilterBuilder
|
|
|
|
|
|
|
|
Removed the setter `queryName(String queryName)` since this field is not supported
|
|
|
|
in this type of query. Use `FQueryFilterBuilder.queryName(String queryName)` instead
|
|
|
|
when in need to wrap a named query as a filter.
|
|
|
|
|
|
|
|
==== WrapperQueryBuilder
|
|
|
|
|
|
|
|
Removed `wrapperQueryBuilder(byte[] source, int offset, int length)`. Instead simply
|
|
|
|
use `wrapperQueryBuilder(byte[] source)`. Updated the static factory methods in
|
|
|
|
QueryBuilders accordingly.
|
|
|
|
|
|
|
|
==== QueryStringQueryBuilder
|
|
|
|
|
|
|
|
Removed ability to pass in boost value using `field(String field)` method in form e.g. `field^2`.
|
|
|
|
Use the `field(String, float)` method instead.
|
|
|
|
|
|
|
|
==== Operator
|
|
|
|
|
|
|
|
Removed the enums called `Operator` from `MatchQueryBuilder`, `QueryStringQueryBuilder`,
|
|
|
|
`SimpleQueryStringBuilder`, and `CommonTermsQueryBuilder` in favour of using the enum
|
|
|
|
defined in `org.elasticsearch.index.query.Operator` in an effort to consolidate the
|
|
|
|
codebase and avoid duplication.
|
|
|
|
|
|
|
|
==== queryName and boost support
|
|
|
|
|
|
|
|
Support for `queryName` and `boost` has been streamlined to all of the queries. That is
|
|
|
|
a breaking change till queries get sent over the network as serialized json rather
|
|
|
|
than in `Streamable` format. In fact whenever additional fields are added to the json
|
|
|
|
representation of the query, older nodes might throw error when they find unknown fields.
|
|
|
|
|
|
|
|
==== InnerHitsBuilder
|
|
|
|
|
|
|
|
InnerHitsBuilder now has a dedicated addParentChildInnerHits and addNestedInnerHits methods
|
|
|
|
to differentiate between inner hits for nested vs. parent / child documents. This change
|
|
|
|
makes the type / path parameter mandatory.
|
|
|
|
|
|
|
|
==== MatchQueryBuilder
|
|
|
|
|
|
|
|
Moving MatchQueryBuilder.Type and MatchQueryBuilder.ZeroTermsQuery enum to MatchQuery.Type.
|
|
|
|
Also reusing new Operator enum.
|
|
|
|
|
|
|
|
==== MoreLikeThisQueryBuilder
|
|
|
|
|
|
|
|
Removed `MoreLikeThisQueryBuilder.Item#id(String id)`, `Item#doc(BytesReference doc)`,
|
|
|
|
`Item#doc(XContentBuilder doc)`. Use provided constructors instead.
|
|
|
|
|
2015-10-26 16:42:45 -04:00
|
|
|
Removed `MoreLikeThisQueryBuilder#addLike` in favor of texts and/or items being provided
|
2015-09-25 08:55:37 -04:00
|
|
|
at construction time. Using arrays there instead of lists now.
|
|
|
|
|
|
|
|
Removed `MoreLikeThisQueryBuilder#addUnlike` in favor to using the `unlike` methods
|
|
|
|
which take arrays as arguments now rather than the lists used before.
|
|
|
|
|
|
|
|
The deprecated `docs(Item... docs)`, `ignoreLike(Item... docs)`,
|
|
|
|
`ignoreLike(String... likeText)`, `addItem(Item... likeItems)` have been removed.
|
|
|
|
|
|
|
|
==== GeoDistanceQueryBuilder
|
|
|
|
|
|
|
|
Removing individual setters for lon() and lat() values, both values should be set together
|
|
|
|
using point(lon, lat).
|
|
|
|
|
|
|
|
==== GeoDistanceRangeQueryBuilder
|
|
|
|
|
|
|
|
Removing setters for to(Object ...) and from(Object ...) in favour of the only two allowed input
|
|
|
|
arguments (String, Number). Removing setter for center point (point(), geohash()) because parameter
|
|
|
|
is mandatory and should already be set in constructor.
|
|
|
|
Also removing setters for lt(), lte(), gt(), gte() since they can all be replaced by equivallent
|
|
|
|
calls to to/from() and inludeLower()/includeUpper().
|
|
|
|
|
|
|
|
==== GeoPolygonQueryBuilder
|
|
|
|
|
|
|
|
Require shell of polygon already to be specified in constructor instead of adding it pointwise.
|
|
|
|
This enables validation, but makes it necessary to remove the addPoint() methods.
|
|
|
|
|
|
|
|
==== MultiMatchQueryBuilder
|
|
|
|
|
|
|
|
Moving MultiMatchQueryBuilder.ZeroTermsQuery enum to MatchQuery.ZeroTermsQuery.
|
|
|
|
Also reusing new Operator enum.
|
|
|
|
|
|
|
|
Removed ability to pass in boost value using `field(String field)` method in form e.g. `field^2`.
|
|
|
|
Use the `field(String, float)` method instead.
|
|
|
|
|
|
|
|
==== MissingQueryBuilder
|
|
|
|
|
|
|
|
The two individual setters for existence() and nullValue() were removed in favour of
|
|
|
|
optional constructor settings in order to better capture and validate their interdependent
|
|
|
|
settings at construction time.
|
|
|
|
|
2015-10-20 07:56:50 -04:00
|
|
|
==== NotQueryBuilder
|
|
|
|
|
|
|
|
The NotQueryBuilder which was deprecated in 2.1.0 is removed. As a replacement use BoolQueryBuilder
|
2015-11-08 06:59:07 -05:00
|
|
|
with added mustNot() clause. So instead of using `new NotQueryBuilder(filter)` now use
|
|
|
|
`new BoolQueryBuilder().mustNot(filter)`.
|
2015-10-20 07:56:50 -04:00
|
|
|
|
2015-09-25 08:55:37 -04:00
|
|
|
==== TermsQueryBuilder
|
|
|
|
|
|
|
|
Remove the setter for `termsLookup()`, making it only possible to either use a TermsLookup object or
|
|
|
|
individual values at construction time. Also moving individual settings for the TermsLookup (lookupIndex,
|
|
|
|
lookupType, lookupId, lookupPath) to the separate TermsLookup class, using constructor only and moving
|
|
|
|
checks for validation there. Removed `TermsLookupQueryBuilder` in favour of `TermsQueryBuilder`.
|
|
|
|
|
|
|
|
==== FunctionScoreQueryBuilder
|
|
|
|
|
|
|
|
`add` methods have been removed, all filters and functions must be provided as constructor arguments by
|
|
|
|
creating an array of `FunctionScoreQueryBuilder.FilterFunctionBuilder` objects, containing one element
|
|
|
|
for each filter/function pair.
|
|
|
|
|
|
|
|
`scoreMode` and `boostMode` can only be provided using corresponding enum members instead
|
|
|
|
of string values: see `FilterFunctionScoreQuery.ScoreMode` and `CombineFunction`.
|
|
|
|
|
|
|
|
`CombineFunction.MULT` has been renamed to `MULTIPLY`.
|
|
|
|
|
2015-10-05 07:44:20 -04:00
|
|
|
==== IdsQueryBuilder
|
|
|
|
|
|
|
|
For simplicity, only one way of adding the ids to the existing list (empty by default) is left: `addIds(String...)`
|
|
|
|
|
2015-10-02 08:08:10 -04:00
|
|
|
==== DocumentAlreadyExistsException removed
|
|
|
|
|
|
|
|
`DocumentAlreadyExistsException` is removed and a `VersionConflictException` is thrown instead (with a better
|
|
|
|
error description). This will influence code that use the `IndexRequest.opType()` or `IndexRequest.create()`
|
|
|
|
to index a document only if it doesn't already exist.
|
2015-10-20 10:12:48 -04:00
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_cache_concurrency]]
|
2015-10-20 10:12:48 -04:00
|
|
|
=== Cache concurrency level settings removed
|
|
|
|
|
|
|
|
Two cache concurrency level settings `indices.requests.cache.concurrency_level` and
|
|
|
|
`indices.fielddata.cache.concurrency_level` because they no longer apply to the cache implementation used for the
|
|
|
|
request cache and the field data cache.
|
2015-10-23 23:43:37 -04:00
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_non_loopback]]
|
2015-10-23 23:43:37 -04:00
|
|
|
=== Remove bind option of `non_loopback`
|
|
|
|
|
|
|
|
This setting would arbitrarily pick the first interface not marked as loopback. Instead, specify by address
|
|
|
|
scope (e.g. `_local_,_site_` for all loopback and private network addresses) or by explicit interface names,
|
2015-10-28 10:16:54 -04:00
|
|
|
hostnames, or addresses.
|
|
|
|
|
2015-11-08 06:59:07 -05:00
|
|
|
[[breaking_30_thread_pool]]
|
2015-10-28 10:16:54 -04:00
|
|
|
=== Forbid changing of thread pool types
|
|
|
|
|
|
|
|
Previously, <<modules-threadpool,thread pool types>> could be dynamically adjusted. The thread pool type effectively
|
|
|
|
controls the backing queue for the thread pool and modifying this is an expert setting with minimal practical benefits
|
|
|
|
and high risk of being misused. The ability to change the thread pool type for any thread pool has been removed; do note
|
|
|
|
that it is still possible to adjust relevant thread pool parameters for each of the thread pools (e.g., depending on
|
|
|
|
the thread pool type, `keep_alive`, `queue_size`, etc.).
|
2015-11-13 09:18:21 -05:00
|
|
|
|
|
|
|
=== Adding system CPU percent to OS stats
|
|
|
|
|
|
|
|
The recent CPU usage (as a percent) has been added to the OS stats reported under the node stats API and the cat nodes
|
|
|
|
API. The breaking change here is that there is a new object in the "os" object in the node stats response. This object
|
|
|
|
is called "cpu" and includes "percent" and "load_average" as fields. This moves the "load_average" field that was
|
|
|
|
previously a top-level field in the "os" object to the "cpu" object. Additionally, the "cpu" field in the cat nodes API
|
|
|
|
response is output by default.
|
|
|
|
|
|
|
|
Finally, the API for org.elasticsearch.monitor.os.OsStats has changed. The `getLoadAverage` method has been removed. The
|
|
|
|
value for this can now be obtained from `OsStats.Cpu#getLoadAverage`. Additionally, the recent CPU usage can be obtained
|
|
|
|
from `OsStats.Cpu#getPercent`.
|