Minor logging improvements
This commit is contained in:
parent
750bd70032
commit
34c149de81
@ -45,7 +45,7 @@ public class RpcManagerActor extends ContextAwareActor {
|
|||||||
|
|
||||||
private final ServerAddress instance;
|
private final ServerAddress instance;
|
||||||
|
|
||||||
public RpcManagerActor(ActorSystemContext systemContext) {
|
RpcManagerActor(ActorSystemContext systemContext) {
|
||||||
super(systemContext);
|
super(systemContext);
|
||||||
this.sessionActors = new HashMap<>();
|
this.sessionActors = new HashMap<>();
|
||||||
this.pendingMsgs = new HashMap<>();
|
this.pendingMsgs = new HashMap<>();
|
||||||
@ -55,7 +55,6 @@ public class RpcManagerActor extends ContextAwareActor {
|
|||||||
.filter(otherServer -> otherServer.getServerAddress().compareTo(instance) > 0)
|
.filter(otherServer -> otherServer.getServerAddress().compareTo(instance) > 0)
|
||||||
.forEach(otherServer -> onCreateSessionRequest(
|
.forEach(otherServer -> onCreateSessionRequest(
|
||||||
new RpcSessionCreateRequestMsg(UUID.randomUUID(), otherServer.getServerAddress(), null)));
|
new RpcSessionCreateRequestMsg(UUID.randomUUID(), otherServer.getServerAddress(), null)));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -48,7 +48,8 @@ public class CassandraBufferedRateExecutor extends AbstractBufferedRateExecutor<
|
|||||||
|
|
||||||
@Scheduled(fixedDelayString = "${cassandra.query.rate_limit_print_interval_ms}")
|
@Scheduled(fixedDelayString = "${cassandra.query.rate_limit_print_interval_ms}")
|
||||||
public void printStats() {
|
public void printStats() {
|
||||||
log.info("Permits totalAdded [{}] totalLaunched [{}] totalReleased [{}] totalFailed [{}] totalExpired [{}] totalRejected [{}] currBuffer [{}] ",
|
log.info("Permits queueSize [{}] totalAdded [{}] totalLaunched [{}] totalReleased [{}] totalFailed [{}] totalExpired [{}] totalRejected [{}] currBuffer [{}] ",
|
||||||
|
getQueueSize(),
|
||||||
totalAdded.getAndSet(0), totalLaunched.getAndSet(0), totalReleased.getAndSet(0),
|
totalAdded.getAndSet(0), totalLaunched.getAndSet(0), totalReleased.getAndSet(0),
|
||||||
totalFailed.getAndSet(0), totalExpired.getAndSet(0), totalRejected.getAndSet(0),
|
totalFailed.getAndSet(0), totalExpired.getAndSet(0), totalRejected.getAndSet(0),
|
||||||
concurrencyLevel.get());
|
concurrencyLevel.get());
|
||||||
|
|||||||
@ -166,4 +166,8 @@ public abstract class AbstractBufferedRateExecutor<T extends AsyncTask, F extend
|
|||||||
log.debug("[{}] {} task", taskCtx.getId(), action);
|
log.debug("[{}] {} task", taskCtx.getId(), action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected int getQueueSize(){
|
||||||
|
return queue.size();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user