Binds worker processes to the sets of CPUs. Each CPU set is represented by a bitmask of allowed CPUs. There should be a separate set defined for each of the worker processes. By default, worker processes are not bound to any specific CPUs.
public class InstanceFactory {
private static class InstanceHolder {
public static Instance instance = new Instance();
}
public static Instance getInstance() {
return InstanceHolder.instance;
}
}
broker id, 0 means master, positive integers mean slave
storePathCommitLog
$HOME/store/commitlog/
file path for commit log
storePathConsumerQueue
$HOME/store/consumequeue/
file path for consume queue
mapedFileSizeCommitLog
1024 * 1024 * 1024(1G)
mapped file size for commit log
deleteWhen
04
When to delete the commitlog which is out of the reserve time
fileReserverdTime
72
The number of hours to keep a commitlog before deleting it
brokerRole
ASYNC_MASTER
SYNC_MASTER/ASYNC_MASTER/SLAVE
flushDiskType
ASYNC_FLUSH
{SYNC_FLUSH/ASYNC_FLUSH}. Broker of SYNC_FLUSH mode flushes each message onto disk before acknowledging producer. Broker of ASYNC_FLUSH mode, on the other hand, takes advantage of group-committing, achieving better performance.
The host has a changing IP address (or none if you have no network access). From 18.03 onwards our recommendation is to connect to the special DNS name host.docker.internal, which resolves to the internal IP address used by the host. This is for development purpose and will not work in a production environment outside of Docker Desktop for Mac.
The gateway is also reachable as gateway.docker.internal.