Skip to content

Commit

Permalink
[FLINK-15057][tests] Set JM and TM memory config in flink-conf.yaml
Browse files Browse the repository at this point in the history
This closes apache#10422.
  • Loading branch information
GJL committed Dec 6, 2019
1 parent 798b22c commit 953f1a0
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions flink-jepsen/src/jepsen/flink/db.clj
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,21 @@

(defn- default-flink-configuration
[test node]
{:high-availability "zookeeper"
:high-availability.zookeeper.quorum (zookeeper-quorum test)
:high-availability.storageDir "hdfs:///flink/ha"
:jobmanager.rpc.address node
:state.savepoints.dir "hdfs:///flink/savepoints"
:rest.address node
:rest.port 8081
:rest.bind-address "0.0.0.0"
:taskmanager.numberOfTaskSlots taskmanager-slots
:yarn.application-attempts 99999
:slotmanager.taskmanager-timeout 10000
:state.backend.local-recovery "true"
:taskmanager.registration.timeout "30 s"})
{:high-availability "zookeeper"
:high-availability.zookeeper.quorum (zookeeper-quorum test)
:high-availability.storageDir "hdfs:///flink/ha"
:jobmanager.heap.size "2048m"
:jobmanager.rpc.address node
:state.savepoints.dir "hdfs:///flink/savepoints"
:rest.address node
:rest.port 8081
:rest.bind-address "0.0.0.0"
:taskmanager.numberOfTaskSlots taskmanager-slots
:yarn.application-attempts 99999
:slotmanager.taskmanager-timeout 10000
:state.backend.local-recovery "true"
:taskmanager.memory.total-process.size "2048m"
:taskmanager.registration.timeout "30 s"})

(defn flink-configuration
[test node]
Expand Down Expand Up @@ -254,9 +256,7 @@
[]
(fu/join-space (hadoop-env-vars)
(str install-dir "/bin/yarn-session.sh")
"-d"
"-jm 2048m"
"-tm 2048m"))
"-d"))

(defn- start-yarn-session!
[]
Expand All @@ -281,7 +281,7 @@
(defn- start-yarn-job!
[test]
(c/su
(submit-job-with-retry! test ["-m yarn-cluster" "-yjm 2048m" "-ytm 2048m"])))
(submit-job-with-retry! test ["-m yarn-cluster"])))

(defn yarn-job-db
[]
Expand All @@ -301,11 +301,9 @@
(str install-dir "/bin/mesos-appmaster.sh")
(str "-Dmesos.master=" (zookeeper-uri test mesos/zk-namespace))
"-Djobmanager.rpc.address=$(hostname -f)"
"-Djobmanager.heap.size=2048m"
"-Djobmanager.rpc.port=6123"
"-Dmesos.resourcemanager.tasks.mem=2048"
"-Dtaskmanager.memory.total-process.size=2048m"
"-Dmesos.resourcemanager.tasks.cpus=1"
"-Dmesos.resourcemanager.tasks.mem=2048" ;; FLINK-15082: this option must be set instead of taskmanager.memory.total-process.size
"-Drest.bind-address=$(hostname -f)"))

(defn- start-mesos-session!
Expand Down

0 comments on commit 953f1a0

Please sign in to comment.