[ 
https://issues.apache.org/jira/browse/FLINK-9560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16511363#comment-16511363
 ] 

ASF GitHub Bot commented on FLINK-9560:
---------------------------------------

Github user pnowojski commented on a diff in the pull request:

    https://github.com/apache/flink/pull/6149#discussion_r195142699
  
    --- Diff: 
flink-core/src/main/java/org/apache/flink/core/fs/LimitedConnectionsFileSystem.java
 ---
    @@ -166,12 +174,47 @@ public LimitedConnectionsFileSystem(
                        int maxNumOpenInputStreams,
                        long streamOpenTimeout,
                        long streamInactivityTimeout) {
    +           this(originalFs, maxNumOpenStreamsTotal, 
maxNumOpenOutputStreams, maxNumOpenInputStreams, streamOpenTimeout, 
streamInactivityTimeout, 0, 0);
    +   }
    +
    +   /**
    +    * Creates a new output connection limiting file system, limiting input 
and output streams with
    +    * potentially different quotas.
    +    *
    +    * <p>If streams are inactive (meaning not writing bytes) for longer 
than the given timeout,
    +    * then they are terminated as "inactive", to prevent that the limited 
number of connections gets
    +    * stuck on only blocked threads.
    +    *
    +    * @param originalFs              The original file system to which 
connections are limited.
    +    * @param maxNumOpenStreamsTotal  The maximum number of concurrent open 
streams (0 means no limit).
    +    * @param maxNumOpenOutputStreams The maximum number of concurrent open 
output streams (0 means no limit).
    +    * @param maxNumOpenInputStreams  The maximum number of concurrent open 
input streams (0 means no limit).
    +    * @param streamOpenTimeout       The maximum number of milliseconds 
that the file system will wait when
    +    *                                no more connections are currently 
permitted.
    +    * @param streamInactivityTimeout The milliseconds that a stream may 
spend not writing any
    +    *                                bytes before it is closed as inactive.
    +    * @param inputBytesPerSecondRate The rate limiting of Bytes red per 
second on the FileSystem (0 means no limit)
    +    * @param outputBytesPerSecondRate The rate limiting of Bytes written 
per second on the FileSystem (0 means no limit)
    +    */
    +
    +   public LimitedConnectionsFileSystem(
    +                   FileSystem originalFs,
    +                   int maxNumOpenStreamsTotal,
    +                   int maxNumOpenOutputStreams,
    +                   int maxNumOpenInputStreams,
    +                   long streamOpenTimeout,
    +                   long streamInactivityTimeout,
    +                   long inputBytesPerSecondRate,
    +                   long outputBytesPerSecondRate
    +                   ) {
    --- End diff --
    
    remove the newline after last argument


> RateLimiting for FileSystem
> ---------------------------
>
>                 Key: FLINK-9560
>                 URL: https://issues.apache.org/jira/browse/FLINK-9560
>             Project: Flink
>          Issue Type: Improvement
>          Components: FileSystem
>    Affects Versions: 1.5.0
>            Reporter: Etienne CARRIERE
>            Priority: Major
>
> *Pain*: On our system, we see that during checkpoint , all the bandwidth is 
> take to send the checkpoint to object storage (s3 in our case)
> *Proposal* : After the creation of some limitation on Filesystem (mostly 
> number of connections with the  tickets FLINK-8125/FLINK-8198/FLINK-9468), I 
> propose to add ratelimiting "per Filesystem" .
> *Proposal of implementation* : Modify LimitedConnectionsFileSystem to add a 
> ratelimiter on both Input and OutputStream.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to