You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flink.apache.org by tz...@apache.org on 2020/09/25 06:06:06 UTC

[flink-statefun-docker] branch master updated (52fc19e -> 772d558)

This is an automated email from the ASF dual-hosted git repository.

tzulitai pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun-docker.git.


    from 52fc19e  [release] Update Dockerfiles for 2.1.0 release
     new e7c8f65  [FLINK-19019] [docker] Add common filesystem plugins to flink-statefun image
     new 772d558  [FLINK-19107] Add checkpointing and recovery options to template flink-conf.yaml

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 template/Dockerfile                              | 10 ++++++++++
 template/flink-distribution/conf/flink-conf.yaml | 21 ++++++++++++++++++---
 2 files changed, 28 insertions(+), 3 deletions(-)


[flink-statefun-docker] 01/02: [FLINK-19019] [docker] Add common filesystem plugins to flink-statefun image

Posted by tz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun-docker.git

commit e7c8f6525914abe4939c594badcd8045db2d82e7
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Wed Sep 2 17:36:04 2020 +0800

    [FLINK-19019] [docker] Add common filesystem plugins to flink-statefun image
    
    This closes #7.
---
 template/Dockerfile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/template/Dockerfile b/template/Dockerfile
index 2e41900..12ce302 100644
--- a/template/Dockerfile
+++ b/template/Dockerfile
@@ -66,6 +66,16 @@ RUN mkdir -p $STATEFUN_MODULES && \
     chown -R statefun:flink $STATEFUN_HOME && \
     chmod -R g+rw $STATEFUN_HOME
 
+# add filesystem plugins
+RUN mkdir -p $FLINK_HOME/plugins/s3-fs-presto && \
+    mv $FLINK_HOME/opt/flink-s3-fs-presto-%%FLINK_VERSION%%.jar $FLINK_HOME/plugins/s3-fs-presto
+RUN mkdir -p $FLINK_HOME/plugins/swift-fs-hadoop && \
+    mv $FLINK_HOME/opt/flink-swift-fs-hadoop-%%FLINK_VERSION%%.jar $FLINK_HOME/plugins/swift-fs-hadoop
+RUN mkdir -p $FLINK_HOME/plugins/oss-fs-hadoop && \
+    mv $FLINK_HOME/opt/flink-oss-fs-hadoop-%%FLINK_VERSION%%.jar $FLINK_HOME/plugins/oss-fs-hadoop
+RUN mkdir -p $FLINK_HOME/plugins/azure-fs-hadoop && \
+    mv $FLINK_HOME/opt/flink-azure-fs-hadoop-%%FLINK_VERSION%%.jar $FLINK_HOME/plugins/azure-fs-hadoop
+
 # entry point 
 ADD docker-entry-point.sh /docker-entry-point.sh
 


[flink-statefun-docker] 02/02: [FLINK-19107] Add checkpointing and recovery options to template flink-conf.yaml

Posted by tz...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

tzulitai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink-statefun-docker.git

commit 772d55809ab9f9e0f6aae52b234c34db743ceb2f
Author: Tzu-Li (Gordon) Tai <tz...@apache.org>
AuthorDate: Tue Sep 1 14:54:19 2020 +0800

    [FLINK-19107] Add checkpointing and recovery options to template flink-conf.yaml
    
    This also removes some no longer required configuration, like max
    concurrent checkpoints = 1 and legacy scheduler.
    
    This closes #6.
---
 template/flink-distribution/conf/flink-conf.yaml | 21 ++++++++++++++++++---
 1 file changed, 18 insertions(+), 3 deletions(-)

diff --git a/template/flink-distribution/conf/flink-conf.yaml b/template/flink-distribution/conf/flink-conf.yaml
index 574ccb0..8b9b4e4 100644
--- a/template/flink-distribution/conf/flink-conf.yaml
+++ b/template/flink-distribution/conf/flink-conf.yaml
@@ -14,20 +14,35 @@
 # limitations under the License.
 # This file is the base for the Apache Flink configuration
 
+statefun.flink-job-name: Statefun Application
+
 #==============================================================================
 # Configurations strictly required by Stateful Functions. Do not change.
 #==============================================================================
 
 classloader.parent-first-patterns.additional: org.apache.flink.statefun;org.apache.kafka;com.google.protobuf
-execution.checkpointing.max-concurrent-checkpoints: 1
-jobmanager.scheduler: legacy
 
 #==============================================================================
-# Recommended configurations. Users may change according to their needs.
+# Fault tolerance, checkpointing and recovery.
+# For more related configuration options, please see: https://ci.apache.org/projects/flink/flink-docs-master/ops/config.html#fault-tolerance
 #==============================================================================
 
+# Uncomment the below to enable checkpointing for your application
+#execution.checkpointing.mode: EXACTLY_ONCE
+#execution.checkpointing.interval: 5sec
+
+restart-strategy: fixed-delay
+restart-strategy.fixed-delay.attempts: 2147483647
+restart-strategy.fixed-delay.delay: 1sec
+
 state.backend: rocksdb
 state.backend.rocksdb.timer-service.factory: ROCKSDB
 state.checkpoints.dir: file:///checkpoint-dir
 state.backend.incremental: true
+
+#==============================================================================
+# Recommended memory configurations. Users may change according to their needs.
+#==============================================================================
+
+jobmanager.memory.process.size: 1g
 taskmanager.memory.process.size: 4g