You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/09/03 03:08:25 UTC
[GitHub] [rocketmq] Cczzzz opened a new issue #3315: Can provide p99<=1.5ms ?
Cczzzz opened a new issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315
How can I modify the configuration or parameters to achieve this indicator。
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] areyouok commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
areyouok commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914166020
In my test the network ping latency is 0.06ms
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-922233250
> In my test the network ping latency is 0.06ms
I tested the master-slave mode.It is very easy to p99<1ms. The gap is too big of raft. why ?
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914124366
I add Metrics and recompile。write page cache is quickly。the part of raft sync is bottleneck。
specifically is :
`
long now = this.defaultMessageStore.getSystemClock().now();
return dledgerFuture.thenApply(appendEntryResponse -> {
metrics.putRtRAFT(this.defaultMessageStore.getSystemClock().now() - now);
PutMessageStatus putMessageStatus = PutMessageStatus.UNKNOWN_ERROR;
switch (DLedgerResponseCode.valueOf(appendEntryResponse.getCode())) {
case SUCCESS:
putMessageStatus = PutMessageStatus.PUT_OK;
break;
case INCONSISTENT_LEADER:
case NOT_LEADER:
case LEADER_NOT_READY:
case DISK_FULL:
putMessageStatus = PutMessageStatus.SERVICE_NOT_AVAILABLE;
break;
case WAIT_QUORUM_ACK_TIMEOUT:
//Do not return flush_slave_timeout to the client, for the ons client will ignore it.
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
case LEADER_PENDING_FULL:
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
}
PutMessageResult putMessageResult = new PutMessageResult(putMessageStatus, appendResult);
if (putMessageStatus == PutMessageStatus.PUT_OK) {
// Statistics
storeStatsService.getSinglePutMessageTopicTimesTotal(finalTopic).incrementAndGet();
storeStatsService.getSinglePutMessageTopicSizeTotal(msg.getTopic()).addAndGet(appendResult.getWroteBytes());
}
return putMessageResult;
});
`
wait dledgerFuture complete。I looked at the code inside ,all actions is asynch,and use completableFuture。
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] areyouok commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
areyouok commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914021960
You should check if there is bottleneck in client side.
I setup a 4.9.1 master/slave pair. 6 client send total 95000 TPS (produce and consume). P99 is 1.0 ms.
All configuration is default.
```
# sudo sysctl -w vm.min_free_kbytes=10000000 # modify this carefully
sudo sysctl -w vm.overcommit_memory=1
sudo sysctl -w vm.drop_caches=1
sudo sysctl -w vm.zone_reclaim_mode=0
sudo sysctl -w vm.max_map_count=655360
sudo sysctl -w vm.dirty_background_ratio=50
sudo sysctl -w vm.dirty_ratio=50
sudo sysctl -w vm.dirty_writeback_centisecs=360000
sudo sysctl -w vm.page-cluster=3
sudo sysctl -w vm.swappiness=1
```
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] areyouok commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
areyouok commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914039381
> > You should check if there is bottleneck in client side.
> > I setup a 4.9.1 master/slave pair. 6 client send total 95000 TPS (produce and consume). The P99 of produce is 1.0 ms.
> > All configuration is default.
> > ```
> > # sudo sysctl -w vm.min_free_kbytes=10000000 # modify this carefully
> > sudo sysctl -w vm.overcommit_memory=1
> > sudo sysctl -w vm.drop_caches=1
> > sudo sysctl -w vm.zone_reclaim_mode=0
> > sudo sysctl -w vm.max_map_count=655360
> > sudo sysctl -w vm.dirty_background_ratio=50
> > sudo sysctl -w vm.dirty_ratio=50
> > sudo sysctl -w vm.dirty_writeback_centisecs=360000
> > sudo sysctl -w vm.page-cluster=3
> > sudo sysctl -w vm.swappiness=1
> > ```
>
> it is on DLedger ?DLedger performance is lower than master/slave
no
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] areyouok edited a comment on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
areyouok edited a comment on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914021960
You should check if there is bottleneck in client side.
I setup a 4.9.1 master/slave pair. 6 client send total 95000 TPS (produce and consume). The P99 of produce is 1.0 ms.
All configuration is default.
```
# sudo sysctl -w vm.min_free_kbytes=10000000 # modify this carefully
sudo sysctl -w vm.overcommit_memory=1
sudo sysctl -w vm.drop_caches=1
sudo sysctl -w vm.zone_reclaim_mode=0
sudo sysctl -w vm.max_map_count=655360
sudo sysctl -w vm.dirty_background_ratio=50
sudo sysctl -w vm.dirty_ratio=50
sudo sysctl -w vm.dirty_writeback_centisecs=360000
sudo sysctl -w vm.page-cluster=3
sudo sysctl -w vm.swappiness=1
```
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz edited a comment on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz edited a comment on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914124366
I add Metrics and recompile。write page cache is quickly。the part of raft sync is bottleneck。
specifically is :
long now = this.defaultMessageStore.getSystemClock().now();
return dledgerFuture.thenApply(appendEntryResponse -> {
metrics.putRtRAFT(this.defaultMessageStore.getSystemClock().now() - now);
PutMessageStatus putMessageStatus = PutMessageStatus.UNKNOWN_ERROR;
switch (DLedgerResponseCode.valueOf(appendEntryResponse.getCode())) {
case SUCCESS:
putMessageStatus = PutMessageStatus.PUT_OK;
break;
case INCONSISTENT_LEADER:
case NOT_LEADER:
case LEADER_NOT_READY:
case DISK_FULL:
putMessageStatus = PutMessageStatus.SERVICE_NOT_AVAILABLE;
break;
case WAIT_QUORUM_ACK_TIMEOUT:
//Do not return flush_slave_timeout to the client, for the ons client will ignore it.
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
case LEADER_PENDING_FULL:
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
}
PutMessageResult putMessageResult = new PutMessageResult(putMessageStatus, appendResult);
if (putMessageStatus == PutMessageStatus.PUT_OK) {
// Statistics
storeStatsService.getSinglePutMessageTopicTimesTotal(finalTopic).incrementAndGet();
storeStatsService.getSinglePutMessageTopicSizeTotal(msg.getTopic()).addAndGet(appendResult.getWroteBytes());
}
return putMessageResult;
});
wait dledgerFuture complete。I looked at the code inside ,all actions is asynch,and use completableFuture。
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] ShannonDing commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
ShannonDing commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-926415112
link #3368
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914038828
> You should check if there is bottleneck in client side.
>
> I setup a 4.9.1 master/slave pair. 6 client send total 95000 TPS (produce and consume). The P99 of produce is 1.0 ms.
>
> All configuration is default.
>
> ```
> # sudo sysctl -w vm.min_free_kbytes=10000000 # modify this carefully
> sudo sysctl -w vm.overcommit_memory=1
> sudo sysctl -w vm.drop_caches=1
> sudo sysctl -w vm.zone_reclaim_mode=0
> sudo sysctl -w vm.max_map_count=655360
> sudo sysctl -w vm.dirty_background_ratio=50
> sudo sysctl -w vm.dirty_ratio=50
> sudo sysctl -w vm.dirty_writeback_centisecs=360000
> sudo sysctl -w vm.page-cluster=3
> sudo sysctl -w vm.swappiness=1
> ```
it is on DLedger ?DLedger performance is lower than master/slave
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-913287470
I try 4.9.1 and jdk 11 zgc。 in jdk 11 zgc is amazing , gc stw in 1ms ,avg 0.4ms 。
But the server is delayed p99 at least 3-4ms
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] RongtongJin commented on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
RongtongJin commented on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-912892651
You can try the default configuration of version 4.9.1 first.
Latency is related to many aspects, including network quality and TPS (latency is inversely proportional to TPS during stress testing). It is recommended to look at it as a whole
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz closed issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz closed issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz edited a comment on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz edited a comment on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914124366
I add Metrics and recompile。write page cache is quickly。the part of raft sync is bottleneck。
specifically is :
long now = this.defaultMessageStore.getSystemClock().now();
return dledgerFuture.thenApply(appendEntryResponse -> {
metrics.putRtRAFT(this.defaultMessageStore.getSystemClock().now() - now);//my Metrics
PutMessageStatus putMessageStatus = PutMessageStatus.UNKNOWN_ERROR;
switch (DLedgerResponseCode.valueOf(appendEntryResponse.getCode())) {
case SUCCESS:
putMessageStatus = PutMessageStatus.PUT_OK;
break;
case INCONSISTENT_LEADER:
case NOT_LEADER:
case LEADER_NOT_READY:
case DISK_FULL:
putMessageStatus = PutMessageStatus.SERVICE_NOT_AVAILABLE;
break;
case WAIT_QUORUM_ACK_TIMEOUT:
//Do not return flush_slave_timeout to the client, for the ons client will ignore it.
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
case LEADER_PENDING_FULL:
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
}
PutMessageResult putMessageResult = new PutMessageResult(putMessageStatus, appendResult);
if (putMessageStatus == PutMessageStatus.PUT_OK) {
// Statistics
storeStatsService.getSinglePutMessageTopicTimesTotal(finalTopic).incrementAndGet();
storeStatsService.getSinglePutMessageTopicSizeTotal(msg.getTopic()).addAndGet(appendResult.getWroteBytes());
}
return putMessageResult;
});
wait dledgerFuture complete。I looked at the code inside ,all actions is asynch,and use completableFuture。
this metrics result:
count = 30686435
min = 0
max = 4
mean = 1.40
stddev = 0.64
median = 1.00
75% <= 2.00
95% <= 2.00
98% <= 2.00
99% <= 2.00
99.9% <= 4.00
4.9.1 jdk 11 zgc. and tps 1.8w ,msgsize 1k.
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz edited a comment on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz edited a comment on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914124366
I add Metrics and recompile。write page cache is quickly。the part of raft sync is bottleneck。
specifically is :
long now = this.defaultMessageStore.getSystemClock().now();
return dledgerFuture.thenApply(appendEntryResponse -> {
metrics.putRtRAFT(this.defaultMessageStore.getSystemClock().now() - now);//my Metrics
PutMessageStatus putMessageStatus = PutMessageStatus.UNKNOWN_ERROR;
switch (DLedgerResponseCode.valueOf(appendEntryResponse.getCode())) {
case SUCCESS:
putMessageStatus = PutMessageStatus.PUT_OK;
break;
case INCONSISTENT_LEADER:
case NOT_LEADER:
case LEADER_NOT_READY:
case DISK_FULL:
putMessageStatus = PutMessageStatus.SERVICE_NOT_AVAILABLE;
break;
case WAIT_QUORUM_ACK_TIMEOUT:
//Do not return flush_slave_timeout to the client, for the ons client will ignore it.
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
case LEADER_PENDING_FULL:
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
}
PutMessageResult putMessageResult = new PutMessageResult(putMessageStatus, appendResult);
if (putMessageStatus == PutMessageStatus.PUT_OK) {
// Statistics
storeStatsService.getSinglePutMessageTopicTimesTotal(finalTopic).incrementAndGet();
storeStatsService.getSinglePutMessageTopicSizeTotal(msg.getTopic()).addAndGet(appendResult.getWroteBytes());
}
return putMessageResult;
});
wait dledgerFuture complete。I looked at the code inside ,all actions is asynch,and use completableFuture。
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [rocketmq] Cczzzz edited a comment on issue #3315: Can provide p99<=1.5ms ?
Posted by GitBox <gi...@apache.org>.
Cczzzz edited a comment on issue #3315:
URL: https://github.com/apache/rocketmq/issues/3315#issuecomment-914124366
I add Metrics and recompile。write page cache is quickly。the part of raft sync is bottleneck。
specifically is :
long now = this.defaultMessageStore.getSystemClock().now();
return dledgerFuture.thenApply(appendEntryResponse -> {
metrics.putRtRAFT(this.defaultMessageStore.getSystemClock().now() - now);//my Metrics
PutMessageStatus putMessageStatus = PutMessageStatus.UNKNOWN_ERROR;
switch (DLedgerResponseCode.valueOf(appendEntryResponse.getCode())) {
case SUCCESS:
putMessageStatus = PutMessageStatus.PUT_OK;
break;
case INCONSISTENT_LEADER:
case NOT_LEADER:
case LEADER_NOT_READY:
case DISK_FULL:
putMessageStatus = PutMessageStatus.SERVICE_NOT_AVAILABLE;
break;
case WAIT_QUORUM_ACK_TIMEOUT:
//Do not return flush_slave_timeout to the client, for the ons client will ignore it.
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
case LEADER_PENDING_FULL:
putMessageStatus = PutMessageStatus.OS_PAGECACHE_BUSY;
break;
}
PutMessageResult putMessageResult = new PutMessageResult(putMessageStatus, appendResult);
if (putMessageStatus == PutMessageStatus.PUT_OK) {
// Statistics
storeStatsService.getSinglePutMessageTopicTimesTotal(finalTopic).incrementAndGet();
storeStatsService.getSinglePutMessageTopicSizeTotal(msg.getTopic()).addAndGet(appendResult.getWroteBytes());
}
return putMessageResult;
});
wait dledgerFuture complete。I looked at the code inside ,all actions is asynch,and use completableFuture。
this metrics result:
count = 30686435
min = 0
max = 4
mean = 1.40
stddev = 0.64
median = 1.00
75% <= 2.00
95% <= 2.00
98% <= 2.00
99% <= 2.00
99.9% <= 4.00
4.9.1、 jdk 11 、zgc.、and tps 1.8w ,msgsize 1k. and also execute os.sh.
producer avg ms 1.7ms,remove the network delay of 0.3ms. so raft is bottleneck
--
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.
To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org