You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by ga...@apache.org on 2019/02/21 16:41:52 UTC
[flink] branch master updated: [FLINK-11713][docs] Remove legacy
mode from documentation
This is an automated email from the ASF dual-hosted git repository.
gary pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new 1999f16 [FLINK-11713][docs] Remove legacy mode from documentation
1999f16 is described below
commit 1999f1634b2ef714a35f441a2e23e990c5ec3ca6
Author: Gary Yao <ga...@apache.org>
AuthorDate: Thu Feb 21 11:23:03 2019 +0100
[FLINK-11713][docs] Remove legacy mode from documentation
---
docs/_includes/generated/mesos_configuration.html | 10 ---------
docs/monitoring/rest_api.md | 2 --
docs/ops/deployment/mesos.md | 6 -----
docs/ops/state/large_state_tuning.md | 2 --
.../flink/mesos/configuration/MesosOptions.java | 26 ----------------------
5 files changed, 46 deletions(-)
diff --git a/docs/_includes/generated/mesos_configuration.html b/docs/_includes/generated/mesos_configuration.html
index 54e92e5..9d5be9f 100644
--- a/docs/_includes/generated/mesos_configuration.html
+++ b/docs/_includes/generated/mesos_configuration.html
@@ -13,21 +13,11 @@
<td>The failover timeout in seconds for the Mesos scheduler, after which running tasks are automatically shut down.</td>
</tr>
<tr>
- <td><h5>mesos.initial-tasks</h5></td>
- <td style="word-wrap: break-word;">0</td>
- <td>The initial workers to bring up when the master starts. This option is ignored unless Flink is in <a href="#legacy">legacy mode</a>.</td>
- </tr>
- <tr>
<td><h5>mesos.master</h5></td>
<td style="word-wrap: break-word;">(none)</td>
<td>The Mesos master URL. The value should be in one of the following forms: <ul><li>host:port</li><li>zk://host1:port1,host2:port2,.../path</li><li>zk://username:password@host1:port1,host2:port2,.../path</li><li>file:///path/to/file</li></ul></td>
</tr>
<tr>
- <td><h5>mesos.maximum-failed-tasks</h5></td>
- <td style="word-wrap: break-word;">-1</td>
- <td>The maximum number of failed workers before the cluster fails. May be set to -1 to disable this feature. This option is ignored unless Flink is in <a href="#legacy">legacy mode</a>.</td>
- </tr>
- <tr>
<td><h5>mesos.resourcemanager.artifactserver.port</h5></td>
<td style="word-wrap: break-word;">0</td>
<td>The config parameter defining the Mesos artifact server port to use. Setting the port to 0 will let the OS choose an available port.</td>
diff --git a/docs/monitoring/rest_api.md b/docs/monitoring/rest_api.md
index c799e91..f433163 100644
--- a/docs/monitoring/rest_api.md
+++ b/docs/monitoring/rest_api.md
@@ -61,8 +61,6 @@ If no version is specified Flink will default to the *oldest* version supporting
Querying unsupported/non-existing versions will return a 404 error.
-<span class="label label-danger">Attention</span> REST API versioning is *not* active if the cluster runs in [legacy mode](../ops/config.html#mode). For this case please refer to the legacy API below.
-
<div class="codetabs" markdown="1">
<div data-lang="v1" markdown="1">
diff --git a/docs/ops/deployment/mesos.md b/docs/ops/deployment/mesos.md
index 1ff8afa..b36bdec 100644
--- a/docs/ops/deployment/mesos.md
+++ b/docs/ops/deployment/mesos.md
@@ -189,12 +189,6 @@ For example:
-Dtaskmanager.numberOfTaskSlots=2 \
-Dparallelism.default=10
-<div class="alert alert-info">
- <strong>Note:</strong> If Flink is in <a href="{{ site.baseurl }}/ops/config.html#legacy">legacy mode</a>,
- you should additionally define the number of task managers that are started by Mesos via
- <a href="{{ site.baseurl }}/ops/config.html#mesos-initial-tasks"><code>mesos.initial-tasks</code></a>.
-</div>
-
### High Availability
You will need to run a service like Marathon or Apache Aurora which takes care of restarting the Flink master process in case of node or process failures.
diff --git a/docs/ops/state/large_state_tuning.md b/docs/ops/state/large_state_tuning.md
index 0e81890..d175ca6 100644
--- a/docs/ops/state/large_state_tuning.md
+++ b/docs/ops/state/large_state_tuning.md
@@ -332,6 +332,4 @@ if a task manager is no longer available, a task that cannot return to its previ
that the previous slot can only disappear when a task manager is no longer available, and in this case *some* tasks have to request a new slot anyways. With our scheduling strategy
we give the maximum number of tasks a chance to recover from their local state and avoid the cascading effect of tasks stealing their previous slots from one another.
-Allocation-preserving scheduling does not work with Flink's legacy mode.
-
{% top %}
diff --git a/flink-mesos/src/main/java/org/apache/flink/mesos/configuration/MesosOptions.java b/flink-mesos/src/main/java/org/apache/flink/mesos/configuration/MesosOptions.java
index 0c4e1f6..51484c1 100644
--- a/flink-mesos/src/main/java/org/apache/flink/mesos/configuration/MesosOptions.java
+++ b/flink-mesos/src/main/java/org/apache/flink/mesos/configuration/MesosOptions.java
@@ -20,7 +20,6 @@ package org.apache.flink.mesos.configuration;
import org.apache.flink.configuration.ConfigOption;
import org.apache.flink.configuration.description.Description;
-import org.apache.flink.configuration.description.LinkElement;
import org.apache.flink.configuration.description.TextElement;
import static org.apache.flink.configuration.ConfigOptions.key;
@@ -31,31 +30,6 @@ import static org.apache.flink.configuration.ConfigOptions.key;
public class MesosOptions {
/**
- * The initial number of Mesos tasks to allocate.
- */
- public static final ConfigOption<Integer> INITIAL_TASKS =
- key("mesos.initial-tasks")
- .defaultValue(0)
- .withDescription(Description.builder()
- .text("The initial workers to bring up when the master starts. ")
- .text("This option is ignored unless Flink is in %s.", LinkElement.link("#legacy", "legacy mode"))
- .build());
-
- /**
- * The maximum number of failed Mesos tasks before entirely stopping
- * the Mesos session / job on Mesos.
- *
- * <p>By default, we take the number of initially requested tasks.
- */
- public static final ConfigOption<Integer> MAX_FAILED_TASKS =
- key("mesos.maximum-failed-tasks")
- .defaultValue(-1)
- .withDescription(Description.builder()
- .text("The maximum number of failed workers before the cluster fails. May be set to -1 to disable this feature. ")
- .text("This option is ignored unless Flink is in %s.", LinkElement.link("#legacy", "legacy mode"))
- .build());
-
- /**
* The Mesos master URL.
*
* <p>The value should be in one of the following forms: