[ https://issues.apache.org/jira/browse/IGNITE-17407?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17572468#comment-17572468 ]
Amelchev Nikita commented on IGNITE-17407: ------------------------------------------ [~xtern], LGTM. > The snapshot rate limit does not work correctly when set to values greater > than 100 MB per second. > ---------------------------------------------------------------------------------------------------- > > Key: IGNITE-17407 > URL: https://issues.apache.org/jira/browse/IGNITE-17407 > Project: Ignite > Issue Type: Bug > Affects Versions: 2.13 > Reporter: Pavel Pereslegin > Assignee: Pavel Pereslegin > Priority: Major > Fix For: 2.14 > > Time Spent: 10m > Remaining Estimate: 0h > > The snapshot rate limit does not work correctly when set to values greater > than 100 MB per second. > Currently, the snapshot transfer rate is limited by the BasicRateLimiter. > Testing shows that limiter is unable to give more than ~119 millions permits > per second. > {code:java} > long dataSize = U.GB; > BasicRateLimiter limiter = new BasicRateLimiter(dataSize / 2); > int blockSize = > IgniteSnapshotManager.SNAPSHOT_LIMITED_TRANSFER_BLOCK_SIZE_BYTES; > long start = System.currentTimeMillis(); > for (long i = 0; i < dataSize; i+=blockSize) > limiter.acquire(blockSize); > long totalSec = > TimeUnit.MILLISECONDS.toSeconds(System.currentTimeMillis() - start); > System.out.println("Speed= " + (dataSize / totalSec)); > {code} -- This message was sent by Atlassian Jira (v8.20.10#820010)