You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ratis.apache.org by GitBox <gi...@apache.org> on 2019/05/02 06:56:58 UTC
[GitHub] [incubator-ratis] ankitsinghal commented on a change in pull
request #18: RATIS-523 RATIS-524 RATIS-525 RATIS-526 RATIS-527 RATIS-533
Lots of cleanup on the LogService
ankitsinghal commented on a change in pull request #18: RATIS-523 RATIS-524 RATIS-525 RATIS-526 RATIS-527 RATIS-533 Lots of cleanup on the LogService
URL: https://github.com/apache/incubator-ratis/pull/18#discussion_r280301394
##########
File path: ratis-logservice/src/main/java/org/apache/ratis/logservice/server/LogServer.java
##########
@@ -61,13 +64,31 @@ public static Builder newBuilder() {
return new Builder();
}
+ @Override
+ void setRaftProperties(RaftProperties properties) {
+ super.setRaftProperties(properties);
+
+ // Increase the client timeout
+ RaftClientConfigKeys.Rpc.setRequestTimeout(properties, TimeDuration.valueOf(100, TimeUnit.SECONDS));
+
+ // Increase the segment size to avoid rolling so quickly
+ SizeInBytes segmentSize = SizeInBytes.valueOf("32MB");
Review comment:
why hardcoding? can't we do it through some config? or it is just default and will be overridden in later step?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services