有些应用软件进行系统调用时,为了一些场景更好的实现最优的表现,因此需要调整操作系统参数:

来源:互联网 发布:淘宝面膜排行榜 编辑:程序博客网 时间:2024/06/04 19:14

1. 有些应用软件进行系统调用,为了一些场景更好的实现最优的表现,因此需要调整操作系统参数

redis cluster的repl-disable-tcp-nodelay就涉及到修改TCP_NODELAY参数:具体如下:

Disable TCP_NODELAY on the slave socket after SYNC?

If you select “yes” Redis will use a smaller number of TCP packets and
less bandwidth to send data to slaves. But this can add a delay for
the data to appear on the slave side, up to 40 milliseconds with
Linux kernels using a default configuration.

If you select “no” the delay for data to appear on the slave side will
be reduced but more bandwidth will be used for replication.

By default we optimize for low latency, but in very high traffic conditions
or when the master and slaves are many hops away, turning this to “yes” may
be a good idea.

2.出了TCP_NODELAY参数,其他tcp参数的总结

0 0