accumulo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From joshelser <...@git.apache.org>
Subject [GitHub] accumulo pull request: ACCUMULO-4187: Added rate limiting for majo...
Date Wed, 13 Apr 2016 04:11:41 GMT
Github user joshelser commented on a diff in the pull request:

    https://github.com/apache/accumulo/pull/90#discussion_r59490771
  
    --- Diff: server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServer.java ---
    @@ -3089,4 +3093,20 @@ public void removeBulkImportState(List<String> files) {
         bulkImportStatus.removeBulkImportStatus(files);
       }
     
    +  private static final String MAJC_READ_LIMITER_KEY = "tserv_majc_read";
    +  private static final String MAJC_WRITE_LIMITER_KEY = "tserv_majc_write";
    +  private final Callable<Long> rateProvider = new Callable<Long>() {
    +    @Override
    +    public Long call() throws Exception {
    +      return getConfiguration().getMemoryInBytes(Property.TSERV_MAJC_THROUGHPUT);
    +    }
    +  };
    +
    +  public final RateLimiter getMajorCompactionReadLimiter() {
    --- End diff --
    
    Javadoc, please


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message