Skip to content

Commit ff9520e

Browse files
committed
Merge branch 'master' into simplify-retention-lease-expiration
* master: Mute failing API key integration test (elastic#38409) Change the milliseconds precision to 3 digits for intervals. (elastic#38297) SecuritySettingsSource license.self_generated: trial (elastic#38233) Rename no-master-block setting (elastic#38350) Rename static Zen1 settings (elastic#38333) Migration doc for audit json log file (elastic#38165) Add apm_user reserved role (elastic#38206)
2 parents fb01037 + 638ba4a commit ff9520e

File tree

75 files changed

+663
-279
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+663
-279
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,12 @@ class ClusterFormationTasks {
131131
writeConfigSetup = { Map esConfig ->
132132
if (config.getAutoSetHostsProvider()) {
133133
// Don't force discovery provider if one is set by the test cluster specs already
134-
if (esConfig.containsKey('discovery.zen.hosts_provider') == false) {
135-
esConfig['discovery.zen.hosts_provider'] = 'file'
134+
final String seedProvidersSettingName =
135+
node.nodeVersion.onOrAfter("7.0.0") ? "discovery.seed_providers" : "discovery.zen.hosts_provider";
136+
if (esConfig.containsKey(seedProvidersSettingName) == false) {
137+
esConfig[seedProvidersSettingName] = 'file'
136138
}
137-
esConfig['discovery.zen.ping.unicast.hosts'] = []
139+
esConfig[node.nodeVersion.onOrAfter("7.0.0") ? "discovery.seed_hosts" : "discovery.zen.ping.unicast.hosts"] = []
138140
}
139141
boolean supportsInitialMasterNodes = hasBwcNodes == false || config.bwcVersion.onOrAfter("7.0.0")
140142
if (esConfig['discovery.type'] == null && config.getAutoSetInitialMasterNodes() && supportsInitialMasterNodes) {

client/rest-high-level/src/test/java/org/elasticsearch/client/documentation/SecurityDocumentationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ public void testGetRoles() throws Exception {
654654

655655
List<Role> roles = response.getRoles();
656656
assertNotNull(response);
657-
// 24 system roles plus the three we created
658-
assertThat(roles.size(), equalTo(27));
657+
// 25 system roles plus the three we created
658+
assertThat(roles.size(), equalTo(28));
659659
}
660660

661661
{

distribution/src/config/elasticsearch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ ${path.logs}
6262
#
6363
# --------------------------------- Discovery ----------------------------------
6464
#
65-
# Pass an initial list of hosts to perform discovery when new node is started:
65+
# Pass an initial list of hosts to perform discovery when this node is started:
6666
# The default list of hosts is ["127.0.0.1", "[::1]"]
6767
#
68-
#discovery.zen.ping.unicast.hosts: ["host1", "host2"]
68+
#discovery.seed_hosts: ["host1", "host2"]
6969
#
7070
# Bootstrap the cluster using an initial set of master-eligible nodes:
7171
#

docs/plugins/discovery-azure-classic.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ cloud:
3030
type: pkcs12
3131
3232
discovery:
33-
zen.hosts_provider: azure
33+
seed_providers: azure
3434
----
3535

3636
[IMPORTANT]

docs/plugins/discovery-ec2.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ provider for Zen discovery to `ec2`:
2020

2121
[source,yaml]
2222
----
23-
discovery.zen.hosts_provider: ec2
23+
discovery.seed_providers: ec2
2424
----
2525

2626
==== Settings

docs/plugins/discovery-gce.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ cloud:
1919
project_id: <your-google-project-id>
2020
zone: <your-zone>
2121
discovery:
22-
zen.hosts_provider: gce
22+
seed_providers: gce
2323
--------------------------------------------------
2424

2525
The following gce settings (prefixed with `cloud.gce`) are supported:
@@ -232,7 +232,7 @@ cloud:
232232
project_id: es-cloud
233233
zone: europe-west1-a
234234
discovery:
235-
zen.hosts_provider: gce
235+
seed_providers: gce
236236
--------------------------------------------------
237237

238238

@@ -346,7 +346,7 @@ cloud:
346346
project_id: <your-google-project-id>
347347
zone: ["<your-zone1>", "<your-zone2>"]
348348
discovery:
349-
zen.hosts_provider: gce
349+
seed_providers: gce
350350
--------------------------------------------------
351351

352352

@@ -382,7 +382,7 @@ cloud:
382382
project_id: es-cloud
383383
zone: europe-west1-a
384384
discovery:
385-
zen.hosts_provider: gce
385+
seed_providers: gce
386386
gce:
387387
tags: elasticsearch, dev
388388
--------------------------------------------------
@@ -497,7 +497,7 @@ cloud:
497497
project_id: es-cloud
498498
zone: europe-west1-a
499499
discovery:
500-
zen.hosts_provider: gce
500+
seed_providers: gce
501501
--------------------------------------------------
502502

503503
Replaces `project_id` and `zone` with your settings.

docs/reference/migration/migrate_7_0/discovery.asciidoc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ Production deployments of Elasticsearch now require at least one of the
3535
following settings to be specified in the `elasticsearch.yml` configuration
3636
file:
3737

38-
- `discovery.zen.ping.unicast.hosts`
39-
- `discovery.zen.hosts_provider`
38+
- `discovery.seed_hosts`
39+
- `discovery.seed_providers`
4040
- `cluster.initial_master_nodes`
41+
42+
[float]
43+
==== New name for `no_master_block` setting
44+
45+
The `discovery.zen.no_master_block` setting is now known as
46+
`cluster.no_master_block`. Any value set for `discovery.zen.no_master_block` is
47+
now ignored. You should remove this setting and, if needed, set
48+
`cluster.no_master_block` appropriately after the upgrade.

docs/reference/migration/migrate_7_0/logging.asciidoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@ Note: GC logs which are written to the file `gc.log` will not be changed.
3131
==== Docker output in JSON format
3232

3333
All Docker console logs are now in JSON format. You can distinguish logs streams with the `type` field.
34+
35+
[float]
36+
==== Audit plaintext log file removed, JSON file renamed
37+
38+
Elasticsearch no longer produces the `${cluster_name}_access.log` plaintext
39+
audit log file. The `${cluster_name}_audit.log` files also no longer exist; they
40+
are replaced by `${cluster_name}_audit.json` files. When auditing is enabled,
41+
auditing events are stored in these dedicated JSON log files on each node.
42+

docs/reference/modules/discovery/bootstrapping.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,6 @@ If any of the following settings are configured then auto-bootstrapping will not
9494
take place, and you must configure `cluster.initial_master_nodes` as described
9595
in the <<modules-discovery-bootstrap-cluster,section on cluster bootstrapping>>:
9696

97-
* `discovery.zen.hosts_provider`
98-
* `discovery.zen.ping.unicast.hosts`
97+
* `discovery.seed_providers`
98+
* `discovery.seed_hosts`
9999
* `cluster.initial_master_nodes`

docs/reference/modules/discovery/discovery-settings.asciidoc

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,10 @@ Discovery and cluster formation are affected by the following settings:
105105
`discovery.cluster_formation_warning_timeout`::
106106

107107
Sets how long a node will try to form a cluster before logging a warning
108-
that the cluster did not form. Defaults to `10s`. If a cluster has not
108+
that the cluster did not form. Defaults to `10s`. If a cluster has not
109109
formed after `discovery.cluster_formation_warning_timeout` has elapsed then
110-
the node will log a warning message that starts with the phrase `master not discovered` which describes the current state of the discovery process.
110+
the node will log a warning message that starts with the phrase `master not
111+
discovered` which describes the current state of the discovery process.
111112

112113
`discovery.find_peers_interval`::
113114

@@ -128,12 +129,12 @@ Discovery and cluster formation are affected by the following settings:
128129
Sets how long a node will wait after asking its peers again before
129130
considering the request to have failed. Defaults to `3s`.
130131

131-
`discovery.zen.hosts_provider`::
132-
Specifies which type of <<built-in-hosts-providers,hosts provider>> provides
133-
the list of seed nodes. By default, it is the
132+
`discovery.seed_providers`::
133+
Specifies which types of <<built-in-hosts-providers,seed provider>> provide
134+
the addresses of seed nodes. By default, it is the
134135
<<settings-based-hosts-provider,settings-based hosts provider>>.
135136

136-
[[no-master-block]]`discovery.zen.no_master_block`::
137+
[[no-master-block]]`cluster.no_master_block`::
137138
Specifies which operations are rejected when there is no active master in a
138139
cluster. This setting has two valid values:
139140
+
@@ -149,23 +150,32 @@ cluster.
149150

150151
[NOTE]
151152
===============================
152-
* The `discovery.zen.no_master_block` setting doesn't apply to nodes-based APIs
153+
* The `cluster.no_master_block` setting doesn't apply to nodes-based APIs
153154
(for example, cluster stats, node info, and node stats APIs). Requests to these
154155
APIs are not be blocked and can run on any available node.
155156
156157
* For the cluster to be fully operational, it must have an active master.
157158
===============================
159+
160+
WARNING: This setting replaces the `discovery.zen.no_master_block` setting in
161+
earlier versions. The `discovery.zen.no_master_block` setting is ignored.
162+
158163
--
159164

160-
`discovery.zen.ping.unicast.hosts`::
165+
`discovery.seed_hosts`::
161166

162167
Provides a list of master-eligible nodes in the cluster. The list contains
163168
either an array of hosts or a comma-delimited string. Each value has the
164169
format `host:port` or `host`, where `port` defaults to the setting
165170
`transport.profiles.default.port`. Note that IPv6 hosts must be bracketed.
166171
The default value is `127.0.0.1, [::1]`. See <<unicast.hosts>>.
167172

168-
`discovery.zen.ping.unicast.hosts.resolve_timeout`::
173+
`discovery.seed_resolver.timeout`::
169174

170175
Sets the amount of time to wait for DNS lookups on each round of discovery.
171176
This is specified as a <<time-units, time unit>> and defaults to `5s`.
177+
178+
`discovery.seed_resolver.max_concurrent_resolvers`::
179+
180+
Sets the number of threads with which to perform DNS lookups for seed nodes.
181+
This defaults to `10`.

0 commit comments

Comments
 (0)