Skip to content

Commit

Permalink
modify to 1G
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyijq committed Dec 27, 2018
1 parent 50020e5 commit 0d69c42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,15 @@
import java.util.concurrent.atomic.AtomicLong;
import java.util.concurrent.atomic.LongAdder;
import java.util.function.Function;

import static qunar.tc.qmq.store.MessageLog.PER_SEGMENT_FILE_SIZE;

/**
* @author xufeng.deng [email protected]
* @since 2018-07-19 17:43
*/
public class MessageLogReplayer implements Switchable {
private static final Logger LOGGER = LoggerFactory.getLogger(MessageLogReplayer.class);

private static final RateLimiter LOG_LIMITER = RateLimiter.create((double) 1 / 6);

private final DelayLogFacade facade;
private final Thread dispatcherThread;
private final LongAdder iterateFrom;
Expand Down
2 changes: 1 addition & 1 deletion qmq-store/src/main/java/qunar/tc/qmq/store/MessageLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
public class MessageLog implements AutoCloseable {
private static final Logger LOG = LoggerFactory.getLogger(MessageLog.class);

public static final int PER_SEGMENT_FILE_SIZE = 100 * 1024 * 1024;
private static final int PER_SEGMENT_FILE_SIZE = 1024 * 1024 * 1024;

//4 bytes magic code + 1 byte attribute + 8 bytes timestamp
public static final int MIN_RECORD_BYTES = 13;
Expand Down

0 comments on commit 0d69c42

Please sign in to comment.